number of neighbors
Posted: 2014-02-03T23:16:30-07:00
Hi,
this is a theoretical question wich affects my practical problem.
I have to enlarge a given image to a huge size and then cut it
into slices. It is simular to creating photo-wallpapers.
The slices will be 200 inches long (from Top to bottom)
and 20 inches wide, but up to 100 of them.
You can imagine the large size of the toal amount of pixels.
until now I do this in two steps :
1) resize to the huge size
2) cut slices
with the mpc-format which is by far the fastest with this amount of pixels
I need lots of memory (which is ok, I have 132GB of Ram) but also lots of time.
only the resize sometimes takes up to 5 minutes, and this is on a 32core Xeon.
So I wonder if I could to it the other way round.
1) cut slices on the original image
2) enlarge the slices
But here comes my problem and question:
Whith the standard resize method I do some kind of bicubicle interpolation (please correct me if this is wrong!)
When I slice first, the border pixels will be interpolated different to the result I would get with "neighbors".
After this kind of operation you can see the cutting line when you put the slices together again.
What I need to know is, how many neighbors do I need (and cut away after resize) to have the same
result as I would get with the whole image.
I assume it still will be much faster to 1) slice with overlap 2) cut borders 3) resize
to have the same result as I get now with my time and memory consuming method.
Please feel free to make any further suggestions.
Thanks or your help!
Roland
this is a theoretical question wich affects my practical problem.
I have to enlarge a given image to a huge size and then cut it
into slices. It is simular to creating photo-wallpapers.
The slices will be 200 inches long (from Top to bottom)
and 20 inches wide, but up to 100 of them.
You can imagine the large size of the toal amount of pixels.
until now I do this in two steps :
1) resize to the huge size
2) cut slices
with the mpc-format which is by far the fastest with this amount of pixels
I need lots of memory (which is ok, I have 132GB of Ram) but also lots of time.
only the resize sometimes takes up to 5 minutes, and this is on a 32core Xeon.
So I wonder if I could to it the other way round.
1) cut slices on the original image
2) enlarge the slices
But here comes my problem and question:
Whith the standard resize method I do some kind of bicubicle interpolation (please correct me if this is wrong!)
When I slice first, the border pixels will be interpolated different to the result I would get with "neighbors".
After this kind of operation you can see the cutting line when you put the slices together again.
What I need to know is, how many neighbors do I need (and cut away after resize) to have the same
result as I would get with the whole image.
I assume it still will be much faster to 1) slice with overlap 2) cut borders 3) resize
to have the same result as I get now with my time and memory consuming method.
Please feel free to make any further suggestions.
Thanks or your help!
Roland