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

Save RAW files in DNG format instead of RAW

  • 392 Replies
  • 204983 Views
Re: Save RAW files in DNG format instead of RAW
« Reply #210 on: 01 / December / 2008, 12:57:41 »
Advertisements
Is there a way to use Lua for generating a badpixel.bin file? Or is it not robust enough yet to handle that?
________________________
Jim Manning
Canon Powershot S5 IS (1.01b)

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #211 on: 01 / December / 2008, 13:40:31 »
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 ?
On SX100IS: shutter speed 1/6 s. and longer - maximum bad pilxel count (at lowest ISO). But this is ISO dependent and may be temperature dependent.

Quote
... would of course be a lot better !!!
So, I started this work (bad pixels list creation in camera). Scan rate (using get_raw_pixel() function) is approximately 1 sec/Mp for digic3).

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #212 on: 01 / December / 2008, 13:51:51 »
considering it is a one-time thing only, this is pretty fast :)

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Save RAW files in DNG format instead of RAW
« Reply #213 on: 01 / December / 2008, 14:56:23 »
considering it is a one-time thing only, this is pretty fast :)

Excuse me for being ignorant, but is this truly a one time thing? I mean, are we reading something Canon wrote to FLASH at a production test bench (which will gradually become more and more inaccurate due to new bad pixels), or something that will change when new bad pixels appear?

*

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 #214 on: 01 / December / 2008, 15:07:57 »
@ewavr

Quote
So, I started this work (bad pixels list creation in camera). Scan rate (using get_raw_pixel() function) is approximately 1 sec/Mp for digic3).

Excellent ! I guess i'll stop work on doing the badpixel thingy in CardTricks ...
I tend to agree with PhyrePhox: time doesn't matter for a once-only process.

thanks,

wim

@fudgey
well... if you notice this in your DNG's, couldn't you just kill your badpixel,bin and have CHDK refresh it ?
« Last Edit: 01 / December / 2008, 15:10:43 by whim »

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #215 on: 01 / December / 2008, 15:22:29 »
besides - one or two badpixels more or less - depending on the raw editing software you wont notice them anyways (for example adobe converter automatically detects and fixes bad pixels - Faststone Image Viewer does not).

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #216 on: 01 / December / 2008, 16:18:01 »
Is there a way to use Lua for generating a badpixel.bin file?

So, I propose for this: small CHDK modification (diff attached) and lua script (also attached).
Tested on sx100is, produces same result as show_bad_b.exe

warning: this message is for developers only, script alone don't work properly with current CHDK.

« Last Edit: 01 / December / 2008, 16:21:22 by ewavr »

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Save RAW files in DNG format instead of RAW
« Reply #217 on: 01 / December / 2008, 17:15:16 »
well... if you notice this in your DNG's, couldn't you just kill your badpixel,bin and have CHDK refresh it ?

Oh, I only asked because I was curious how this works and what's going on here. I don't really use RAW much at all and DNG is even worse because I don't have much software that eats it. I was under the impression that the old badpixels files for CRW interpolation have like four pixels. If we now have thousands, there's clearly a difference between the two.

To formulate the question better, are we creating badpixels lists by deducing things from photos or are we duplicating Canon's lists, or are we almost duplicating Canon's lists with some inaccuracies due to noise and new bad pixels?

If it's the first one, refreshing won't do squat, will it (unless the file has become corrupt)?

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #218 on: 01 / December / 2008, 19:04:26 »
To formulate the question better, are we creating badpixels lists by deducing things from photos or are we duplicating Canon's lists, or are we almost duplicating Canon's lists with some inaccuracies due to noise and new bad pixels?
Badpixel.bin is attempt to duplicate Canon's list, because at present we cannot read it from camera's adjustment table.
So, because internal list can be refreshed only in service, creating badpixel.bin is one-time operation for most cameras.

*

Offline reyalp

  • ******
  • 14128
Re: Save RAW files in DNG format instead of RAW
« Reply #219 on: 01 / December / 2008, 22:20:11 »
Rather than the lua script, how about checking if the users has a badpixel.bin, and creating it the first time the user takes a (raw or dng ?) shot without one ?

You could pop up a message when dng is enabled without one present.

You'd need to sanity check the exposure setting too maybe.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal