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

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

Comments

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
1

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

Stats

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

Seen: 87 times

Last updated: Jul 23