merge with Dev

This commit is contained in:
Desmis
2018-03-26 14:59:08 +02:00
73 changed files with 1381 additions and 136 deletions

View File

@@ -221,6 +221,21 @@ public:
return numFrames;
}
class GreenEqulibrateThreshold {
public:
explicit GreenEqulibrateThreshold(float thresh): thresh_(thresh) {}
virtual ~GreenEqulibrateThreshold() {}
virtual float operator()(int row, int column) const { return thresh_; }
protected:
const float thresh_;
};
class CFALineDenoiseRowBlender {
public:
virtual ~CFALineDenoiseRowBlender() {}
virtual float operator()(int row) const { return 1.f; }
};
protected:
typedef unsigned short ushort;
void processFalseColorCorrection(Imagefloat* i, const int steps);
@@ -242,10 +257,10 @@ protected:
int interpolateBadPixelsXtrans(PixelsMap &bitmapBads);
int findHotDeadPixels(PixelsMap &bpMap, float thresh, bool findHotPixels, bool findDeadPixels);
void cfa_linedn(float linenoiselevel); //Emil's line denoise
void cfa_linedn (float linenoiselevel, bool horizontal, bool vertical, const CFALineDenoiseRowBlender &rowblender);//Emil's line denoise
void green_equilibrate_global(array2D<float> &rawData);
void green_equilibrate(float greenthresh, array2D<float> &rawData); //Emil's green equilibration
void green_equilibrate (const GreenEqulibrateThreshold &greenthresh, array2D<float> &rawData);//Emil's green equilibration
void nodemosaic(bool bw);
void eahd_demosaic();