Support for Fuji X-Trans-Sensor, Issue 2415 (thanks to Hombre for the changes to gui); Clip Control for Flat Field correction, Issue 2441; Update to dcraw 9.22 1.467
This commit is contained in:
@@ -120,7 +120,7 @@ void dfInfo::updateRawImage()
|
||||
int H = ri->get_height();
|
||||
int W = ri->get_width();
|
||||
ri->compress_image();
|
||||
int rSize = W*(ri->isBayer()?1:3);
|
||||
int rSize = W*((ri->getSensorType()!=ST_NONE)?1:3);
|
||||
acc_t **acc = new acc_t*[H];
|
||||
for( int row=0; row<H;row++)
|
||||
acc[row] = new acc_t[rSize ];
|
||||
@@ -136,7 +136,7 @@ void dfInfo::updateRawImage()
|
||||
if( !temp->loadRaw(true)){
|
||||
temp->compress_image(); //\ TODO would be better working on original, because is temporary
|
||||
nFiles++;
|
||||
if( ri->isBayer() ){
|
||||
if( ri->getSensorType()!=ST_NONE ){
|
||||
for( int row=0; row<H;row++){
|
||||
for( int col=0; col < W;col++)
|
||||
acc[row][col] += temp->data[row][col];
|
||||
@@ -173,7 +173,7 @@ void dfInfo::updateRawImage()
|
||||
void dfInfo::updateBadPixelList( RawImage *df )
|
||||
{
|
||||
const int threshold=10;
|
||||
if( df->isBayer() ){
|
||||
if( ri->getSensorType()!=ST_NONE ){
|
||||
for( int row=2; row<df->get_height()-2; row++)
|
||||
for( int col=2; col < df->get_width()-2; col++){
|
||||
int m = (df->data[row-2][col-2] + df->data[row-2][col] + df->data[row-2][col+2]+
|
||||
|
Reference in New Issue
Block a user