removed benchmark code from raw false colour suppression
This commit is contained in:
@@ -33,8 +33,6 @@
|
||||
#include "dcp.h"
|
||||
#include "rt_math.h"
|
||||
#include "improcfun.h"
|
||||
#define BENCHMARK
|
||||
#include "StopWatch.h"
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h>
|
||||
#endif
|
||||
@@ -3546,7 +3544,6 @@ void RawImageSource::processFalseColorCorrectionThread (Imagefloat* im, array2D
|
||||
// correction_YIQ_LQ
|
||||
void RawImageSource::processFalseColorCorrection (Imagefloat* im, const int steps)
|
||||
{
|
||||
BENCHFUN
|
||||
|
||||
if (im->height < 4 || steps < 1) {
|
||||
return;
|
||||
|
||||
@@ -209,7 +209,7 @@ protected:
|
||||
void processFalseColorCorrection (Imagefloat* i, const int steps);
|
||||
inline void convert_row_to_YIQ (const float* const r, const float* const g, const float* const b, float* Y, float* I, float* Q, const int W);
|
||||
inline void convert_row_to_RGB (float* r, float* g, float* b, const float* const Y, const float* const I, const float* const Q, const int W);
|
||||
inline void convert_to_RGB (float &r, float &g, float &b, const float &Y, const float &I, const float &Q);
|
||||
inline void convert_to_RGB (float &r, float &g, float &b, const float Y, const float I, const float Q);
|
||||
|
||||
inline void convert_to_cielab_row (float* ar, float* ag, float* ab, float* oL, float* oa, float* ob);
|
||||
inline void interpolate_row_g (float* agh, float* agv, int i);
|
||||
|
||||
@@ -51,7 +51,7 @@ inline void RawImageSource::convert_row_to_RGB (float* r, float* g, float* b, co
|
||||
}
|
||||
}
|
||||
|
||||
inline void RawImageSource::convert_to_RGB (float &r, float &g, float &b, const float &Y, const float &I, const float &Q)
|
||||
inline void RawImageSource::convert_to_RGB (float &r, float &g, float &b, const float Y, const float I, const float Q)
|
||||
{
|
||||
r = Y + 0.956f * I + 0.621f * Q;
|
||||
g = Y - 0.272f * I - 0.647f * Q;
|
||||
|
||||
Reference in New Issue
Block a user