Adding custom file formats to OpenCV

asked 2014-08-01 12:10:12 -0500

tenspd137 gravatar image

I have Googled around and can't seem to find anything on how to do this. I have some custom file formats that I would like to make compatible with imread. How do you "teach" OpenCV to read custom image formats? If I understand correctly, you basically read the image into a matrix, so somewhere in the OpenCV code there are file handlers, usually they refer to the appropriate library (libjpeg, libtiff, rtc). How would I integrate my own?

Thanks!

edit retag flag offensive close merge delete

Comments

take a look at this SO answer. i believe it would be helpful about what you want to do.

sturkmen gravatar imagesturkmen ( 2019-10-04 12:41:17 -0500 )edit