a function to create a mask. >> Hobbies & Interests >> Forum
Forum
  Search   Users   Registration   Entrance
Today: 13.07.2025 - 15:46:24
Pages:  1  

a function to create a mask.

Advertising

CROWD links from forums - 0,9 USD


MessageAuthor

Hi, I want to use a function that is likely to create a mask. I can do this manually, like this : src=AVISource("...") ALL=crop(0,0,0,0) mask=src.mt_lutspa(relative = false, expr = "y 108.2 < y 480 < y 374.5 > &

---------------------
The Beastmaster

25,325

main-users




Statistics:
Messages: 03.11.2001
Registration:
13.01.24 - 18:33:45
Message # 1
RE: a function to create a mask.

If you just want to process only a rectangle area, check .

---------------------

E90Toad

main-users




Statistics:
Messages: 404
Registration: 03.09.2003
13.01.24 - 18:40:40
Message # 2
RE: a function to create a mask.

Thanks. Could you give an example of use then ? Moreover, would you know another filter to process a circular area or a any other interesting shape ?

---------------------
1986 325eS. Auto Technic J-Stock Suspension Kit, Bilstein Shocks and Struts, ST Sway Bars, Front Camber Plates, Offset Euro Upper Strut Mounts, Chassis Reinforced, Aluminum Rear Shock Mounts, Offset control Arm bushings, Custom Control Arms, Custom S

e30evo

main-users




Statistics:
Messages: 607
Registration: 09.10.2003
13.01.24 - 18:51:17
Message # 3
RE: a function to create a mask.

Probably be faster and easier to create the "interesting shape" mask in your image program (gimp, photoshop etc...)

---------------------

Hoad

main-users




Statistics:
Messages: 277
Registration: 05.26.2003
13.01.24 - 18:55:08
Message # 4
RE: a function to create a mask.

I'm not totally understanding you. How could I mix into my avisynth script below a given shape created with an image program ? Again it would be nice to have an example.

---------------------

Zinka325i

main-users




Statistics:
Messages: 204
Registration: 02.26.2001
13.01.24 - 18:59:46
Message # 5
RE: a function to create a mask.

For quadratura: Code:

---------------------
96 328is: eurospeed M50 intake manifold with AA M50 Manifold software rogue eng. pullies ecis cai M3 exhaust M3 rear spoiler 5 spoke ROH's 235/40/17front 245/40/17rear UUC clutch stop motorsport X Brace 94 325- 5 speed borla exhaust 96+ side skirts z

328 is man

main-users




Statistics:
Messages: 988
Registration: 12.19.2002
13.01.24 - 19:11:05
Message # 6
RE: a function to create a mask.

Yes cretindesalpes (in passing, funny nickaname) ; quadratura : then the blur will only be applied on the 50 50 100 100 section, won't it ? for the mask : well in fact it is not what I would like to do. Imagine I have a video with different frames in the same picture and which are not static, like that for example . Below I used this : mask=src.mt_lutspa(relative = false, expr = "y 108.2 < y 480 < y 374.5 > &

---------------------
Grantbo

169

main-users




Statistics:
Messages: 11.09.2002
Registration:
13.01.24 - 19:18:52
Message # 7
RE: a function to create a mask.

I'm sorry to come back to this thread again but cretindesalpes suggested a code above to use a personnal shape as a mask (mask.png) but how am I supposed to create such a shape ? Let's say I want to make a heart for example ; can you create such a shape via Photoshop or any similar program ? Imagine I would like to process a 1000x1000 frame and that I use the heart, its dimensions being 300x300 for example, and I want to process ALL the part covered by the heart but anything out of it. I will use this code then : flt = Blur (1) mask = ImageSource ("mask.png", end=FrameCount()-1).ConvertToYV12 () mt_merge (src, flt, mask, luma=true) Then everyhting INSIDE the shape will be blurred. But the question is the one I mentionned before : how to create a "mask" ? I know I could draw something on Gimp or something like that but I don't know if that would be a mask. Well I know it's confusing...

---------------------
Levin 93 325is 84 533i

BMDuB

main-users




Statistics:
Messages: 381
Registration: 09.01.2002
13.01.24 - 19:28:18
Message # 8
RE: a function to create a mask.

Yes, draw the shape in Gimp or a similar program. All white for the processed parts, and all black for the masked parts.

---------------------

El Magnificante

main-users




Statistics:
Messages: 161
Registration: 08.21.2003
13.01.24 - 19:39:03
Message # 9
RE: a function to create a mask.

Ok, in fact it is simple, thank you. Then do you think there is a possibility to create a mask in order to process only luma or chroma while denoising with a denoiser ? This is in echo to my "Luma Chroma Denoise" post. I know such a question is somewhat hazy but, as far as I know, such a mask would consist in only selecting some kind of frequencies.

---------------------
"It doesn't need park distance control, and hates decadence. That's just the way it is..." - The M Coupe

Esteves

main-users




Statistics:
Messages: 871
Registration: 02.26.2001
13.01.24 - 19:42:31
Message # 10
RE: a function to create a mask.
Access Virus TI SNow : Previous topic
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants