TheProfileth
23rd September 2010, 03:09
LimitEdge Smooth Degrain
LSD for short
Original idea came from HQdering and how it used an edgemask to limit the smoothing,
I was looking through Tritical's filters and I saw Tcanny and I knew it would have some practical usage, and so I created this.
Its a multilayered edgemask limited Degrainer/Smoother/Denoiser, that helps to improve compression without damaging details
Its extremely accurate because of the limiting and how sensitive it is, it is even chroma sensitive so it will not oversmooth lightly shaded areas that lack hard edges.
Its uses canny edge detection so anything that messes with edges or lines or even noise (I said it was sensitive) should probably be done after using this filter.
It is very specific in the way it works, it creates a multilevel mask that uses chroma as a meter of how much to smooth, higher chroma means less smoothing.
example here
http://farm5.static.flickr.com/4146/5017047660_16c6f130f7_o.png
http://farm5.static.flickr.com/4109/5015897963_4792185b33_o.png
Darker areas get less smoothing and black areas get none
LSDlite is a moderately stronger version of LSDverylite or LSDvlite for short, LSDvlite will basically cause absolutely zero damage to your source.
LSDlite might cause extremely minor blurring of some soft details but at a relatively nice increase in compression and at zero speed cost.
And of course everyone knows that if you want to test degraining or smoothing you should test it on the oh so lovely Sailor Moon dvds
Comparisons
LSDvlite (http://comparescreenshots.slicx.com/comparison/81780)
LSDlite (http://comparescreenshots.slicx.com/comparison/81779)
LSDvlite VS LSDlite (http://comparescreenshots.slicx.com/comparison/81783)
It also preforms well on bluray noise
BD Comparisons
LSDvlite on Martian Successor Nadesico Bluray (http://comparescreenshots.slicx.com/comparison/82053)
You can call LSDvlite twice for extremely good results (but it is relatively slow, but totally worth it)
Before
http://farm5.static.flickr.com/4104/5018427711_11a286008f_o.png
After LSDvlite.LSDvlite
http://farm5.static.flickr.com/4113/5019034638_612a003783_o.png
It works even better if you remove some of the fluctuating noise with a temporal filter such as fluxsmooth BEFORE you use it
FluxsmoothT(temporal_threshold=4)
LSDvlite.LSDvlite
http://farm5.static.flickr.com/4088/5019043666_e6b9b1b16d_o.png
NOW that is what I call a result, removing the fluctuating noise helps the mask to be more accurate
Download (http://www.mediafire.com/download.php?iggnj2q5imss9x5)
Needed filters (incase you do not have them, I would get them just so you do not end up complaining it does not work) (http://www.mediafire.com/download.php?ue0l85quzolhgqb)
Usage Notes
Usage Notes
## the filter itself really has no hard "parameters" because one of the things I kept from the conversion from HQdering is that the script has no set method of smoothing
## I have found that Tbilateral fits extremely well into what I wanted this to do, and I have configured it to work well with this filter,
## lite and vlite are just different tbilateral settings with the same internals, currently I do not know how to store presets or else I would have them all as 1 filter
## The only thing this shares in common with HQdering is the input system and the maskmerging
## You can actually use any filter you want (within reason, also if you tell a filter to give you a mask as the output as far as I know it will not work)
## If you desire to change what smoother is used then just put Smoother="filtername" and then fill in the parameters
## with params="what ever they should be"
## only issue is if there are quotes already in there then you need to use Chr(34) like this params=Chr(34)+"w2d"+Chr(34)+", 2, 15, 15, 20"
BTW I would really like to be able to make and store preset modes instead of having to have separate scripts for the modes, if someone could show me how to do this easily then I would be very grateful and add in another mode.
Please excuse any errors I have , I will fix them post haste
Please leave feedback and if you have suggestions leave those too
Changelog
LSDvlite 0.6 LSD v0.7 : initial release
LSDvlite 0.61 LSD v0.71 : changed maskedmerge to mt_merge
LSDvlite 0.6 LSD v0.7 : fixed issue with mask
LSD for short
Original idea came from HQdering and how it used an edgemask to limit the smoothing,
I was looking through Tritical's filters and I saw Tcanny and I knew it would have some practical usage, and so I created this.
Its a multilayered edgemask limited Degrainer/Smoother/Denoiser, that helps to improve compression without damaging details
Its extremely accurate because of the limiting and how sensitive it is, it is even chroma sensitive so it will not oversmooth lightly shaded areas that lack hard edges.
Its uses canny edge detection so anything that messes with edges or lines or even noise (I said it was sensitive) should probably be done after using this filter.
It is very specific in the way it works, it creates a multilevel mask that uses chroma as a meter of how much to smooth, higher chroma means less smoothing.
example here
http://farm5.static.flickr.com/4146/5017047660_16c6f130f7_o.png
http://farm5.static.flickr.com/4109/5015897963_4792185b33_o.png
Darker areas get less smoothing and black areas get none
LSDlite is a moderately stronger version of LSDverylite or LSDvlite for short, LSDvlite will basically cause absolutely zero damage to your source.
LSDlite might cause extremely minor blurring of some soft details but at a relatively nice increase in compression and at zero speed cost.
And of course everyone knows that if you want to test degraining or smoothing you should test it on the oh so lovely Sailor Moon dvds
Comparisons
LSDvlite (http://comparescreenshots.slicx.com/comparison/81780)
LSDlite (http://comparescreenshots.slicx.com/comparison/81779)
LSDvlite VS LSDlite (http://comparescreenshots.slicx.com/comparison/81783)
It also preforms well on bluray noise
BD Comparisons
LSDvlite on Martian Successor Nadesico Bluray (http://comparescreenshots.slicx.com/comparison/82053)
You can call LSDvlite twice for extremely good results (but it is relatively slow, but totally worth it)
Before
http://farm5.static.flickr.com/4104/5018427711_11a286008f_o.png
After LSDvlite.LSDvlite
http://farm5.static.flickr.com/4113/5019034638_612a003783_o.png
It works even better if you remove some of the fluctuating noise with a temporal filter such as fluxsmooth BEFORE you use it
FluxsmoothT(temporal_threshold=4)
LSDvlite.LSDvlite
http://farm5.static.flickr.com/4088/5019043666_e6b9b1b16d_o.png
NOW that is what I call a result, removing the fluctuating noise helps the mask to be more accurate
Download (http://www.mediafire.com/download.php?iggnj2q5imss9x5)
Needed filters (incase you do not have them, I would get them just so you do not end up complaining it does not work) (http://www.mediafire.com/download.php?ue0l85quzolhgqb)
Usage Notes
Usage Notes
## the filter itself really has no hard "parameters" because one of the things I kept from the conversion from HQdering is that the script has no set method of smoothing
## I have found that Tbilateral fits extremely well into what I wanted this to do, and I have configured it to work well with this filter,
## lite and vlite are just different tbilateral settings with the same internals, currently I do not know how to store presets or else I would have them all as 1 filter
## The only thing this shares in common with HQdering is the input system and the maskmerging
## You can actually use any filter you want (within reason, also if you tell a filter to give you a mask as the output as far as I know it will not work)
## If you desire to change what smoother is used then just put Smoother="filtername" and then fill in the parameters
## with params="what ever they should be"
## only issue is if there are quotes already in there then you need to use Chr(34) like this params=Chr(34)+"w2d"+Chr(34)+", 2, 15, 15, 20"
BTW I would really like to be able to make and store preset modes instead of having to have separate scripts for the modes, if someone could show me how to do this easily then I would be very grateful and add in another mode.
Please excuse any errors I have , I will fix them post haste
Please leave feedback and if you have suggestions leave those too
Changelog
LSDvlite 0.6 LSD v0.7 : initial release
LSDvlite 0.61 LSD v0.71 : changed maskedmerge to mt_merge
LSDvlite 0.6 LSD v0.7 : fixed issue with mask