Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd May 2020, 16:36   #21  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Code:
ColorBars
converttoyv12
AddGrainC
Interleave(neo_vd.luma_histogram(),convertbits(16).neo_vd().convertbits(8).luma_histogram())
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 3rd May 2020, 19:18   #22  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
Removing float to int rounding solved the problem. But to be honest I'm not quite sure we should remove the rounding.

The following code
Code:
ptr[x] = std::min(std::max(static_cast<int>(pad[x] + 0.5f), 0), ep.peak);
0.5f does not scale with bit depth, so if input is 158.5 in 8bit then it rounds up to 159, but 2536 in 12bit rounds to 2536 and bit-shifting to 158 in 8bit.

If I remove +0.5 then the results are identical, but the truncated result may not be as accurate as rounded.

What do you think?
__________________
Projects
x265 - Yuuki-Asuna-mod Download / GitHub
TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS
Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median
MeteorRain is offline   Reply With Quote
Old 4th May 2020, 02:08   #23  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by MeteorRain View Post
Removing float to int rounding solved the problem. But to be honest I'm not quite sure we should remove the rounding.

The following code
Code:
ptr[x] = std::min(std::max(static_cast<int>(pad[x] + 0.5f), 0), ep.peak);
0.5f does not scale with bit depth, so if input is 158.5 in 8bit then it rounds up to 159, but 2536 in 12bit rounds to 2536 and bit-shifting to 158 in 8bit.

If I remove +0.5 then the results are identical, but the truncated result may not be as accurate as rounded.

What do you think?
identical mean both be like 8bit or like 16bit? the 8bit should be the reference (since it like the old Vague-Denoiser)

and why it add 0.5f?

and since I am not a programmer, let's see what others say like pinterf
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 4th May 2020, 09:38   #24  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,314
For most cases float intermediate value is always rounded before casting (=truncating) to an integer. Adding a 0.5 plus a truncate to integer is like rounding to the nearest integer.
If the missing rounding is probably a bug and incorrect then we shouln't keep any plugin with the old (wrong) behaviour.
pinterf is offline   Reply With Quote
Old 30th May 2021, 16:59   #25  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
real.finder updated new commits to fix Update AVS headers and copy frame properties for AVS+ and VS. If anyone interested
https://github.com/HomeOfAviSynthPlu...9311366112ed64
kedautinh12 is offline   Reply With Quote
Old 13th February 2022, 11:15   #26  |  Link
joearmstrong
Registered User
 
Join Date: Jul 2013
Posts: 38
I don't want to remove all noise from the video source, I just want to clean the video a bit for better compressibility. I refuse temporal denoisers because of the annoying scene change issue - during scene changes some frames are noisier than others due to temporal processing. After many testings I finally found this fantastic spatial denoiser which gave me the best results. With threshold=3.5 I succesfully cleaned a very noisy video - compressibility is much better now. Thank you for this useful denoiser!
joearmstrong is offline   Reply With Quote
Old 14th February 2022, 20:00   #27  |  Link
joearmstrong
Registered User
 
Join Date: Jul 2013
Posts: 38
I'm missing the Wiener option from the original VagueDenoiser for 2-pass denoising. Can this function be implemented again?
joearmstrong is offline   Reply With Quote
Old 24th February 2022, 01:16   #28  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
MeteorRain:
I don't know where to write this, since I can't find a post. But "minideen" doesn't work if I preview the avs with a player. Is it just me?
Ceppo is offline   Reply With Quote
Old 24th February 2022, 01:31   #29  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
You can create issue here
https://github.com/HomeOfAviSynthPlu...iniDeen/issues
kedautinh12 is offline   Reply With Quote
Old 24th February 2022, 08:04   #30  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
Thank you!
Ceppo is offline   Reply With Quote
Old 7th September 2022, 04:54   #31  |  Link
banaguitar
Registered User
 
Join Date: Aug 2022
Posts: 23
Use AVSPmod32 and 32 bit dll, but it crashes
Don't know why
banaguitar is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.