Bugfix for flat field.
This commit is contained in:
@@ -1133,9 +1133,6 @@ void RawImageSource::demosaic(const RAWParams &raw)
|
||||
*/
|
||||
void RawImageSource::copyOriginalPixels(const RAWParams &raw, RawImage *src, RawImage *riDark, RawImage *riFlatFile )
|
||||
{
|
||||
if (ri->isBayer()) {
|
||||
if (!rawData)
|
||||
rawData = allocArray< unsigned short >(W,H);
|
||||
|
||||
if (ri->isBayer()) {
|
||||
if (!rawData)
|
||||
@@ -1176,8 +1173,8 @@ void RawImageSource::copyOriginalPixels(const RAWParams &raw, RawImage *src, Raw
|
||||
}
|
||||
|
||||
|
||||
if (riFlatFile && W == riFlatFile->get_width() && H == riFlatFile->get_height()) {
|
||||
|
||||
if (ri->isBayer() && riFlatFile && W == riFlatFile->get_width() && H == riFlatFile->get_height()) {
|
||||
//TODO: flat field correction for non-Bayer raw data
|
||||
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
float (*cfablur);
|
||||
cfablur = (float (*)) calloc (H*W, sizeof *cfablur);
|
||||
@@ -1245,7 +1242,7 @@ void RawImageSource::copyOriginalPixels(const RAWParams &raw, RawImage *src, Raw
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void RawImageSource::cfaboxblur(RawImage *riFlatFile, float* cfablur, int boxH, int boxW ) {
|
||||
|
Reference in New Issue
Block a user