Log in

View Full Version : subtractluma() ?


jonas
1st March 2003, 23:39
Hi,

I need to take the luma of a luma clip away from a base click. So basicly a SubtractLuma. if the luma clip is bright the result should be a darker base clip. if the luma clip is black, the result should be base clip.

Does anybody know how this can be achieved?

thanks
jonas

mf
2nd March 2003, 00:13
Maybe try setting brightness to 0 and then to 128 again while working in a YUV colorspace. This works in ffdshow, don't know about avisynth.

jonas
2nd March 2003, 11:13
sorry mf, I slept over your answer hoping to understand what you mean, but it didn't help :(.

I don't see how setting brightness to 0 and back to normal would do anything.

jonas

sh0dan
2nd March 2003, 17:31
Layer in YUY2 mode should be able to help you.