PDA

View Full Version : Opposite of Warpsharp? (Lines enlarged?)


dbzgundam
22nd April 2004, 21:01
No, it's not a filter I made, (I'm too stupid for that, haha) but I was curious, I've notice quite a few anime encodes have been warpsharped to death... While the result in motion isn't too bad, it's annoying at some still scenes... Which is why I wanted to know:

Is there a way you can expand edges, instead of "shrink" them via warping? Something like Photoshop's Minimum filter, which I'm not sure how it works, expands edges somewhat. (Of course that filter, even at 1, is too strong.... Just giving an idea)

MfA
22nd April 2004, 21:06
How about just using a blur?

dbzgundam
22nd April 2004, 22:39
Originally posted by MfA
How about just using a blur?

Is there a blur JUST for edges? Because otherwise it ends up blurring the whole image.

I don't think it would work well enough anyway.

rfmmars
22nd April 2004, 23:07
Use the 3d general convolusion in VD.

richard

AS
23rd April 2004, 08:10
Originally posted by dbzgundam
Is there a blur JUST for edges? Because otherwise it ends up blurring the whole image.

I don't think it would work well enough anyway.

Do a blur, then take your edgemask from blurred (thicken) version and overlay it onto the original.

Mug Funky
23rd April 2004, 09:49
a masked inflate might work. i'm not sure how to go about the masking process.

inflate is in masktools, but you prolly already know that :)

mf
23rd April 2004, 10:15
What?! Nobody thought of subtracting the warped version? Tisk tisk! If you subtract the warped version from the original, you get the opposite effect. I tried it for mfToon but the effect messes up on edge corners (just like normal warpsharp).

Didée
23rd April 2004, 11:25
Perhaps like that?
orig=last

edge = Overlay( DEdgeMask(0,255,0,255, "4 10 4 0 0 0 -4 -10 -4", setdivisor=true, divisor=2)
\ ,DEdgeMask(0,255,0,255, "4 0 -4 10 0 -10 4 0 -4", setdivisor=true, divisor=2)
\ ,mode="lighten" )

edge = edge.levels(2,0.5,128,0,255,false)

overlay(orig,orig.mergeluma(orig.inpand), mask=edge.blur(1.0))

I have not one single frame of animee or cartoon on my box for testing.

- Didée

dbzgundam
27th April 2004, 02:28
I'm apparently missing the function "DEdgeMask."

I know I have the latest MaskTools though!

krieger2005
14th June 2004, 10:47
@Didée: The function make borders big and darker.
why not this?
orig=last

edge = Overlay( DEdgeMask(0,255,0,255, "4 10 4 0 0 0 -4 -10 -4", setdivisor=true, divisor=2)
\ ,DEdgeMask(0,255,0,255, "4 0 -4 10 0 -10 4 0 -4", setdivisor=true, divisor=2)
\ ,mode="lighten" )

edge = edge.levels(2,0.5,128,0,255,false)

overlay(orig,orig.mergeluma(orig.inpand.expand), mask=edge.blur(1.0))

But maybe there better ways to du that