L
L
luzhskij2014-10-28 17:39:26
Qt
luzhskij, 2014-10-28 17:39:26

How to organize the construction of image pyramids?

Hello.
There was a need to build image pyramids.
And ... who can advise which side to approach? In theory, opencv can do resizing and interpolation, but my files can be 10 + GB in size.
In my question below, I just found out how much volume can be operated on. And if we talk about opening piece by piece... It's not clear how it can look at all%)
I work under windows.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Koss1024, 2014-10-29
@Koss1024

This is already a very large image. It is worth breaking it into tiles with a side of the power of two
And using them as the base of the pyramid.
Elementary interpolations get four times less secrets, etc.
Everything,
but it seems to me that I misunderstood the question, since it is very obvious :)

M
Mikhail Grigoriev, 2014-11-06
@Longy

Try using the GDAL library - it has tools for working with large images.
For example, to organize the viewing of large images, you can request tiles of the desired scale (LOD) of the image through GDAL and display them (GDAL will scale the image and build tiles on its own). To improve the performance of this process, it is possible to build overviews (smaller scale versions of the image) using GDAL - GDAL places a file with a pyramid next to the file and then uses it itself when it is asked for data at a lower resolution.
In addition, you can save overviews to separate files, then cut them into tiles (also with GDAL), you will get the required pyramid of scales.
GDAL has c++ and c api. Also c# and python, cmd, so what's the heap.
Cons: few examples of use on the Internet, you will have to tinker with the documentation and experiment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question