Access to "Bayer RAW" pre-processed image data

Started May 29, 2013 | Discussions
inqque New Member • Posts: 9
Access to "Bayer RAW" pre-processed image data

Hello,

I made this post here earlier but I thought I would try it with retouching forum,

http://www.dpreview.com/forums/post/51547606

I'm new to DP Review and hope you can help me with my question.

I'm working with Canon 1Ds Mark II, and processing camera RAW (.CR2) files Mac OS 10.8, and in Lightroom 4.0. I have been working with digital files since Photoshop 2.0 and have tried many RAW processing software such as Capture One, and Aperture.

I want to access the raw file data before demosaicing. I don't want to work on the "camera raw" file but the "Bayer RAW" files pre-processed image data.

This link is useful in showing sample files.

http://adamhooper.com/blog/posts/186-how-cameras-work-interpolation

My aim is to process the raw pixels, export as tif or jpg as seen in the attached image.

Thank you!

Inqque

Canon EOS-1Ds Mark II
If you believe there are incorrect tags, please send us this post using our feedback form.
exdeejjjaaaa
exdeejjjaaaa Veteran Member • Posts: 8,263
Re: Access to "Bayer RAW" pre-processed image data

inqque wrote:

Hello,

I made this post here earlier but I thought I would try it with retouching forum,

http://www.dpreview.com/forums/post/51547606

I'm new to DP Review and hope you can help me with my question.

I'm working with Canon 1Ds Mark II, and processing camera RAW (.CR2) files Mac OS 10.8, and in Lightroom 4.0. I have been working with digital files since Photoshop 2.0 and have tried many RAW processing software such as Capture One, and Aperture.

I want to access the raw file data before demosaicing. I don't want to work on the "camera raw" file but the "Bayer RAW" files pre-processed image data.

This link is useful in showing sample files.

http://adamhooper.com/blog/posts/186-how-cameras-work-interpolation

My aim is to process the raw pixels, export as tif or jpg as seen in the attached image.

Thank you!

Inqque

