14.06.2024, 22:18
Quote:Also, the current script is causing the grain to extend beyond the white areas, which looks bad.Yes, that is what all those
mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand().mt_expand()
for i in range(11):
white_mask = white_mask.stdMaximum(white_mask)
=> remove those parts if that is not what you wanted.
For a specific color mask, use: https://github.com/Beatrice-Raws/VapourSynth-TColorMask instead of BinarizeMask with a threshold.
Cu Selur