Attention! This forum will be made read-only by Dec-20. Please migrate to Most of existing active users should've received invitation by e-mail.
Ask Your Question

Conversion JPEG to raw image

asked 2020-07-23 06:01:54 -0500

updated 2020-07-23 06:34:32 -0500

Hi All,

I have a requirement to convert jpeg image to raw image for further processing. Could you please guide how ican i do this through OPEN CV

Thanks in advance, Abhishek

edit retag flag offensive close merge delete


If by "raw" you mean a bayer "image", you can't, and that would be a silly thing to do

mvuori gravatar imagemvuori ( 2020-07-23 07:52:46 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2020-07-23 06:22:31 -0500

berak gravatar image

you probably should start reading the opencv tutorials

then, a simple

Mat img = imread("my.jpg")

will give you a decoded image, you can work on further

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-07-23 06:01:54 -0500

Seen: 87 times

Last updated: Jul 23