Save RAW files in DNG format instead of RAW - page 21 - Feature Requests - CHDK Forum
supplierdeeply

Save RAW files in DNG format instead of RAW

  • 392 Replies
  • 193586 Views
*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #200 on: 29 / November / 2008, 05:05:47 »
Advertisements
I have a problem with "show_bad_b.exe", it seems to always give "Total: 6069.".
I've just tested on 3 raw-files, one 1sec, one 10sec and one 64sec exposure.
10 sec and 64 sec is too big exposure time for this, maybe 1/2 - 1/5 sec is optimal.
Quote
All three badpixel.bin's is identical and 24276 bytes big.
Is there some bug in this program, or do i have way to many bad pixels?
This is typical value for 1/2.5" matrix. For 1/1.8" and bigger maybe typical value is ~700 (but statiscs is too small).

*

Offline hotvedt

  • ***
  • 106
  • A540/SX110IS/350D
Re: Save RAW files in DNG format instead of RAW
« Reply #201 on: 29 / November / 2008, 05:43:51 »
Yes, thanks for the quick reply.
I've used an 1/8 exposure now, and it works.

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Save RAW files in DNG format instead of RAW
« Reply #202 on: 29 / November / 2008, 08:37:45 »
Quote
This is typical value for 1/2.5" matrix. For 1/1.8" and bigger maybe typical value is ~700 (but statiscs is too small).

All I get on A620 (1/1.7") is 1940 (badpixel.bin ~8k)

used mode M, ISO 50, 1 - 1/2 - 1/4 - 1/8 - 1/25 - 1/50 sec

since i assumed that something was wrong if i didn't get variation, i then tried changing the
"Bad pixel removal" option ( off / RAWcon / Average ), but that had no effect, either ...

So does this mean my cam maintains only 1 bad pixel list ?

wim

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #203 on: 29 / November / 2008, 09:02:50 »
All I get on A620 (1/1.7") is 1940 (badpixel.bin ~8k)
size of badpixel.bin = number of bad pixels *4
Quote
since i assumed that something was wrong if i didn't get variation, i then tried changing the
"Bad pixel removal" option ( off / RAWcon / Average ), but that had no effect, either ...

Of course, this option is applicable only for user's badpixel list (badpixel.txt)

Quote
So does this mean my cam maintains only 1 bad pixel list ?
This question for A620 developers from Canon :D. Maybe yes.
BTW, A710 have 2 such lists, SX100 -3, IXUS700 - only one (IXUS700 matrix=a620 matrix). Maybe this depends on maxtrix type.
« Last Edit: 29 / November / 2008, 09:05:35 by ewavr »


*

Offline hotvedt

  • ***
  • 106
  • A540/SX110IS/350D
Re: Save RAW files in DNG format instead of RAW
« Reply #204 on: 30 / November / 2008, 05:53:46 »
Would it be best to average a bunch of raw-files, and use the result to make the badpixel.bin ?

Re: Save RAW files in DNG format instead of RAW
« Reply #205 on: 30 / November / 2008, 06:16:35 »
Minor ammendments to camera.h and dng_hdr.c

ewavr,

I've made a couple of minor ammendments to these files:

a) I've added an empty ImageDescription (0x10E) tag. This is a mandatory tag for TIFF/EP (it is allowed to be empty, however).

b) I've changed some of the hard-coded values in dng_hdr.c into #defines and put them in camera.h. This allows greater flexibility for future cameras. So, for example, although currently all CHDK supported cameras are 10 bits per pixel, there is no reason why Canon might not bring out a 12 bit per pixel camera. The CHDK code assumes 10 bits per pixel in a number of places but the fewer places that this is assumed the easier it will be to port to such a camera. The dng code does not need to make this assumption.

My code is at:

chdkmartin - Google Code

Martin

Re: Save RAW files in DNG format instead of RAW
« Reply #206 on: 30 / November / 2008, 06:22:52 »
Thoughts on file extension

I'd like to be able to set the file extension to .DNG even if this is not visible when the camera is attached by a USB cable - I always transfer photos by physically removing the SD card. Some other members on this forum have also indicated this.

Of course it would be nice if the file was also visible over USB, but I don't think this is essential.

Martin

Re: Save RAW files in DNG format instead of RAW
« Reply #207 on: 30 / November / 2008, 12:21:17 »
Thoughts on file extension

I'd like to be able to set the file extension to .DNG even if this is not visible when the camera is attached by a USB cable - I always transfer photos by physically removing the SD card. Some other members on this forum have also indicated this.

Of course it would be nice if the file was also visible over USB, but I don't think this is essential.

Martin

I agree, it's not essential to have it visible regardless.
________________________
Jim Manning
Canon Powershot S5 IS (1.01b)


*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Save RAW files in DNG format instead of RAW
« Reply #208 on: 01 / December / 2008, 11:14:50 »
After a suggestion by fe50, i'm currently working on support for BADPIXEL.BIN creation
in CardTricks for people with a command line phobia  :)

In order to make this work properly on as many cams as possible, i would like to suggest
to the user which RAWs he/she needs to shoot to get a proper badpixel.bin.
In some cams, there's only one internal badpixel list, which means any single CRW
file is enough to create badpixel.bin; in others you need several CRWs, see quotes:

ewavr wrote in #33 in this thread:
Quote
It creates in current folder output file badpixel.bin and reports about defect pixel count. Try several RAW files to obtain stable result (approximate shooting conditions: minimal ISO, exposure time ~1/10s). Some cameras have two defect pixel lists, which are switched at exposure time ~1/25 s (my cam has 7473 and 3607 defect pixels in each list). Use list with maximum (but stable) defect pixel count, otherwise you can see multiple black points on image in some RAW convertors.
... and in #203:
Quote
A710 have 2 such lists, SX100 -3, IXUS700 - only one (IXUS700 matrix=a620 matrix)

So would an SX100 owner be so kind as to share which shutter speeds they had cycle through to arrive at
a correct badpixel.bin ?

TIA,

wim


PS
about badpixel file creation: is there a chance we can do this in camera? shoot an "old format" raw, go to file browser -> "right click" create badpixel file. no?

Yes, this feature in my plans.
Hmm, six check-ins in one day? I don't have time to refresh my local copy  :D.

... would of course be a lot better !!!
« Last Edit: 01 / December / 2008, 11:36:32 by whim »

Re: Save RAW files in DNG format instead of RAW
« Reply #209 on: 01 / December / 2008, 11:57:43 »
we need a cross-platform solution... so in camera is the best...  ::)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal