Ask Your Question

estimate size for pyramid level images

asked 2016-02-16 03:47:07 -0500

Hello forum,

It is nothing specific to opencv, rather probably one of the basic topics in pyramid level images. For example a baseline Jpeg image of size 2048 X 1024 is given. The storage of the base line jpeg image is calculated with the formula :

width * height * 0.2.

Now If I have consider the pyramid level images as well, do I have to accumulate the storage size of different resolutions or there is any specific formula for this. Pyramid level images are a quarter of the size of the larger level, down to a minimum size 128 pixels in the smallest dimension. So for an image of size 2000 X 1000, the pyramid level images would be 1000 X 500 and 500 X 250, but no more since the next level would be too small (250 X 125, where 125 is smaller than the minimum allowed size of 128).

Some references/hints are eagerly awaited.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-02-17 21:58:07 -0500

Tetragramm gravatar image

To estimate? Just use the series convergence 1+1/4+1/16+... which comes to 1+1/3.

If you want the precise amount, it's best to just calculate it. There's never too many levels, so it doesn't take long, and you've already written out more or less exactly what you need to do it.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-02-16 03:47:07 -0500

Seen: 95 times

Last updated: Feb 17 '16