IXUS 105 / SD1300 IS porting thread

  • 755 Replies
  • 92934 Views
Re: IXUS 105 / SD1300 IS porting thread
« Reply #610 on: 02 / March / 2012, 21:13:34 »
Advertisements
And as this is an SDM release rather than CHDK,  I'm not sure how much else we can do to help you here.

As my earlier post says, I did try both colour-filter-array types.

Don't know if incorrect colour matrix values can give such an extreme magenta cast.


*

Offline srsa_4c

  • ******
  • 3539
Re: IXUS 105 / SD1300 IS porting thread
« Reply #611 on: 02 / March / 2012, 22:28:17 »
As my earlier post says, I did try both colour-filter-array types.

Don't know if incorrect colour matrix values can give such an extreme magenta cast.
I don't think there's any magic involved here. The sensor is the same as in the D10, A1100, etc. If the raw buffer address, its size, the raw dimensions and the raw bit-depth is correct, the raw should look fine. One more possible problem could be a wrong location for the raw hook. But since more than one working port from the same age exists, it shouldn't be hard to correct these, when needed.
for 1.00d:
Code: [Select]
char *hook_raw_image_addr()
{
return (char*) 0x41d64ecc; // "CRAW BUFF"
}
long hook_raw_size()
{
return 0x11E4EE0;           // "CRAW BUFF SIZE"
}

#define cam_CFAPattern 0x01000201 // Green  Blue  Red  Green

You could make this guess-work stop by publishing the platform/loader folder contents for this port... ::)

Re: IXUS 105 / SD1300 IS porting thread
« Reply #612 on: 03 / March / 2012, 06:08:08 »

You could make this guess-work stop by publishing the platform/loader folder contents for this port... ::)

It was published one year ago :- http://stereo.jpn.org/eng/sdm/file/sdm.zip

As I say, I have tried both CFA patterns since then.

*

Offline fe50

  • ******
  • 3081
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: IXUS 105 / SD1300 IS porting thread
« Reply #613 on: 03 / March / 2012, 09:07:40 »
As I say, I have tried both CFA patterns since then.

Use the correct mosaic type when you convert the raw, then the image is ok ;)

(DNG4PS-2 settings & DNG preview attached)


*

Offline srsa_4c

  • ******
  • 3539
Re: IXUS 105 / SD1300 IS porting thread
« Reply #614 on: 03 / March / 2012, 09:29:33 »
As I say, I have tried both CFA patterns since then.

Use the correct mosaic type when you convert the raw, then the image is ok ;)
This camera has a 12M sensor ;)
If the camera.h settings still use values of a 10M sensor then they need to be changed.

    #define CAM_RAW_ROWPIX                  4104    // 12 MP 12bpp
    #define CAM_RAW_ROWS                    3048
    #define CAM_JPEG_WIDTH                  4000
    #define CAM_JPEG_HEIGHT                 3000

    #define CAM_ACTIVE_AREA_X1              0
    #define CAM_ACTIVE_AREA_Y1              0
    #define CAM_ACTIVE_AREA_X2              4104
    #define CAM_ACTIVE_AREA_Y2              3048

The "active area" settings need to be adjusted. If I use the example provided by bazhuryan, I see different kinds of borders around the picture. If I chop all of them, the resulting dng dimensions will be smaller than the jpeg's. One could experiment with dng4ps2 to find the optimal values.

Re: IXUS 105 / SD1300 IS porting thread
« Reply #615 on: 03 / March / 2012, 11:12:08 »
This camera has a 12M sensor ;)

I know, the CHDK porter had the wrong values.

I used some of these for recent tests :-

Code: [Select]
    #define CAM_RAW_ROWPIX              4104
    #define CAM_RAW_ROWS                3048

   // #define  cam_CFAPattern 0x01000201 // Green  Blue  Red  Green
      #define cam_CFAPattern 0x02010100  // Red  Green  Green  Blue
/*
    #define CAM_COLORMATRIX1                               \
      12724, 10000, -5061, 10000, -1934, 10000, \
      -370, 10000, 7752, 10000, 2619,  10000, \
      839,  10000, -233,   10000, 5750, 10000
*/
/*
 // IXUS960,A650
    #define CAM_COLORMATRIX1                               \
      913762, 1000000, -261578, 1000000, -135582, 1000000, \
      -99049, 1000000, 1067089, 1000000,  61442,  1000000, \
      48717,  1000000, 96802,   1000000,  412056, 1000000
*/

//G9
        #define CAM_COLORMATRIX1 \
        1679727, 1000000,  422803, 1000000,  803343, 1000000, \
         220204, 1000000, 1784845, 1000000,  -63290, 1000000, \
        -282882, 1000000, -475034, 1000000, 4502592, 1000000

    #define cam_CalibrationIlluminant1 1 // Daylight
    // cropping
    #define CAM_JPEG_WIDTH  4000
    #define CAM_JPEG_HEIGHT 3000
    #define CAM_ACTIVE_AREA_X1 48
    #define CAM_ACTIVE_AREA_Y1 12
    #define CAM_ACTIVE_AREA_X2 4080
    #define CAM_ACTIVE_AREA_Y2 3036

*

Offline srsa_4c

  • ******
  • 3539
