Log in

View Full Version : Edge directed interpolaters & color spaces


vkamicht
9th August 2008, 05:04
So I'm using avisynth + EEDI2/nnEDI and such to upscale an IMAGE, not a video. I looked forever to find an image editor that could do this or a way to do it in photoshop, and nothing seems to exist so basically I'm just loading+scaling the image in avisynth. Problem is all these filters require you to convert the color space first... which really hurts the quality of the image. Any idea if there's a filter that does edge-directed interpolation on RGB24 (or whatever the default color space is for importing a png-24 image) or any clue where I can find a program to do this if no filter exists? :\

Thanks

IanB
9th August 2008, 06:40
Cheat and split the R, G & B channels out to luma of a YV12 clip, process and reassemble.ImageSource(...)

R=ShowRed("YV12")
G=ShowGreen("YV12")
B=ShowBlue("YV12")

Interleave(R, G, B)

nnedi(...) # double height
turnleft()
nnedi(...) # double width
turnright()
Spline36Resize(...) # fine tune size

R=SelectEvery(3, 0)
G=SelectEvery(3, 1)
B=SelectEvery(3, 2)

MergeRGB(R, G, B, "RGB24")

Comatose
10th August 2008, 05:32
Nice, never thought about doing it this way.