5% speedup for raw false colour suppression

This commit is contained in:
heckflosse
2016-03-13 17:15:31 +01:00
parent 9b2e197172
commit c200c266c0
3 changed files with 25 additions and 18 deletions

View File

@@ -51,6 +51,13 @@ 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)
{
r = Y + 0.956f * I + 0.621f * Q;
g = Y - 0.272f * I - 0.647f * Q;
b = Y - 1.105f * I + 1.702f * Q;
}
inline void RawImageSource::convert_to_cielab_row (float* ar, float* ag, float* ab, float* oL, float* oa, float* ob)
{