parent
e980d9b225
commit
3b78a5c227
@ -257,7 +257,7 @@ void dfInfo::updateBadPixelList( RawImage *df )
|
||||
}
|
||||
|
||||
if( df->data[row][3 * col] > m[0]*threshold || df->data[row][3 * col + 1] > m[1]*threshold || df->data[row][3 * col + 2] > m[2]*threshold) {
|
||||
badPixels.push_back( badPix(col, row) );
|
||||
badPixels.emplace_back(col, row);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -571,7 +571,7 @@ int DFManager::scanBadPixelsFile( Glib::ustring filename )
|
||||
|
||||
while( fgets(line, sizeof(line), file ) ) {
|
||||
if( sscanf(line, "%d %d", &x, &y) == 2 ) {
|
||||
bp.push_back( badPix(x + offset, y + offset) );
|
||||
bp.emplace_back(x + offset, y + offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -592,7 +592,7 @@ std::vector<badPix> *DFManager::getBadPixels ( const std::string &mak, const std
|
||||
bool found = false;
|
||||
|
||||
if( !serial.empty() ) {
|
||||
// search with sreial number first
|
||||
// search with serial number first
|
||||
std::ostringstream s;
|
||||
s << mak << " " << mod << " " << serial;
|
||||
iter = bpList.find( s.str() );
|
||||
|
@ -25,8 +25,6 @@
|
||||
#include "editcallbacks.h"
|
||||
|
||||
#include "../rtengine/curves.h"
|
||||
#include <cstring>
|
||||
#include <gdkmm/types.h>
|
||||
|
||||
MyDiagonalCurve::MyDiagonalCurve () :
|
||||
MyCurve(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user