You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how to adjust compression ratio?and why the decode image after encode will appear some white points, why?
The text was updated successfully, but these errors were encountered:
maliho0803
changed the title
how to adjust compression ratio?
how to adjust compression ratio?and why the decode image after encode will appear some white points, why?
Sep 29, 2019
@maliho0803 it is because dct/idct cant get exact same result, and some rgb vlaue become around (-10,0), moreover if using ycbcr color space, it will be more easy to get such value around (-5,0), transfering them to unit8 will make them become (245,255) so you see the white points
@xwk111 I think one way could be adjusting quantization table. Bigger values would enable more rough quantization, which results in smaller data size. You can easiliy test with changing arrays after initialization in load_quantization_table function in utils.py.
how to adjust compression ratio?and why the decode image after encode will appear some white points, why?
The text was updated successfully, but these errors were encountered: