Ask Your Question

Can we use .raw image format directly in CV functions?

asked 2020-08-04 23:27:40 -0500

shamna gravatar image


Normally CV functions converts .raw image files to .jpg /.png formats. Is there any way to directly use the .raw file format. Will it give a better result?

edit retag flag offensive close merge delete



You can't do from OpenCV to convert to jpg/png. AFAIK, the answer is NO.

supra56 gravatar imagesupra56 ( 2020-08-05 22:09:20 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2020-08-05 01:49:40 -0500

berak gravatar image

updated 2020-08-05 01:50:21 -0500

unfortunately, there is no such thing as a "raw" format, it is, whatever your camera manufacturer is using internally (there is no "standard" for this)

opencv does not have any functions to read or convert that (though it may involve de-bayering), you're quite on your own here.

Will it give a better result?

if the alternative is jpg encoding, -- probably (you'll get rid of the lossy compression and the block artefacts)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-08-04 23:27:40 -0500

Seen: 32 times

Last updated: Aug 05