you can use RPP ( http://www.raw-photo-processor.com/RPP/RPP64_1641Beta.zip ) with -NoCFA command line option, something like this :

/Applications/Raw Photo Processor 64.app/Contents/MacOS/Raw Photo Processor 64 -NoCFA YES

 exdeejjjaaaa's gear list:exdeejjjaaaa's gear list
Sony a7R II Sony FE 55mm F1.8 Phase One Capture One Pro +25 more
OP inqque New Member • Posts: 9
Re: Access to "Bayer RAW" pre-processed image data

exdeejjjaaaa wrote:

inqque wrote:

Hello,

I made this post here earlier but I thought I would try it with retouching forum,

http://www.dpreview.com/forums/post/51547606

I'm new to DP Review and hope you can help me with my question.

I'm working with Canon 1Ds Mark II, and processing camera RAW (.CR2) files Mac OS 10.8, and in Lightroom 4.0. I have been working with digital files since Photoshop 2.0 and have tried many RAW processing software such as Capture One, and Aperture.

I want to access the raw file data before demosaicing. I don't want to work on the "camera raw" file but the "Bayer RAW" files pre-processed image data.

This link is useful in showing sample files.

http://adamhooper.com/blog/posts/186-how-cameras-work-interpolation

My aim is to process the raw pixels, export as tif or jpg as seen in the attached image.

Thank you!

Inqque

you can use RPP ( http://www.raw-photo-processor.com/RPP/RPP64_1641Beta.zip ) with -NoCFA command line option, something like this :

/Applications/Raw Photo Processor 64.app/Contents/MacOS/Raw Photo Processor 64 -NoCFA YES

Thank you, I think I almost got, but lost you on "-NoCFA YES"

I noticed a couple of other posts

http://www.luminous-landscape.com/forum/index.php?topic=71218.20

http://www.dpreview.com/forums/thread/3153469?page=2

and downloaded RawDigger

if you want that (colorized dots), then you need rawdigger - http://www.rawdigger.com - which is not a raw converter exactly, but good enough for illustration purposes... it will show you RGGB undemosaicked dots colorized... rpp was intended in such mode specifically for bw cameras (like bayer cameras with CFA removed or monochrome MF/Leica) where you natually do not need any demosaicking and image was supposed to be b/w/greyscale

How do I export the file as TIF?

Thanks.

OP inqque New Member • Posts: 9
Re: Access to "Bayer RAW" pre-processed image data

With RPP 64 I was able to export this file but without the RgBg squares.

Thank you.

exdeejjjaaaa
exdeejjjaaaa Veteran Member • Posts: 8,263
Re: Access to "Bayer RAW" pre-processed image data

inqque wrote:

With RPP 64 I was able to export this file but without the RgBg squares.

indeed... but why do you need rgbg coloring ? and then you shall ask if software that shows you rgbg color dots does color transforms in a proper manner... unless you want this for illustration purposes only.

 exdeejjjaaaa's gear list:exdeejjjaaaa's gear list
Sony a7R II Sony FE 55mm F1.8 Phase One Capture One Pro +25 more
mikes
mikes Veteran Member • Posts: 3,437
Reverse Engineering

Maybe just make your own if its for illustration purposes only.

inqque wrote:

With RPP 64 I was able to export this file but without the RgBg squares.

Thank you.

-- hide signature --

Only when you can criticize yourself, should you criticize others. Mikes.

OP inqque New Member • Posts: 9
Re: Access to "Bayer RAW" pre-processed image data

exdeejjjaaaa wrote:

inqque wrote:

With RPP 64 I was able to export this file but without the RgBg squares.

indeed... but why do you need rgbg coloring ? and then you shall ask if software that shows you rgbg color dots does color transforms in a proper manner... unless you want this for illustration purposes only.

Exdeejjjaaa,

Sorry, I'm either not understanding something about the pre-processed Bayer raw file or not writing my request clearly.

I am not using this for illustration purposes.

I posted earlier this link that clearly illustrates the raw workflow.

http://adamhooper.com/blog/posts/186-how-cameras-work-interpolation

I want to experiment with visual effects and work directly with the unprocessed Bayer Raw image data. The RawDigger seems to work but I can't export the file as a high res TIF image and maintain the RGBG 2x2 square pixels. I can only make lores screen captures.

Thanks so much for your help.

–Inqque

Don Glenn Contributing Member • Posts: 854
Re: Access to "Bayer RAW" pre-processed image data

I once played with bayer filter data.  I don't have statistics, but I suspect strongly that most camera raw converters use dcraw.c, or modified a version, to get the raw data.  It was very educational, if you want to know what the files look like.

http://en.wikipedia.org/wiki/Dcraw

http://www.dpreview.com/news/2005/4/27/davecoffininterview

exdeejjjaaaa
exdeejjjaaaa Veteran Member • Posts: 8,263
Re: Access to "Bayer RAW" pre-processed image data

inqque wrote:

exdeejjjaaaa wrote:

inqque wrote:

With RPP 64 I was able to export this file but without the RgBg squares.

indeed... but why do you need rgbg coloring ? and then you shall ask if software that shows you rgbg color dots does color transforms in a proper manner... unless you want this for illustration purposes only.

Exdeejjjaaa,

Sorry, I'm either not understanding something about the pre-processed Bayer raw file or not writing my request clearly.

...

I want to experiment with visual effects and work directly with the unprocessed Bayer Raw image data.

and RPP w/ NoCFA works for you quite well - you just need to handle color transforms for data from sensels yourself :-)... when you have some "color" assigned to those that is a result of some processing (color transform), not unprocessed data... alternatively you can use dcraw (or libraw) to dump such data... there are also programs like Iris (astronomical images processing) or even Matlab

 exdeejjjaaaa's gear list:exdeejjjaaaa's gear list
Sony a7R II Sony FE 55mm F1.8 Phase One Capture One Pro +25 more
OP inqque New Member • Posts: 9
Re: Access to "Bayer RAW" pre-processed image data

Don Glenn wrote:

I once played with bayer filter data.  I don't have statistics, but I suspect strongly that most camera raw converters use dcraw.c, or modified a version, to get the raw data.  It was very educational, if you want to know what the files look like.

http://en.wikipedia.org/wiki/Dcraw

http://www.dpreview.com/news/2005/4/27/davecoffininterview

Thanks, very helpful interview. Yes, when I first started researching the topic, everything was pointing to dcRAW by Dave Coffin. Working on a Mac with limited knowledge of programming has not been easy. However this link I recently found might help.

http://bellavist.com/blog/?p=466

Jack Hogan Veteran Member • Posts: 6,989
Re: Access to "Bayer RAW" pre-processed image data

inqque wrote:

I want to access the raw file data before demosaicing. I don't want to work on the "camera raw" file but the "Bayer RAW" files pre-processed image data.

You probably want imagej with the dc-raw plugin.  Alternatively straight dc-raw.  Both have a learning curve.

Jack

BillHinge Senior Member • Posts: 1,032
Re: Access to "Bayer RAW" pre-processed image data

Is this the kind of image you are looking for ? (I wasn't sure)

The green tint is because I haven't edited it or changed the colour balance

I chose the Bayer option, not the CFA option

dethis2 Regular Member • Posts: 360
Re: Access to "Bayer RAW" pre-processed image data

inqque wrote:


I am not using this for illustration purposes.

I posted earlier this link that clearly illustrates the raw workflow.

http://adamhooper.com/blog/posts/186-how-cameras-work-interpolation

I want to experiment with visual effects and work directly with the unprocessed Bayer Raw image data. The RawDigger seems to work but I can't export the file as a high res TIF image and maintain the RGBG 2x2 square pixels. I can only make lores screen captures.

Thanks so much for your help.

–Inqque

You can trick RawTherapee to do this.

Open your raw file in editor.

If you want "pure" raw pixels disable the color management at tab "color" and then close it.

Change directory at the file browser so that you can change the *.pp3 (settings file).

Open the *.pp3 with notepad and at "RAW" section change "Method=amaze" with "method=none"

Reopen your file and save to tiff 16bit.

You will take what you want but with WB applied. If you want pure raw pixels without WB, you must first convert to DNG and change in exif data the WB multipliers to 1 1 1

I think Dcrawjdc http://jacques.desmis.perso.neuf.fr/geraud/photo_calcul.php has an option (q 100 ) which does the same. You have to set WB at 1 1 1 1 if you want and choose -o 0 to disable color management

I hope this helps.

-- hide signature --

Ilias

Keyboard shortcuts:
FForum MMy threads