Log in

View Full Version : Excluding an area with specific colorrange when applying filters.Like MagicWand in PS


tip
4th May 2016, 16:20
Hi everyone,

I was trying to clean up a Bluray which has excessive amounts of grain and experimented with bunch of filters. I think I get the best results with MCTemporalDenoise. But I have noticed in some frames where a characters face moves, MCTD also removes some fine facial details too. In frames in which there is no noticable movement, those details are present and the frame looks very good. I belive this is expected from a temporal denoiser. So I have a question.

Is there a way to apply a filter to the whole frame and keep processed frame in a variable, then take the unprocessed frame and extract continuous blocks with a specified color range like the magic wand in photoshop (in this case, skin tones) and then merge those two frames.

###########
Ex:
unprocessedFrame = last
facialBlocks = unprocessedFrame.getContinuousBlocksWithColorRange(ContinuousBlocksThatAreBiggerThan2048Pixels,skinTonesInterval)
processedFrame = unprocessedFrame.MCTD(...)

return merge(processedFrame,100%, facialBlocks, 60%)
###########

I am also open to different suggestions.

Thanks in advance.

feisty2
5th May 2016, 17:18
u want mmask