|
@@ -358,18 +358,17 @@ void ImageHDR::ycurve_histogram_regularization(float* colorDataY, float* colorDa
|
|
void ImageHDR::yCurve(float s, float b, float m, float w, float h)
|
|
void ImageHDR::yCurve(float s, float b, float m, float w, float h)
|
|
{
|
|
{
|
|
|
|
|
|
- std::cout << data[0] << std::endl;
|
|
|
|
|
|
+ display_debug();
|
|
|
|
|
|
if (linear)
|
|
if (linear)
|
|
{
|
|
{
|
|
linear_to_non_linear();
|
|
linear_to_non_linear();
|
|
linear = false;
|
|
linear = false;
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
float* colorDataY = Conversion::sRGB_to_Y_of_XYZ(data, width * height);
|
|
float* colorDataY = Conversion::sRGB_to_Y_of_XYZ(data, width * height);
|
|
|
|
|
|
- std::cout << colorDataY[0] << std::endl;
|
|
|
|
|
|
+ //std::cout << colorDataY[0] << std::endl;
|
|
|
|
|
|
YCurve yc(s, b, m, w, h, 200);
|
|
YCurve yc(s, b, m, w, h, 200);
|
|
|
|
|