Any faster way to join images? #3247
60215
started this conversation in
Help wanted
Replies: 1 comment 6 replies
-
Hi @60215, Wow you're right |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wrote a program with pillow to make an image out of other images. I wanted to rewrite it on c++ for performance reasons, as well as c++ being better suited for later parts of the program. It joins 6k+ images. However, I noticed that pillow's .paste() on canvas works faster than libvips_arrayjoin(merge and insert are even slower than arrayjoin) and was wondering if there is faster way to do this. Here's my code in c++:
and here's my code in python:
Pillow works faster in this case and I wondered if there is a way to speed libvips up. Perhaps using tiff's might help, I am quite new to the image processing.
For me python works ~0.15 second and c takes 0.8 seconds timing only the pasting/arrayjoining part.
In actual program images may be located differently, randomly.
Am I doing something wrong or is libvips not suited for this task?
Beta Was this translation helpful? Give feedback.
All reactions