This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Mask levels modificator
#2
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.
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. Smile


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.
Reply


Messages In This Thread
Mask levels modificator - by dsiomnainc - 05.02.2025, 19:01
RE: Mask levels modificator - by Selur - 05.02.2025, 20:04
RE: Mask levels modificator - by dsiomnainc - 05.02.2025, 21:17
RE: Mask levels modificator - by Selur - 05.02.2025, 21:47
RE: Mask levels modificator - by dsiomnainc - 05.02.2025, 21:52
RE: Mask levels modificator - by Selur - 06.02.2025, 06:02
RE: Mask levels modificator - by Selur - 06.02.2025, 19:42
RE: Mask levels modificator - by dsiomnainc - 06.02.2025, 20:58
RE: Mask levels modificator - by Selur - 06.02.2025, 22:09
RE: Mask levels modificator - by dsiomnainc - 06.02.2025, 22:39
RE: Mask levels modificator - by Selur - 07.02.2025, 13:09
RE: Mask levels modificator - by dsiomnainc - 07.02.2025, 13:35
RE: Mask levels modificator - by Selur - 07.02.2025, 13:48

Forum Jump:


Users browsing this thread: 2 Guest(s)