Log in

View Full Version : reconstruct 420/422 back to 444 with NLMeans


feisty2
15th September 2015, 16:37
no more bullshits, getting to the point now

test image (RGB)
http://i.imgur.com/MBo0f64.png


ImageSource("test.png")
converttoyv12 (chromaoutplacement="mpeg2")
converttoyv24 (chromainplacement="mpeg2")

http://i.imgur.com/dAJ2IHy.png
subsampled to 420 and then back to 444, looks like a piece of shit now


ImageSource("test.png")
converttoyv12 (chromaoutplacement="mpeg2")
converttoyv24 (chromainplacement="mpeg2")

y=converttoy8 ()
u=utoy8 ()
v=vtoy8 ()
unew=u.knlmeanscl (a=24,s=0,h=4,rclip=y)
vnew=v.knlmeanscl (a=24,s=0,h=4,rclip=y)
ytouv (unew,vnew,y)

http://i.imgur.com/pcYRAjb.png
magic just happened, well, not that good like the original copy, but still sky rocket better than the result above


just a rough idea kinda thing, ain't tested it much and... just in case u guys would like to try something different and funny and, whatever
;)