remove CLIP() from index when accessing gamma2curve LUT because gamma2curve LUT already clips internally
This commit is contained in:
@@ -117,9 +117,9 @@ void ImProcFunctions::lab2monitorRgb (LabImage* lab, Image8* image)
|
|||||||
|
|
||||||
/* copy RGB */
|
/* copy RGB */
|
||||||
//int R1=((int)gamma2curve[(R)])
|
//int R1=((int)gamma2curve[(R)])
|
||||||
data[ix++] = ((int)Color::gamma2curve[CLIP(R)]) >> 8;
|
data[ix++] = ((int)Color::gamma2curve[R]) >> 8;
|
||||||
data[ix++] = ((int)Color::gamma2curve[CLIP(G)]) >> 8;
|
data[ix++] = ((int)Color::gamma2curve[G]) >> 8;
|
||||||
data[ix++] = ((int)Color::gamma2curve[CLIP(B)]) >> 8;
|
data[ix++] = ((int)Color::gamma2curve[B]) >> 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -229,9 +229,9 @@ Image8* ImProcFunctions::lab2rgb (LabImage* lab, int cx, int cy, int cw, int ch,
|
|||||||
|
|
||||||
Color::xyz2rgb(x_, y_, z_, R, G, B, rgb_xyz);
|
Color::xyz2rgb(x_, y_, z_, R, G, B, rgb_xyz);
|
||||||
|
|
||||||
image->data[ix++] = (int)Color::gamma2curve[CLIP(R)] >> 8;
|
image->data[ix++] = (int)Color::gamma2curve[R] >> 8;
|
||||||
image->data[ix++] = (int)Color::gamma2curve[CLIP(G)] >> 8;
|
image->data[ix++] = (int)Color::gamma2curve[G] >> 8;
|
||||||
image->data[ix++] = (int)Color::gamma2curve[CLIP(B)] >> 8;
|
image->data[ix++] = (int)Color::gamma2curve[B] >> 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user