GodofaGap
22nd August 2006, 22:29
I have been messing around with ColorYUV trying to remove some MPEG2 compression noise in low contrast areas which comes out very blocky when compressed with x264 or XviD (I will post pics if needed), but basically I can't get it to do what I want as every operation works on all values on luma.
What I want is a function that touches pixels above or beneath a certain threshold, but leaves the rest alone. For example: if luma of a pixel is smaller than 20, change it to 16 (or substract a value of X would be sufficient too), if 20 or higher leave luma alone.
Does anyone knows if a function of that sort exists, or perhaps if one could be made. I'm certainly no AVS script hero.
Right now I am just substracting a value and then expanding the range back again by using gain, which is not that bad in itself but makes the vid a tad more dark.
Thanks for any insights. :)
What I want is a function that touches pixels above or beneath a certain threshold, but leaves the rest alone. For example: if luma of a pixel is smaller than 20, change it to 16 (or substract a value of X would be sufficient too), if 20 or higher leave luma alone.
Does anyone knows if a function of that sort exists, or perhaps if one could be made. I'm certainly no AVS script hero.
Right now I am just substracting a value and then expanding the range back again by using gain, which is not that bad in itself but makes the vid a tad more dark.
Thanks for any insights. :)