ImageTiler — Preparing images for stereo plotting
What ImageTiler is for
Oxalis displays aerial image pairs stereoscopically by loading only the portion of the image visible on screen, at the resolution level suited to the current zoom. For this partial loading to be possible and smooth, each image must be stored in a particular form:
- tiled: the image is cut into fixed-size squares (256 × 256 pixels by default) that can be read independently of one another; Oxalis reads only the tiles covering the displayed area;
- pyramidal: in addition to the full-resolution image, the file contains a series of copies, each reduced by half (1/2, 1/4, 1/8…); when the view is zoomed out, Oxalis reads the appropriate reduced level instead of going through millions of useless pixels.
A conventional image (JPEG, PNG, “stripped” TIFF) has neither of these properties: displaying it requires loading it entirely into memory, which becomes impractical with images of several hundred megapixels. ImageTiler converts these images into tiled, pyramidal, losslessly compressed TIFF, a format that the RhinoTerrain plugins read optimally.
Where to find the tool
In this document, ImageTiler refers to the executable RTSA-ImageTiler.exe, installed in the \Bin subfolder of rhinoCapture (by default C:\Program Files\RhinoCapture_8\Bin). It is a command-line program with no graphical interface, run from a command prompt (cmd) or PowerShell, either from within this folder or by giving its full path.
cd "C:\Program Files\RhinoCapture_8\Bin"
.\RTSA-ImageTiler.exe -h
Supported formats
As input, any TIFF, JPEG, PNG, BMP, JPEG 2000 (.jp2), OpenEXR, HDR, TGA or WebP format. The image must be grayscale, RGB or RGBA, in 8-bit, 16-bit or floating point. Images with 2 channels (gray + alpha) or more than 4 channels are rejected. Grayscale images are converted to RGB.
As output, a tiled and pyramidal TIFF (.tif) file, losslessly compressed (Deflate) by default. The bit depth is preserved. The main metadata of the original image are carried over to the output file: camera make and model, date, orientation, resolution, description; the shooting conditions (date and time, exposure, aperture, sensitivity, focal length, GPS position and altitude) are summarized as text in the file's *Description* field.
Syntax
RTSA-ImageTiler.exe [OPTIONS] FICHIER...
Files can be passed individually, by folder or by pattern (option -i). Options accept the prefix - (short form), -- (long form) or / (Windows style), and are case-insensitive.
Options
Option | Purpose |
-h, --help, -? | Displays help and exits. |
-v, --verbose | Displays the details of each conversion (dimensions, sizes, number of levels, duration) instead of the progress bars. |
-q, --quiet | Displays nothing, not even errors. The return code is still set. |
-i, --in *path* | Adds as input all the files in a folder, or all the files matching a pattern (* in the file name, never in the path). Can be repeated and combined with individual files. |
-o, --out *path* | Output file or folder. With several inputs, it must be a folder. The folder is created if it does not exist. |
-r, --replace | Allows an existing output file to be overwritten. Without -o, on a .tif input, replaces the input file with its tiled version. |
-f, --force | Processes an input that is already tiled and pyramidal (by default, it is skipped). |
-c, --compression *mode* | TIFF compression: zip (default, lossless), lzw (lossless), none (none), rle. See the *Compression* section. |
--metadata *mode* | Metadata carried over from the source: tags (default, described above), none (none), exif and all (reserved, see *Limitations*). |
-t, --tile *N* | Tile size in pixels, power of 2 (64, 128, 256, 512…). Default: 256. |
--no-tile | Produces a non-tiled image (pyramidal only). |
--keep-tiling | Reuses the tiling of the input image. |
--no-mipmap | Does not generate the pyramid (tiled image only). |
--alpha | Forces an alpha channel to be written (RGBA). |
--diff *A B* | Compares two images and displays the difference (PSNR, mean squared error, maximum error, number of differing pixels), then exits. Useful to check that an output file is identical to its source. |
-- | Everything that follows is treated as a file name, even if it starts with -. |
Output files and resuming a batch
Situation | Output file |
-o designates a folder | Same name as the input, with the .tif extension, in that folder. photo.jpg → photo.tif |
-o designates a file (single input) | That file. |
No -o, non-TIFF input | photo.tif next to photo.jpg. |
No -o, input already .tif, without -r | Suffix _ImageTiler : photo.tif → photo_ImageTiler.tif. |
No -o, .tif input, with -r | The input is replaced by its tiled version. |
The tool is designed to be safely rerun on a partially processed folder:
- an output file that already exists is skipped (“Skipped” message), except with -r ;
- an input that is already tiled and pyramidal — typically a file produced during a previous run and picked up by -i — is skipped, except with -f ;
- each image is written under a temporary name (.tif.part) then renamed once complete: an interruption (Ctrl+C, power cut) never leaves a truncated file, and the next run resumes exactly where the previous one stopped.
The end-of-batch summary gives the number of images converted, skipped and failed. The program's return code is 0 if no image failed, 1 otherwise, and 2 if the arguments are invalid — usable in a script.
Compression
By default, the TIFF produced is compressed with lossless Deflate (`zip`): the file is smaller than the original, and its content is bit-for-bit identical to it (which can be checked with --diff). On 8-bit aerial images, the observed saving is 30 to 40% compared with the same tiled, uncompressed file; on 16-bit images (12 or 14 significant bits), it is considerably higher. Display in Oxalis is not slowed down — on the contrary, it is smoother, since the disk has fewer bytes to deliver for each tile.
lzw is a lossless alternative, slightly less compact; none produces the format of earlier versions of the tool (1.4 times the raw size) and is only of interest for comparisons.
Examples
Convert a complete folder of images to a working folder, following the progress:
RTSA-ImageTiler.exe -i D:\Chantier\Bruts -o D:\Chantier\Tuiles
Resume the same batch after an interruption (images already done are skipped):
RTSA-ImageTiler.exe -i D:\Chantier\Bruts -o D:\Chantier\Tuiles
Reprocess a single image, overwriting the previous result, with details of the operations:
RTSA-ImageTiler.exe -v -r -o D:\Chantier\Tuiles D:\Chantier\Bruts\IMG_0421.tif
Check that an output file is identical to its source:
RTSA-ImageTiler.exe --diff D:\Chantier\Bruts\IMG_0421.tif D:\Chantier\Tuiles\IMG_0421.tif
Performance and limitations
- Duration: about 10 s per 100-megapixel image on a recent workstation, local disk. The pyramid is computed in parallel; Deflate encoding remains the main cost.
- Memory: about 1.4 times the raw size of the image (400 MB for a 100 Mpx image in 8-bit RGB). Very large images (400 Mpx and more) require 2 GB of free memory.
- Metadata: the --metadata exif and all modes (full EXIF/GPS subdirectory, ICC profile, XMP) are not reliable with the current version of the libraries and must not be used. The tags mode keeps the essentials, including the shooting conditions and the GPS position in text form. *World* files (.tfw) are not copied.
The following chapters present its approach and results. It also has another aim: to show that with ImageTiler --diff and a few commands, anyone can carry out this check on their own images — and to invite you to do so, before preparing a survey or simply to see for yourself 😉
Study: what the image storage format changes
Measurements
RhinoTerrain development workstation, local disk, September 2026.
Phase One iXU-RS1000 images, 11,608 × 8,708 px, 8-bit RGB (101 megapixels, 289.2 MB raw), delivered as uncompressed TIFF.
The times are those displayed by ImageTiler -v and include reading, pyramid computation and writing.
The “uncompressed” column shows the cost of the pyramid alone: the sum 1 + 1/4 + 1/16 + … converges to 4/3, plus the padding of the edge tiles, i.e. 1.41 times the raw image on these images.
Image | Delivered file (MB) | Tiled, pyramidal, uncompressed file (MB) | ImageTiler file (MB) | Ratio / raw | Time (s) | Identical to source |
1664546760829.tif | 289,3 | 409,0 | 260,3 | 0,90 | 8,6 | yes — 0 differing pixels |
1664547860624.tif | 289,3 | 407,6 | 277,0 | 0,96 | 10,8 | yes — 0 differing pixels |
In other words: the stereo-ready file, pyramid included, is smaller than the delivered image(−4 to −10%), and 32 to 36% smaller than the same tiled file without compression. Preparation takes about ten seconds per image, with memory usage of about 1.4 times the raw size.
The compression ratio depends on the content: homogeneous areas (water, uniform roofs, shadows) compress better than vegetation; 16-bit images, whose high-order bits are usually empty, compress considerably more.
The stereo pair 1664547859129 / 1664547860624 prepared in this way was loaded into Oxalis: loading, zooming out and continuous panning with no perceptible latency. Compression has no display cost — Deflate decoding of a 256 × 256 tile is negligible compared with reading it from disk, and the disk has precisely fewer bytes to deliver.
A legitimate question: stereo plotting accuracy
Any transformation of the images of a photogrammetric survey raises the same question: what happens to the measurement? It deserves a precise answer.
For the format described here, the answer fits in one line: nothing changes, because nothing is lost. The full-resolution image is identical to the source, pixel for pixel — this can be checked on every file with ImageTiler --diff, which counts the differing pixels (the expected result is zero). The reduced levels are used only for zoomed-out display; pointing is always done on the full-resolution level.
A comparison may shed light on the question, provided the uses are not confused. The ECW and JPEG 2000 formats, very widespread in aerial imagery, are also tiled and multi-resolution; they are moreover compressed *lossily*, at common ratios of 1:10 to 1:20, and nobody holds it against them. But their use is that of orthophotos as base maps, not that of stereo pairs intended for stereo plotting: the context is not the same, and neither is the tolerance for loss. The ImageTiler format takes the best of both — tiling and pyramid — without the lossy compression.
Reproducing the study on your images
Everything above can be measured with a few commands on a representative image:
ImageTiler -v -o D:\Chantier\Tuiles D:\Chantier\Bruts\IMG_0421.tif
ImageTiler --diff D:\Chantier\Bruts\IMG_0421.tif D:\Chantier\Tuiles\IMG_0421.tif
The first command displays the size of the output file, its ratio to the raw image and the preparation time; the second confirms that the pixels are identical. Then load the stereo pair into Oxalis and compare the responsiveness with that of the original files — this is the most telling observation, and it requires no measurement.
For a complete survey, ImageTiler -i source_folder -o target_folder processes all the images; processing can be interrupted and restarted at will, and images already prepared are skipped (see the options above).
In summary
- Images prepared with ImageTiler display with no latency in Oxalis, whatever their pixel count.
- They take up less space than the delivered files, pyramid included.
- They are identical to the delivered files, pixel for pixel, and retain the shooting metadata.
- Preparation is done once and for all, in about ten seconds per image, and can be verified on every image.