Hello all, I'm trying to build a proper DNG file from the raw CFA image acquired directly form an industrial camera.
As usually there are a number of bad pixels around and I would like to mark them in the DNG so they can be correctly interpolated when the image is processed.
In the latest DNG SDK (1.4) I've only found this rather thin references:
"Defective Pixels
There are two ways to deal with defective pixels in DNG.
The first is to map out (interpolate over) the defective pixels before storing the raw data in DNG.
The second is to include a bad pixel fixing opcode in the OpcodeList1 tag."
OK, as each program/customer/etc. seem to have its own ( best ) algorithm to interpolate the bad pixels then OpcodeList1 it is.
But then I've got this: FixBadPixelsConstant and I'm not clear about its usage, especially BayerPhase, is the same BayerPhase that is specified as a global property of the CFA or it is something separate and what ?
Also is there some "industry standard" value for the Constant that will make more likely the established programs to process correctly the image ?
And this Constant value is unique per DNG or can it be more ot them added, i.e. to somehow characterize the "badness" of the pixel, like reduced sensitivity, stuck at 0/max, etc ?
In the end if somebody can share an one-liner on how to add programatically this tag using the SDK I'll be very grateful.
Sorry for my newebie questions and many thanks for your help.