Author | Message |
---|---|
yzhao52
Posts: 32
|
Posted 12:31 Apr 25, 2020 |
Two overloaded functions clip() have been provided in ColorImageDCTCoder.java, which will return the clipped int/double-type value. Then you need to store it back. For example, after YCbCr to RGB conversion, the R value shall be clipped as follows: R[y][x] = clip(R[y][x], 0, 255);
|