I have a file that uses opencv to apply a bayer filter to an image to a black and white picture to give it RGB values. It all works well when I run a 16 bit unsigned integer image through but then when I run a 8 bit unsigned integer I get the following error code:
OpenCV Error: Unspecified error (could not find a writer for the specified extension) in imwrite_, file /build/buildd/opencv-2.3.1/modules/highgui/src/loadsave.cpp, line 276
terminate called after throwing an instance of 'cv::Exception'
what(): /build/buildd/opencv-2.3.1/modules/highgui/src/loadsave.cpp:276: error: (-2) could not find a writer for the specified extension in function imwrite_
Do you know any plugin or extension I can download to deal with more image types? I am running the program with the Ubuntu command line and the processing program is written in C++. I did the initial processing to change it from 16bit unsigned integers with the python imaging library.