grayscale = 150 rawop.set_pixels_rgbg(x, y, grayscale, grayscale, grayscale, grayscale)
Code: [Select]grayscale = 150 rawop.set_pixels_rgbg(x, y, grayscale, grayscale, grayscale, grayscale)it comes out pink rather than gray.
Cool, thanks.Where can I find the source code for my camera(s)?(I use IXUS 50 and IXUS 60)
The raw values are raw counts from the sensor, so they reflect the characteristics of the individual R, G, B filters in the bayer array. To convert them to some standard colors space, you need transform them based on some calibration. In DNG, this is done using the color matrix(es), and additionally modified by white balance values. You can find some references in the DNG specs. The color matrix isn't currently exposed in rawop, it was on my list to add some day, but no one has asked for it yet. You can get the values from the platform_camera.h file in the source for your cameras port, or from a CHDK DNG shot with that camera.
Started by TapouT « 1 2 » General Discussion and Assistance
Started by chrish General Help and Assistance on using CHDK stable releases
Started by Lebowski « 1 2 » Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by Accupro « 1 2 3 » General Discussion and Assistance
Started by pigeonhill General Help and Assistance on using CHDK stable releases