white and black threshold & change white and block value
Posted: 2010-01-29T19:06:45-07:00
I have a YCbCr file, I want to force all pixels with Y > 235 to 235 (instead of 255), and force all pixels with Y<16 to 16 (instead of 0)
It is pretty close to what white-threshold and black-threshold do, but I want the white point to be 235 instead of 255, and the black point to be 16 instead of 0.
I could not find a way to do that. Help please!
-white-threshold Force to white all pixels above the threshold while leaving all pixels at or below the threshold unchanged.
-black-threshold Force to black all pixels below the threshold while leaving all pixels at or above the threshold unchanged.
Thanks.
-st
It is pretty close to what white-threshold and black-threshold do, but I want the white point to be 235 instead of 255, and the black point to be 16 instead of 0.
I could not find a way to do that. Help please!
-white-threshold Force to white all pixels above the threshold while leaving all pixels at or below the threshold unchanged.
-black-threshold Force to black all pixels below the threshold while leaving all pixels at or above the threshold unchanged.
Thanks.
-st