-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change image comparison to PSNR #1051
base: master
Are you sure you want to change the base?
Conversation
Fix hdri logic when reloading files
Fix segfault on reload with progress bar
* Fix VTK modules link in plugins * Provide a few default module
Add a cell scalars coloring test
Update version to 2.2.1
merge release into master
Update Changelog and install doc
You are modifying libf3d public API! |
Codecov Report
@@ Coverage Diff @@
## master #1051 +/- ##
==========================================
- Coverage 96.22% 96.19% -0.03%
==========================================
Files 120 120
Lines 7015 7069 +54
==========================================
+ Hits 6750 6800 +50
- Misses 265 269 +4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Im a bit confused as to why you could remove hight thresold for vtk comparison ? is PSNR less sensible than what VTK is doing ? Looking at the code, PSNR seems a much simpler algorithm, maybe it is better but how does it change our testing, what makes this an improvement ? |
If Im not mistaken VTK is implementing a form of SSIM. Why do you thing PNSR is a better metric ? |
Honestly, VTK's algorithm is a bit confusing, I have no idea what it is currently doing, but it does not look like SSIM since it is supposed to return a value between 0 and 1. From this paper: https://projet.liris.cnrs.fr/imagine/pub/proceedings/ICPR-2010/data/4109c366.pdf
That explains why I had to lower the threshold for raytracing tests since I think raytracing introduced noise similar to gaussian noise. In the end, I think it would be great to have different metrics, and choose it in the tests (use SSIM for raytracing maybe?) but I dislike VTK's metric. |
Agreed
It may be related in the sense that it looks for similar pixel in a square of pixels, but it is definitely not a specific SSIM algorithm we can pin point.Keep in mind it was written probably before these concepts were fully created.
It was when I broke it, but I fixed it since then.
Me too, and I also agree that having a standard metric would be much beneficial. I also read that PSNR is specialized to evalauted the quality of lossy compression, which is not at all what we are working with. At the end of the day, what matters to me is that our CI do not become less sensitive AND do not produce more false positive. |
BTW Yohann is working on implementing proper SSIM in VTK https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10508 I tagged you on it but I should have discussed directly before you started on this I suppose |
I agree, let me write a script to generate a table of generated+ref+diff+psnr for each test in order to evaluate PSNR properly. |
@Meakk with SSIM being added to VTK, I'm not sure we want to move forward on this one. |
Ok, let me know when everything is in place in VTK and we can discuss about the next steps. |
a8aac1c
to
3f8eb1d
Compare
@Meakk close this one now ? |
No description provided.