View Full Version : SDK - processing images
tomasga
30th of July 2002 (Tue), 09:12
I want to retrieve an image from an EOS-1D camera, process it with my own routines, and then write it out. Does anyone know if a function in the SDK from Canon will do this? For example, a function returning a pointer to the data.
SteveCliff
30th of July 2002 (Tue), 12:20
There is a function within the SDX to copy the image data to the clipboard (as a 24bit DIB) - I guess you could process the data from there ?
Sorry, but i've not had chance to look in detail at the SDK so there may be a more elegant way!
I cannot pass you a copy of the SDK due to Canon's licensing restrictions, but I can't imagine Canon complaining if I sent you the manual only. You could at least take a look then to see if the SDK will do the job - if so, you can then approach Canon direct and apply for the SDK.
Let me know if you want the manual.
tomasga
30th of July 2002 (Tue), 12:33
I have the SDK software and manual. The manual does not provide much info. There are some functions, such as cdSOpen, cdSRead, etc, that may do what I need, but the manual does not explain them well enough. To me it seems like the software should allow processing of the image before saving. I have not been able to find anything on the web, user groups, etc where people have processed images before saving. Thanks.
SteveCliff
30th of July 2002 (Tue), 15:55
I'm not sure I understand your problem correctly. If you grab the image from the camera in to the windows clipboard, you can do whatever processing you like on the DIB information held there before saving it to disk ?
The SDK doesn't contain any post-processing functions however e.g. gamma, levels, saturation etc. Is this what you mean ?
tomasga
2nd of August 2002 (Fri), 10:05
How do you grab the image from the camera and put it on the windows clipboard? Is this a function in the SDK? What is SDX? I want access to the 12-bit/ color image (RAW format), but the SDK does not give me access to the RAW data from what I can see. Everything is passed to and returned from the functions as handles. I need the 12-bit precision for my algorithm. The current work around I have decided to use is to save the image from the camera as a 16-bit/ color TIFF, and then read the TIFF back into my algorithm for processing. Thanks for the help, and any more suggestions are welcome.
boone
3rd of August 2002 (Sat), 12:55
If you're a programmer and understand C, you could give this a try. No Canon SDK required.
http://www2.primushost.com/~dcoffin/powershot/
He's got code here for converting RAW files into PNG. You could probably run the data through your own image processing routines along the way.
I've set up a place to discuss the SDK and Canon programming, but it hasn't received much traffic yet.
http://boonedocks.net/photo/canon/
Mike.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.