Ixus970/SD890 porting

  • 136 Replies
  • 27826 Views
Re: Ixus970/SD890 porting
« Reply #20 on: 22 / March / 2009, 08:27:31 »
Advertisements

Re: Ixus970/SD890 porting
« Reply #21 on: 22 / March / 2009, 08:48:17 »
« Last Edit: 22 / March / 2009, 09:02:14 by Cuchulainn »

Re: Ixus970/SD890 porting
« Reply #22 on: 22 / March / 2009, 12:07:02 »
I've had a go with the colour profiling for RAW images as described in http://chdk.setepontos.com/index.php/topic,1532.0/prev_next,prev.html#new.

I followed the instructions and have two images which I've uploaded to: http://www.zshare.net/download/57436971b85bd82e/

Couple of notes.
1) I couldn't get the camera to save a DNG format RAW. I got a 'cannot load badpixel.bin' error. It did however save in CRW format so I've uploaded that instead.
2) The CRW file was larger than I expected. (15mb) My SLR only give RAW results at a shade over 10Mb.
3) Not sure if it makes any difference but my monitor is currently calibrated and the images were taken in pretty good daylight.

Let me know If I've done anything wrong and I'll have another go. It's the first time I've used CHDK!!

Tom C

*

Offline snc

  • **
  • 64
    • vware
Re: Ixus970/SD890 porting
« Reply #23 on: 22 / March / 2009, 12:49:26 »
@ cuchulainn : you have a different firmware version, so you're out of luck with the port i provided. if you manage to dump your firmware however, i might take a look at your version. i suspect that "just" a "few" things are different, but no promises.

@ tom_c: great, thanks! your help is much appreciated.
1) if you want to get dng working, a user has posted a pretty straight forward "howto" in this very thread: http://chdk.setepontos.com/index.php/topic,3246.msg30743.html#msg30743 follow the instructions to generate the badpixel.bin - beware tho that it might look like the cam locks up, thats normal
2) as for the size of the raw images: the 970 has a 12bit sensor, and chdk saves all of them in the raw files. maybe thats why they are bigger, as your dslr might save only 10bit raw files?
3) calibrated monitor - wont hurt for sure, hehe.

as soon as i get a proper color matrix, ill release an updated version with some bugs squashed...


Re: Ixus970/SD890 porting
« Reply #24 on: 22 / March / 2009, 15:46:33 »
@snc: Thanks for the offer! I uploaded the empty.dum from the GM1.00B firmware to http://www.mediafire.com/?sharekey=8aa91a772719e4d9d2db6fb9a8902bda. Is that enough, or would you prefer me to remove the starting and trailing zeros?

*

Offline fe50

  • ******
  • 3088
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Ixus970/SD890 porting
« Reply #25 on: 22 / March / 2009, 16:19:40 »
I uploaded the empty.dum from the GM1.00B firmware to http://www.mediafire.com/?sharekey=8aa91a772719e4d9d2db6fb9a8902bda. Is that enough, or would you prefer me to remove the starting and trailing zeros?
  -->
Added the IXUS970_SD890 1.00B fw dump from this post to the drop.io - chdkdumps2 backup archive.
  http://drop.io/chdkdumps2/asset/ixus970-sd890-100b-7z  (cleaned with CT)
Thx to the 'dumpers' & uploaders !

...SD890 wikia article is also updated.

*

Offline snc

  • **
  • 64
    • vware
Re: Ixus970/SD890 porting
« Reply #26 on: 23 / March / 2009, 03:50:35 »
alright, took a quick peek at the 100b firmware, as i had expected, it is extremely similar to the one i had already done. some rom locations are different and the loading address is off by 4, but thats about it. the current 100b code should contain all the functionality the 100c has, therefore ill release both of them if/when we find a solution for the color matrix problem (see last few posts on this page: http://chdk.setepontos.com/index.php/topic,390.390.html).

*

Offline snc

  • **
  • 64
    • vware
Re: Ixus970/SD890 porting
« Reply #27 on: 24 / March / 2009, 03:14:52 »
well, it seems we are stuck with the color problem for now. currently, I am using the color matrix taken from the SX10 port; the sensors seem to be identical, and it yields acceptable yet far from optimal results.

if somebody can come up with a better matrix, you'd be highly welcome to post it here. theoretically, it could be found manually using dng4ps2 if you have the time and/or skills...

1) take a picture of the color checker chart as described here:  http://chdk.setepontos.com/index.php/topic,390.0.html

2) convert the raw image from 12 to 10 bit with this tool: http://ewavr.nm.ru/chdk/12to10.zip

3) install dng4ps2: http://dng4ps2.googlecode.com/files/dng4ps2-0.2.3-beta20.exe

4) create a new camera with the following data:
Camera name:     Canon DIGITAL IXUS 970 IS / Canon PowerShot SD890 IS
Short name:      IXUS 970 IS / PowerShot SD890 IS
Sensor size:     3720 x 2772
Jpeg siz:        3648 x 2736
Act zone x1,y1:  6    ,   12
Act zone x2,y2:  3690 , 2772
B-w levels:      31   - 1023
Mosaic type:     Red, Green Green, Blue
Illuminant:      Daylight
Matrix:  0,827547 -0,290458 -0,126086 -0,012829 0,530507 0,050537 0,005181 0,048183 0,245014

5) calibrate the camera by altering the matrix values. check them by converting the color checker raw into dng, and comparing it to the jpeg produced by the camera.

it is possible that somehow the automatic calibration might work, but both ewavr and me failed so far. ewavr discovered that if you leave out some colors, it might work - but thats very un-desirable. the matrix posted above might be a good starting point.


volunteers? ;)
« Last Edit: 24 / March / 2009, 03:21:02 by snc »


Re: Ixus970/SD890 porting
« Reply #28 on: 24 / March / 2009, 11:14:47 »
I have the picture taken but converting to 10 bit gives me the following error:
"file is unknown"
the DNG is readable by image viewer.

The raw file and jpg file looks allmost similar.
The difference is made by jpg processing inside the camera.

So, what is the problem with the color matrix?
« Last Edit: 24 / March / 2009, 11:27:34 by edjecadetje »

*

Offline snc

  • **
  • 64
    • vware
Re: Ixus970/SD890 porting
« Reply #29 on: 24 / March / 2009, 13:48:33 »
dude...

a) "almost" isnt quite good enough
b) when you save a dng on the cam, it already uses the color matrix i posted above!

the point is in improving that very color matrix. hadnt ewavr found the one you are using at the moment, then you wouldnt enjoy your dng now. we KNOW that the jpgs are processed, and thats precisely the point of calibrating the raw stuff.

additionally: for the process i described, you must NOT save to dng files, but plain raw.

 

Related Topics