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

A590IS porting...

  • 968 Replies
  • 326535 Views
*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #650 on: 26 / October / 2009, 13:59:09 »
Advertisements
@wim, sure, I will test the binaries.
Hey, where is your A590-101b ? :)

*

Offline whim

  • ******
  • 2041
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: A590IS porting...
« Reply #651 on: 26 / October / 2009, 14:31:43 »
@dvip

in it's place, but i think compiling/uploading is faster  :lol

here's what I found out so far: there's 6 other cams with 1/2.5" / 8 MP sensors

of those, 5 use the same set of CAM_ACTIVE_AREA
                     (x1,y1,x2,y2) = (10, 8, 3302, 2474)        cams: a720, ixus860, ixus950, sx100is, s5is

the ixus80 uses                      ( 6, 6, 3304, 2476)

while the a590 now has           ( 8, 8, 3304, 2480)

which means we only need two test binaries.. what firmware do you use ? saw you're on 101b as well


later,

wim

edit: here's the links:

http://drop.io/chdkshellbeta/asset/chdk-a590-101b-0-9-8-822-10-8-style-zip
http://drop.io/chdkshellbeta/asset/chdk-a590-101b-0-9-8-822-6-6-style-zip
edit2: i kinda hope if 1 of these doesn't cure it, we can at least get an idea what (x1,y1,x2,y2) are  :D
edit3: just discovered why i hadn't noticed this black bar stuff before: Raw Therapee seems to chop it automatically ...
« Last Edit: 26 / October / 2009, 17:10:07 by whim »

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #652 on: 26 / October / 2009, 17:39:34 »
@whim,
chdk-a590-101b-0-9-8-822-6-6-style-zip is better, no more
double frame there like before.

The black line at the button is gone :)
Now you just need to make the left, top, and right go
away and no more frame around RAW pictures.

Just don't trim too much... you can make our A590IS-101b 
a 7 MP cam... LOL  :lol

*

Offline reyalp

  • ******
  • 13392
Re: A590IS porting...
« Reply #653 on: 26 / October / 2009, 17:50:49 »
Uhm. Here's how you do it:
- Take a CRW image.
- Convert it to a grayscale without demosaicing (e.g.  dcraw -D -W -4 , use -T if you want a tiff) use rawconvert in the source tree CHDK tools directory
- 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!

edit:
You may be able to omit the -4 above to get an 8 bit image that will still be usable for this purpose.
« Last Edit: 28 / October / 2009, 00:41:49 by reyalp »
Don't forget what the H stands for.


*

Offline whim

  • ******
  • 2041
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: A590IS porting...
« Reply #654 on: 26 / October / 2009, 18:17:09 »
@reyalp

thanks, i'll give it a shot

wim

*

Offline whim

  • ******
  • 2041
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: A590IS porting...
« Reply #655 on: 26 / October / 2009, 22:07:01 »
OK, having followed the procedure i got my TIFF (Irfanview showed a size of 3298 x 2472)
After blowing it up to ~500% i'd say the black band widths are:  3 pix @left, 2 pix @top and 2 pix @right
Screenshots of Irfan showing the top left and bottom right corners of the tiff are here:
http://drop.io/chdkshellbeta/asset/top-left-png
http://drop.io/chdkshellbeta/asset/bottom-right-png

need some sleep now,
wim


*

Offline reyalp

  • ******
  • 13392
Re: A590IS porting...
« Reply #656 on: 26 / October / 2009, 22:29:19 »
OK, having followed the procedure i got my TIFF (Irfanview showed a size of 3298 x 2472)
Ugh, either irfanview is lying to you, or (more likely) dcraw is already removing some border pixels, since the dimensions in camera.h are
Code: [Select]
#define CAM_RAW_ROWPIX              3336   // for new 8 MP
#define CAM_RAW_ROWS                2480   // for new 8 MP
The CRW raw will definitely start out this size.

I have a tool that does a truly raw conversion of 12bit raws, I guess I'll add the ten bit stuff and post it, unless someone else already has one handy.
Don't forget what the H stands for.

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #657 on: 26 / October / 2009, 23:02:55 »
@whim,
That's fine for the outer black border.
But in order to avoid the other parallel border on
the active area I think it is better:

6 pixels @left, 5 pixels @top, 5 pixels @right

As I said before there are two borders, one very dark in the
outside and one that looks colorful parallel to the dark one
but in the inside, it looks like it is on top of the active area.

I counted the pixels using IrfanView too.
Thanks reyalp for taking a look too.




*

Offline reyalp

  • ******
  • 13392
Re: A590IS porting...
« Reply #658 on: 26 / October / 2009, 23:07:30 »
If you post a CRW from this camera somewhere, I'll take a closer look. Make sure the image isn't badly underexposed, and that you don't have a badpixel.bin present.

You can upload to http://www.zshare.net/ or similar file hosting site.
Don't forget what the H stands for.

*

Offline whim

  • ******
  • 2041
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: A590IS porting...
« Reply #659 on: 27 / October / 2009, 06:35:16 »
Here's a CRW (without badpixel.bin this time) http://drop.io/chdkshellbeta/asset/a590-test-crw

wim

PS ... and, i think it might be a good idea (for the graphically challenged, like me  :D) to add
Quote
    #undef CAM_ACTIVE_AREA_X1
    #undef CAM_ACTIVE_AREA_Y1
    #undef CAM_ACTIVE_AREA_X2
    #undef CAM_ACTIVE_AREA_Y2
    to camera.h default section with some kind helpfull comment
« Last Edit: 27 / October / 2009, 08:44:04 by whim »

 

Related Topics