-
Notifications
You must be signed in to change notification settings - Fork 25
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
how does the speed compare with opencv? #12
Comments
I have not yet done a benchmark to measure the speed of opencv. |
@Cykooz hoping for it! |
It would be nice to add a comparison with libvips. |
I would also love to see comparison with |
With threads turned off, the results look like this: benchmark code: https://github.com/bend-n/imenchmark/blob/main/benches/resizing.rs |
@bend-n Thank you for your work. |
@bend-n I have only one note about your opencv benchmark. OpenCV doesn't have Lanczos3 implementation. It has only Lanczos4. Lanczoz4 is more complicated (requires more calculations) than Lanczos3. |
Oh yeah i forgot to rename the field to |
re: libvips, i cant seem to be able to get it to work properly. |
Why is that? Is opencv bugged? How is it for upscaling? |
Upscaling looks better. I don't know why downscaling is so bad. |
I've understood the reason. OpenCV uses "convolution" with fixed kernel size. In this case, downscaling very big image into very small one looks like a result of nearest "interpolation". fast_image_resize uses convolution with adaptive kernel size. It requires more computations but makes more beter result. It seems that only INTER_AREA in OpenCV uses real convolution with Box filter and minimal kernel size 1x1px. |
@negezor I've done first comparison of
|
Hi @Cykooz, are you still planning to add multithreading support? |
Yes, I am planning it. |
whats the point of multithreading it? if you want it to be faster, write it on the gpu. opencv is way faster when you let it use a gpu |
Our servers don't have GPU. |
you can just scale multiple images at once, no need to scale one image in parallel? |
That was exactly the purpose of writing the crate a few years ago. I use this crate to scale users images in a web service I am developing. |
I released version 5.0.0. I added support for multi-thread image processing with the help of |
Awesome!! Will cykooz-resizer also receive multi-threaded support? |
@PRadeckiDH Yes. I have plan to do it. I just need some time to figure out how to work with |
how does the speed compare with opencv?
The text was updated successfully, but these errors were encountered: