Hello,
This is my first time using the imagej discussion board and I have a question about splitting raw bayer images: I have images that contain raw pixel grey values taken with a sensor that has a bayer color filter array. Below is a cropped area of one of my images showing the raw RGB filtered pixels with no CFA interpolation (labeled *IMAGE 1*). What I want to do is separate these bayer images, resulting in four, half-sized color plane images that contain only the red, green, or blue pixels (see image below labeled *IMAGE 2*). I was wondering if there is any way to do this in imagej? -Aaron. *IMAGE 1:* [image: image.png] *IMAGE 2:* [image: image.png] |
Aaron,
actually the sample images didn't make it to the list, at least for me. However, as far as I understand your desire, this RGGB or even a RGB separation can be easily performed by a simple IJ-macro that creates the four or three image supports and writes to them the values from the original image according to the Bayer pattern. The only problem I see is that you need to know with which colour the Bayer pattern starts at the top left corner of your original image. If you are not yet acquainted with the IJ-macro language, there are several helpful documents on the NIH-IJ website that will allow you to learn the necessary basics. >Hello, >This is my first time using the imagej discussion board and I have a >question about splitting raw bayer images: > >I have images that contain raw pixel grey values taken with a sensor that >has a bayer color filter array. Below is a cropped area of one of my images >showing the raw RGB filtered pixels with no CFA interpolation (labeled *IMAGE >1*). What I want to do is separate these bayer images, resulting in four, >half-sized color plane images that contain only the red, green, or blue >pixels (see image below labeled *IMAGE 2*). I was wondering if there is any >way to do this in imagej? > >-Aaron. > >*IMAGE 1:* >[image: image.png] > > >*IMAGE 2:* >[image: image.png] > >Content-Type: image/png; name="image.png" >Content-ID: <ii_1327dcc74a5124e6> >X-Attachment-Id: ii_1327dcc74a5124e6 > >Related: :OSX:image%2010.png:00790E30:46F7B2FA:00000000:00000000 >Content-Type: image/png; name="image.png" >Content-ID: <ii_1327dcb6b0bf5a69> >X-Attachment-Id: ii_1327dcb6b0bf5a69 > >Related: :OSX:image%2011.png:00790E31:16DF9141:00000000:00000000 HTH -- Herbie ------------------------ <http://www.gluender.de> |
Hi Aaron,
Even i'm planning to do the same (Converting Bayer Raw to 3 images (R,G and B) then to RGB). I need to validate my camera. Can you please share the code or the procedure if you have already done this? It will be helpful if you can share the image in raw format. Thanks, Sathya |
In reply to this post by Herbie-6
Hi Aaron,
Even i'm planning to do the same (Converting Bayer Raw to 3 images (R,G and B) then to RGB). I need to validate my camera. Can you please share the code or the procedure if you have already done this? It will be helpful if you can share the image in raw format. Thanks, Sathya |
Sathya,
Give me an hour and I will send you the code along with some sample images. Cheers, Aaron. On Mon, Sep 3, 2012 at 12:36 AM, Sathya <[hidden email]> wrote: > Hi Aaron, > > Even i'm planning to do the same (Converting Bayer Raw to 3 images (R,G and > B) then to RGB). I need to validate my camera. Can you please share the > code > or the procedure if you have already done this? > It will be helpful if you can share the image in raw format. > > Thanks, > Sathya > > > > -- > View this message in context: > http://imagej.1557.n6.nabble.com/Splitting-raw-bayer-image-into-four-separate-color-plane-images-R-G1-G2-B-tp3683149p4999923.html > Sent from the ImageJ mailing list archive at Nabble.com. > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Aaron,
Thanks, got your images. It is in .CR2 format. Do u use DCRaw to open .CR2 images. When i used it is converting it into color format. How can i see how it looks in RAW format. My understanding is if you are opening a RAW image it should in grey scale (bayer images) Thanks, Sathya |
Free forum by Nabble | Edit this page |