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
#3
It seems to me that with the help of levels and gamma, you can not only cut off the effect as binarization does, but redistribute the effect.
For example, we have a line that fades out smoothly, if you use binarization, then the filter effect will simply be cut off in the middle of the line.
When using levels and gamma, you could set the necessary restrictions, but make them more planar.

Examples:

Normal Sobel Mask
[Image: _3b6133523bccd260e6911d4b11a4e3a1.jpeg]

clipMask = havsfunc.SmoothLevels(input=clipMask, input_low=0, input_high=300, output_low=0, output_high=1020, gamma=1.0, Ecurve=0)
[Image: _76ced3c55b05057b4bc6ba0efdd74ab4.jpeg]

clipMask = havsfunc.SmoothLevels(input=clipMask, input_low=0, input_high=300, output_low=0, output_high=1020, gamma=0.3, Ecurve=0)

[Image: _329954ff3ce86e8d44142cacdaa55137.jpeg]

clipMask = havsfunc.SmoothLevels(input=clipMask, input_low=0, input_high=300, output_low=0, output_high=1020, gamma=1.5, Ecurve=0)
[Image: _8e13ebecdb1be9624a1c56006d590406.jpeg]

clipMask = havsfunc.SmoothLevels(input=clipMask, input_low=0, input_high=1020, output_low=0, output_high=1020, gamma=2.0, Ecurve=0)
[Image: _a1fabf61e59f24824fcaf10c70cac25e.jpeg]
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)