05.02.2025, 20:04
Out of curiosity:
Got an example where stretching the luma of a mask makes sense? (seems like your brightening everything up my a factor of 3.4= 1020/300)
(I guess there might be some case, I just can't think of one.)
Side note: using expr might be faster than using Levels or SmoothLevels.
Or did I misunderstand what you are doing?
I don't see how that is an alternative to binarize (which drops everything under a threshold).
I thought about adding a generic 'Expr' field to be applied to masks, but that seemed like it wouldn't really be used by anyone.
Cu Selur
Ps: What you do is basically stacking masks to create new masks. I thought about it, but I haven't come up with a generic way to add stacked masking, in a way which is still usable in a gui. At the end the only generic way would be to basically write something like Custom script/filter additions? but for masks. (which would be tons of work that basically nobody would use)
Got an example where stretching the luma of a mask makes sense? (seems like your brightening everything up my a factor of 3.4= 1020/300)
(I guess there might be some case, I just can't think of one.)
Side note: using expr might be faster than using Levels or SmoothLevels.
factor = 3.4
clipMask = core.std.Expr(clipMask, expr=f"x {factor} *")
Or did I misunderstand what you are doing?
I don't see how that is an alternative to binarize (which drops everything under a threshold).
I thought about adding a generic 'Expr' field to be applied to masks, but that seemed like it wouldn't really be used by anyone.

Cu Selur
Ps: What you do is basically stacking masks to create new masks. I thought about it, but I haven't come up with a generic way to add stacked masking, in a way which is still usable in a gui. At the end the only generic way would be to basically write something like Custom script/filter additions? but for masks. (which would be tons of work that basically nobody would use)
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.