A590IS porting... - page 67 - DryOS Development - CHDK Forum

A590IS porting...

  • 968 Replies
  • 418968 Views
*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #660 on: 27 / October / 2009, 12:41:45 »
Advertisements
@Whin
I noticed that in your A590IS the borders are wider:

The trim should be:

10 pixels @left, 13 pixels @top, 6 pixels @right

It looks like our CCDs are different.

Thanks for posting the RAW.




*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: A590IS porting...
« Reply #661 on: 27 / October / 2009, 13:13:58 »
- Take a CRW image.
- Convert it to a grayscale without demosaicing (e.g.  dcraw -D -W -4 , use -T if you want a tiff)
- load this image in an image viewer that supports the specified format
- possibly adjust the contrast until you can see the image (a direct to 16 bit conversion will be very dark)
- count how many pixels wide each black border is
- use the information above to calculate your active area!

Hmm, if I convert CRW from a710, no black borders in tiff file. Because dcraw crops image before converting to tiff using settings from other camera (a620).

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: A590IS porting...
« Reply #662 on: 27 / October / 2009, 14:08:31 »
@ewavr

Does that mean that if my CHDK binary already has settings for CAM_ACTIVE_AREA that it will use
these to crop the CRW that i'm shooting  ???

@dvip

thanks, but due to my evident total lack of understanding of what CAM_ACTIVE_AREA_x2 & y2 mean, i can only
build you a binary if you supply data in a form i can grasp, like ( x1, y1, x2, y2 )

cheers,

wim

*

Offline whoever

  • ****
  • 280
  • IXUS950
Re: A590IS porting...
« Reply #663 on: 27 / October / 2009, 14:30:19 »
dcraw recognizes CHDK raw files by their size, and by size only, since they are truly raw so to say. Thus, A590 crw's are recognized as A720, as they are the same size, and the corresponding margins are silently assumed. Yo have to recompile dcraw with zero margins for this filesize, in order that it shows the fuul image.

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #664 on: 27 / October / 2009, 14:38:54 »
@whim

X1 = 10,  Y2 = 13,  X2 = 3292,  Y2 = 2471

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: A590IS porting...
« Reply #665 on: 27 / October / 2009, 15:02:34 »
Does that mean that if my CHDK binary already has settings for CAM_ACTIVE_AREA that it will use
these to crop the CRW that i'm shooting  ???

No, crop settings for a620 are located inside dcraw.exe, which cannot distinguish a710's raw from a620's raw.

*

Offline reyalp

  • ******
  • 14125
Re: A590IS porting...
« Reply #666 on: 27 / October / 2009, 16:51:53 »
Hmm, if I convert CRW from a710, no black borders in tiff file. Because dcraw crops image before converting to tiff using settings from other camera (a620).
Yes, it turns out dcraw doesn't have a "just turn it to 8 or 16 bit and don't touch anything else" option.

Now that I think about it, dcraw also interpolates over 0 value pixels no matter what AFAIK, so it will smear over the borders (mostly down and left).
Don't forget what the H stands for.

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: A590IS porting...
« Reply #667 on: 27 / October / 2009, 16:56:01 »

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #668 on: 27 / October / 2009, 17:39:37 »
@whim,
With CHDK-a590-101b-0.9.8-822(@10-13-3292-2471).zip
the camera won't even turn on. So I'm back to
CHDK-a590-101b-0.9.8-822(6-6-style).zip.



*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: A590IS porting...
« Reply #669 on: 27 / October / 2009, 18:00:02 »
@whim,
With CHDK-a590-101b-0.9.8-822(@10-13-3292-2471).zip
the camera won't even turn on. So I'm back to
CHDK-a590-101b-0.9.8-822(6-6-style).zip.

i tested it, this time (if it boots, that is) http://drop.io/chdkshellbeta/asset/chdk-a590-101b-0-9-8-822-10-13-style-zip

sorry again,

wim

 

Related Topics


SimplePortal © 2008-2014, SimplePortal