Ask Your Question
0

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

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

shamna gravatar image

Hi,

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

Comments

1

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

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

berak gravatar image

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

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

Question Tools

1 follower

Stats

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

Seen: 124 times

Last updated: Aug 05 '20