Loading RAW image files

Just starting out? Need help? Post your questions and find answers here.
SniffTheGlove
Enthusiast
Enthusiast
Posts: 122
Joined: Sat Nov 19, 2011 6:51 pm

Loading RAW image files

Post by SniffTheGlove »

Hello,

I am looking for a way to load Canon CR2 RAW files into PB for manipulation.

I have searched here on Forum but find nothing.

Could someone point me to an API or post some simple code to get the file into so that the 2D-Drawing can be used.

Thank you.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Loading RAW image files

Post by IdeasVacuum »

Apparently the CR2 format is related to Tiff. The first thing I'd do is try a cheat and see if a raw file will load as a Tiff :)

Valuable info here: http://lclevy.free.fr/cr2/

Canon's SDK: http://www.usa.canon.com/cusa/consumer/ ... k_homepage
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
SniffTheGlove
Enthusiast
Enthusiast
Posts: 122
Joined: Sat Nov 19, 2011 6:51 pm

Re: Loading RAW image files

Post by SniffTheGlove »

IdeasVacuum wrote:Apparently the CR2 format is related to Tiff. The first thing I'd do is try a cheat and see if a raw file will load as a Tiff :)

Valuable info here: http://lclevy.free.fr/cr2/

Canon's SDK: http://www.usa.canon.com/cusa/consumer/ ... k_homepage
I had already tried renaming my cr2 files with tif but nothing loads.

You have to have a good business reason (even for private use) to join the "Canon Cevelopment" and download the SDK
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: Loading RAW image files

Post by dige »

The FreeImage dll use LibRaw (0.14.7) to load RAW images too...
http://freeimage.sourceforge.net/
"Daddy, I'll run faster, then it is not so far..."
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: Loading RAW image files

Post by Thorium »

The thread title is a little bit misleading because a raw image is actualy a image file without any header, it can only be loaded if dimensions and pixel format are known. Most raw's from the old time was bin 8bit paletted and could be loaded as greyscale if the palette was unknown.

The cr2 file format is actualy not a raw, even if canon calls it so.
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Re: Loading RAW image files

Post by El_Choni »

I think this documentation might help to deal with the CR2 format: http://wildtramper.com/sw/cr2/cr2.html.
El_Choni
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Loading RAW image files

Post by IdeasVacuum »

If you are making a commercial app, apply for membership of the Canon developer's group as a business - the application form is not so bad and they offer the SDK free, with free support too.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
SniffTheGlove
Enthusiast
Enthusiast
Posts: 122
Joined: Sat Nov 19, 2011 6:51 pm

Re: Loading RAW image files

Post by SniffTheGlove »

Thanks.

It's not commercial, just private use to create Astro Darks and Bias from my Canon 350D to make a dark library to improve my astrophotography shots.

Having a play with freeimage at the moment.
Post Reply