I use ImageMagick in Ubuntu 14.04. How can I run the above script?
Also, I read somewhere that a solution would be to drop 2 values of each pixel, according to the Bayer Pattern we want.
Could this be more easily done with IM ?
Search found 5 matches
- 2016-04-13T07:16:24-07:00
- Forum: Users
- Topic: Get RAW image data (Bayer pixel array) from other formats.
- Replies: 10
- Views: 23177
- 2016-04-13T05:48:31-07:00
- Forum: Users
- Topic: Get RAW image data (Bayer pixel array) from other formats.
- Replies: 10
- Views: 23177
Re: Get RAW image data (Bayer pixel array) from other formats.
First of all, I would like to thank you for being patient and helpful. The img1.bmp https://www.dropbox.com/s/8y9mfpf2ayh12z5/img1.bmp?dl=0 is a truecolor (RGB) image , with 8bits per channel, thus 24bits per pixel. With the above command, I get a grayscale image , 8bpp with size WidthxHeight bytes ...
- 2016-04-13T05:21:14-07:00
- Forum: Users
- Topic: Get RAW image data (Bayer pixel array) from other formats.
- Replies: 10
- Views: 23177
Re: Get RAW image data (Bayer pixel array) from other formats.
So the command convert img1.bmp gray:img1.raw will give me the Bayer image from the .pgm, right?
- 2016-04-13T01:20:16-07:00
- Forum: Users
- Topic: Get RAW image data (Bayer pixel array) from other formats.
- Replies: 10
- Views: 23177
Re: Get RAW image data (Bayer pixel array) from other formats.
Thanks for your reply! The gray option gives me the raw data of the image correctly, but does it contain the color information? For example, when I use this command for a .bmp image, I get the raw image in gray scale but the demosaicing gives me the same gray image, which leads to the assumption ...
- 2016-04-12T10:50:17-07:00
- Forum: Users
- Topic: Get RAW image data (Bayer pixel array) from other formats.
- Replies: 10
- Views: 23177
Get RAW image data (Bayer pixel array) from other formats.
I am testing various demosaicing algorithms in embedded platforms and I need .raw (Bayer Color Filter Array) images as input. I would like to extract these images from .png ones but also from .cr2. Some of the .png files that I would like to use can be found here http://r0k.us/graphics/kodak/ . For ...