Skip to content

Fast Library for Approximate Nearest Neighbors

Troubleshooting

=== Unsupported format or combination of formats (type=0) ===

아래와 같은 런타임 에러가 발생할 수 있다.

error: OpenCV Error: Unsupported format or combination of formats (type=0 ) in buildIndex_, file /tmp/buildd/ros-fuerte-opencv2-2.4.2-1precise-20130312-1306/modules/flann/src/miniflann.cpp, line 299

I had the same problem it seems that Flann needs the descriptors to be of type CV_32F. Try doing this before matching:

descriptors_1.convertTo(descriptors_1, CV_32F); descriptors_2.convertTo(descriptors_2, CV_32F);

See also

Favorite site

OpenCV