logo Sign In

Post #780568

Author
DrDre
Parent topic
Star Wars GOUT in HD using super resolution algorithm (* unfinished project *)
Link to post in topic
https://originaltrilogy.com/post/id/780568/action/topic#780568
Date created
12-Jul-2015, 7:55 AM

Here's the script for SRV10 raw. 

orig=AviSource("Star Wars.avi")

orig=ConvertToRGB24(orig)

edi0=nnedi2_rpow2(orig,rfactor=2, cshift="spline64resize") # edge directed interpolation

edi=edi0

sr1=SR(orig,1424,548) # super resolution in RGB space

sr1=ConvertToYUY2(sr1)

yuy2=ConvertToYUY2(orig)

sr2=SR(yuy2,1424,548) # super resolution in YUY2 space

rev=Reverse(orig)

sr1r=SR(rev,1424,548) # super resolution in reverse direction in RGB space

sr1r=Reverse(sr1r)

sr1r=ConvertToYUY2(sr1r)

yuy2rev=ConvertToYUY2(rev)

sr2r=SR(yuy2rev,1424,548) # super resolution in reverse direction in YUY2 space

sr2r=Reverse(sr2r)

s64=Spline64Resize(orig,1424,548) 

s64=ConvertToYUY2(s64)

edi=ConvertToYUY2(edi0)

Average(sr1,0.5,sr2,0.5,sr1r,0.5,sr2r,0.5,s64,-2,edi,1) # combine SR in both directions for additional detail, and combine details from SR with nnedi2 to reduce aliasing 

ConvertToRGB24()

sr=last

edicd=ConvertToYUY2(edi0)

edicd=ConvertToRGB24(edicd)

Average(sr,1,edi0,1,edicd,-1) # correct colors

nnedi2_rpow2(rfactor=2, cshift="spline64resize") 

Spline64Resize(1920,816)