PDA

View Full Version : "glow" effect?


QQ
27th September 2004, 23:37
greetings,

is there any avisynth plugin, which could do something similar to this:

before:
http://dreamy.ws/images/before.jpg

after:
http://dreamy.ws/images/after.jpg

e.g. detect edges, and make them glow?

i'd be so thankful to find such one..

thanks!

Mug Funky
28th September 2004, 06:36
get the latest masktools, and...

YV12lutxy(last,last.bilinearresize(last.width/4,last.height/4)
\ .bicubicresize(last.width,last.height,1,0)
\ ,yexpr="x y - abs x +", uexpr="x y - abs x +", vexpr="x y - abs x +",Y=3,U=3,V=3)


this will do exactly what you want. it's not all that tweakable unless you understand the whacked-out forward/backward expression style in manao's yv12lutxy. the expressions are written this way to avoid the use of parentheses, so there is a purpose to it.

QQ
30th September 2004, 01:07
hmm... it seems to work.. somewhat. the effect is very weak, almost unnoticable :( any way to adjust the strength or brightness or width of "edges"..?

Mug Funky
30th September 2004, 09:04
try:


YV12lutxy(last,last.bilinearresize(last.width/4,last.height/4)
\ .bicubicresize(last.width,last.height,1,0)
\ ,yexpr="x y - abs 2 * x +", uexpr="x y - abs 2 * x +", vexpr="x y - abs 2 * x +",Y=3,U=3,V=3)


if you want a higher amount, simply increase or decrease the "2" inside those expressions. it can be a float value as well.

as for changing the radius, that's a little more tricky (avisynth doesn't like non-mod-4 sizes), but you can increase the divisor on the resizing statements. right now the "radius" is 4. careful what you change this to, because avisynth will spit out more than half the possible values you can put in there.

QQ
30th September 2004, 18:52
you were right.. it does produce something similar, but i dont think i like how it looks :/ i guess it isn't really possible to detect edges so precisely as you could do with static image..

HighInBC
15th October 2004, 20:15
Originally posted by Mug Funky
try:


YV12lutxy(last,last.bilinearresize(last.width/4,last.height/4)
\ .bicubicresize(last.width,last.height,1,0)
\ ,yexpr="x y - abs 2 * x +", uexpr="x y - abs 2 * x +", vexpr="x y - abs 2 * x +",Y=3,U=3,V=3)


if you want a higher amount, simply increase or decrease the "2" inside those expressions. it can be a float value as well.

as for changing the radius, that's a little more tricky (avisynth doesn't like non-mod-4 sizes), but you can increase the divisor on the resizing statements. right now the "radius" is 4. careful what you change this to, because avisynth will spit out more than half the possible values you can put in there.

Thanks this is a very handy little command... YV12LUTxy does ALOT once you learn reverse polish notation... by the way here is a page describing how to read and write such formulas: http://www-stone.ch.cam.ac.uk/documentation/rrf/rpn.html

Manao
15th October 2004, 21:34
Thanks for the link, I'll try to include it in the next release.