Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how opencv to resize image with scale4*4 by INTER_CUBIC

When I got a 100x100 image, I wanted to scale it to 400x400 by bicubic. Is opencv use biucbic to upsample twice(i.e. first time:100x100->200x200, second time:200x200->400x400) or opencv use other formula to upsample it?

how opencv to resize image with scale4*4 by INTER_CUBIC

When I got a 100x100 100100 image, I wanted to scale it to 400x400 400400 by bicubic. Is opencv use biucbic to upsample twice(i.e. first time:100x100->200x200, time:100100->200200, second time:200x200->400x400) time:200*200->400400) or opencv use other formula to upsample it?

how opencv to resize image with scale4*4 by INTER_CUBIC

When I got a 100100 image, I wanted to scale it to 400400 by bicubic. Is opencv use biucbic to upsample twice(i.e. first time:100100->200200, second time:200*200->400400) or opencv use other formula to upsample it?

As the flowing :

resize(srcImg,upsample,Size(),4,4,INTER_CUBIC);

is it doing the flowing steps?

first step : resize(srcImg,upsample_first,Size(),2,2,INTER_CUBIC);

second step : resize(upsample_first,upsample_second,Size(),2,2,INTER_CUBIC);

how opencv to resize image with scale4*4 by INTER_CUBIC

When I got a 100100 * 100 image, I wanted to scale it to 400400 * 400 by bicubic. Is opencv use biucbic to upsample twice(i.e. first time:100100->200time:100 * 100->200 * 200, second time:200*200->400400) time:200 * 200->400 * 400) or opencv use other formula to upsample it?

As the flowing :

resize(srcImg,upsample,Size(),4,4,INTER_CUBIC);

is it doing the flowing steps?

first step : resize(srcImg,upsample_first,Size(),2,2,INTER_CUBIC);

second step : resize(upsample_first,upsample_second,Size(),2,2,INTER_CUBIC);