Re: IXUS 105 / SD1300 IS porting thread
« Reply #616 on: 03 / March / 2012, 13:48:28 »
I've experimented with the CAM_COLORMATRIX1 you appear to use, and got a "nice" result (both the CFA pattern and color matrix is wrong in this case).
Before that, I used a random camera's data to create a DNG4PS2 profile for the Ixus105, and the result was acceptable. So, what I could recommend is (since AGAIN, this sensor is used in multiple cameras)
from the D10:
Code: [Select]
   #define CAM_COLORMATRIX1                        \
      14052, 10000,   -5229, 10000,   -1156, 10000, \
      -1325, 10000,    9420, 10000,    2252, 10000, \
       -498, 10000,    1957, 10000,    4116, 10000
or from A1100:
Code: [Select]
   #define CAM_COLORMATRIX1                               \
     793137,  1000000, -271722, 1000000, -113158, 1000000, \
     -55013,  1000000,  541027, 1000000,   32394, 1000000, \
      21921,  1000000,   71395, 1000000,  181847, 1000000

The second example was done with the D10 matrix (1.4052, -0.5229, -0.1156, -0.1325, 0.9420, 0.2252, -0.0498, 0.1957, 0.4116) and pattern, used IrfanView for a quick result.

 

Now, some quotes...

You could make this guess-work stop by publishing the platform/loader folder contents for this port... ::)
It was published one year ago :- http://stereo.jpn.org/eng/sdm/file/sdm.zip
As I say, I have tried both CFA patterns since then.
Quote from: the Ixus 105 section of camera.h in SDM 1.85
    #define CAM_RAW_ROWPIX              4104
    #define CAM_RAW_ROWS                3048
    // pattern
    #define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue
    // color

    #define CAM_COLORMATRIX1                               \
      827547, 1000000, -290458, 1000000, -126086, 1000000, \
     -12829,  1000000, 530507,  1000000, 50537,   1000000, \
      5181,   1000000, 48183,   1000000, 245014,  1000000

    #define cam_CalibrationIlluminant1 1 // Daylight
    // cropping
    #define CAM_JPEG_WIDTH  3648
    #define CAM_JPEG_HEIGHT 2736
    #define CAM_ACTIVE_AREA_X1 6
    #define CAM_ACTIVE_AREA_Y1 12
    #define CAM_ACTIVE_AREA_X2 3690
    #define CAM_ACTIVE_AREA_Y2 2772

I know, the CHDK porter had the wrong values.

I used some of these for recent tests :-

Code: [Select]
    #define CAM_RAW_ROWPIX              4104
    #define CAM_RAW_ROWS                3048

   // #define  cam_CFAPattern 0x01000201 // Green  Blue  Red  Green
      #define cam_CFAPattern 0x02010100  // Red  Green  Green  Blue
/*
    #define CAM_COLORMATRIX1                               \
      12724, 10000, -5061, 10000, -1934, 10000, \
      -370, 10000, 7752, 10000, 2619,  10000, \
      839,  10000, -233,   10000, 5750, 10000
*/
/*
 // IXUS960,A650
    #define CAM_COLORMATRIX1                               \
      913762, 1000000, -261578, 1000000, -135582, 1000000, \
      -99049, 1000000, 1067089, 1000000,  61442,  1000000, \
      48717,  1000000, 96802,   1000000,  412056, 1000000
*/

//G9
        #define CAM_COLORMATRIX1 \
        1679727, 1000000,  422803, 1000000,  803343, 1000000, \
         220204, 1000000, 1784845, 1000000,  -63290, 1000000, \
        -282882, 1000000, -475034, 1000000, 4502592, 1000000

    #define cam_CalibrationIlluminant1 1 // Daylight
    // cropping
    #define CAM_JPEG_WIDTH  4000
    #define CAM_JPEG_HEIGHT 3000
    #define CAM_ACTIVE_AREA_X1 48
    #define CAM_ACTIVE_AREA_Y1 12
    #define CAM_ACTIVE_AREA_X2 4080
    #define CAM_ACTIVE_AREA_Y2 3036

Re: IXUS 105 / SD1300 IS porting thread
« Reply #617 on: 03 / March / 2012, 18:32:56 »
New photo (RAW, number 2) for research:



Download "IXUS 105 RAW Number 2.zip" (RAW, JPEG, DNG) - 16,9MB from
mirrorcreator
rapidshare
megashares
depositfiles
zshare
freakshare
uploadstation
mediafire
« Last Edit: 03 / March / 2012, 20:31:54 by bazhuryan »
P.S. Russian is my native language.


Re: IXUS 105 / SD1300 IS porting thread
« Reply #618 on: 03 / March / 2012, 20:37:28 »
It is very late here now, I will compile a new build tomorrow.

Can you post a CRW and HDR file straight from the camera with running process.bat ?

Re: IXUS 105 / SD1300 IS porting thread
« Reply #619 on: 03 / March / 2012, 21:25:25 »
Can you post a CRW and HDR file straight from the camera with running process.bat ?



Download "IXUS_105_RAW__Number_2_only_CRW.zip" (files: "raw.crw", "raw.hdr") - 13,5MB from
mirrorcreator
rapidshare
megashares
depositfiles
zshare
filefactory
uploaded
freakshare
« Last Edit: 03 / March / 2012, 21:28:55 by bazhuryan »
P.S. Russian is my native language.

 

Related Topics