Added new mode "Horizontal on PDAF rows only" for the "line noise filter"

This commit is contained in:
Alberto Griggio
2018-03-10 22:56:45 +01:00
parent 478ebb1a49
commit 81210d18b4
8 changed files with 79 additions and 9 deletions

View File

@@ -221,6 +221,12 @@ public:
protected:
const float thresh_;
};
class CFALineDenoiseRowBlender {
public:
virtual ~CFALineDenoiseRowBlender() {}
virtual float operator()(int row) const { return 1.f; }
};
protected:
typedef unsigned short ushort;
@@ -243,7 +249,7 @@ protected:
int interpolateBadPixelsXtrans( PixelsMap &bitmapBads );
int findHotDeadPixels( PixelsMap &bpMap, float thresh, bool findHotPixels, bool findDeadPixels );
void cfa_linedn (float linenoiselevel, bool horizontal, bool vertical);//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 (const GreenEqulibrateThreshold &greenthresh, array2D<float> &rawData);//Emil's green equilibration