Unsupported Format Or Combination Of Formats For Essays

I'm acquiring some images from a video stream (of a simulated camera) : my goal is to find matching points in order to compute the Affine Transformation Matrix between two frames afterwards. I'm trying to use the Feature Matching with FLANN algorithm proposed by OpenCV (http://docs.opencv.org/doc/tutorials/features2d/feature_flann_matcher/feature_flann_matcher.html#feature-matching-with-flann) with 2 Mat type images acquired through the cv_bridge (http://www.ros.org/wiki/cv_bridge/Tutorials/UsingCvBridgeToConvertBetweenROSImagesAndOpenCVImages) since i read them from a ROS topic. this is my code:

at the point where ERROR is written i receive this 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 terminate called after throwing an instance of 'cv::Exception' what(): /tmp/buildd/ros-fuerte-opencv2-2.4.2-1precise-20130312-1306/modules/flann/src/miniflann.cpp:299: error: (-210) type=0 in function buildIndex_

Aborted (core dumped)

But if I try the same code loading 2 JPG images it works!! what's wrong?

I am developing an application in whitch i have to take a picture from camera and after that Detect the Edge Square(Like Document page.) in the picture...After a long searching i found OpenCV library to achieve this, i have succesfully imported the java library for android, But problem is that when i call the method of opencv to detect Square(The method is

Imgproc.findContours(converted, contours,hierarchy,Imgproc.CHAIN_APPROX_SIMPLE,Imgproc.RETR_LIST))..it give me the

exception...OpenCV Error: Unsupported format or combination of formats (FindContours support only 8uC1 and 32sC1 images) in _CvContourScanner* cvStartFindContours(void*, CvMemStorage*, int, int, int, CvPoint), file /home/reports/ci/slave/50-SDK/opencv/modules/imgproc/src/contours.cpp, line 196

I am sending u some piece of code-----------------------------------------------------

public void convertImage() {

Any Help will be apreciated------------------ Thanks in advance

One thought on “Unsupported Format Or Combination Of Formats For Essays

Leave a Reply

Your email address will not be published. Required fields are marked *