pixelshift: optional red/blue check

This commit is contained in:
heckflosse
2016-11-27 18:42:58 +01:00
parent 9bcb347a3b
commit ac5bad2de1
14 changed files with 218 additions and 121 deletions

View File

@@ -136,7 +136,7 @@ void ffInfo::updateRawImage()
} else {
int H = ri->get_height();
int W = ri->get_width();
ri->compress_image();
ri->compress_image(0);
int rSize = W * ((ri->getSensorType() == ST_BAYER || ri->getSensorType() == ST_FUJI_XTRANS) ? 1 : 3);
acc_t **acc = new acc_t*[H];
@@ -156,7 +156,7 @@ void ffInfo::updateRawImage()
RawImage* temp = new RawImage(*iName);
if( !temp->loadRaw(true)) {
temp->compress_image(); //\ TODO would be better working on original, because is temporary
temp->compress_image(0); //\ TODO would be better working on original, because is temporary
nFiles++;
if( ri->getSensorType() == ST_BAYER || ri->getSensorType() == ST_FUJI_XTRANS ) {
@@ -195,7 +195,7 @@ void ffInfo::updateRawImage()
delete ri;
ri = nullptr;
} else {
ri->compress_image();
ri->compress_image(0);
}
}