Resolution Pyramids
Stitch and view massive full-resolution images on a low-RAM computer
Note: Available in Huygens Professional only
Every microscopist knows that image filesizes keep increasing. To view and stitch them, down-sampling or cropping is often required to meet the limited memory capabilities of the computer. Sadly, such steps lead to a loss of image data and quality.
Huygens’ new Resolution Pyramid file format in Professonal offers a solution! It lets you stitch and view huge datasets—billions of voxels, hundreds of GB—without sacrificing image quality. Even on low-end computers, you can open and explore large images seamlessly.
How it works? Since even high resolution monitors cannot display these images in full detail, it makes sense to instead display a down-sampled version. Upon zooming in, the Resolution Pyramid seamlessly loads a higher resolution version of the region of interest, thus using minimal RAM.
Do not worry about losing data, Huygens Resolution Pyramid keeps all the image metadata together with your original full resolution image and downsampled versions, which can be easily extracted again from the Resolution Pyramid file (see below).
Always view the optimal resolution!
Left: Using Huygens’ new Resolution Pyramid HDF51 file format .pyr.h5, you can save and view extreme large datasets with the precision they deserve. The dark gray triangle icons in the left Twin Slicer images indicate that they are part of a Resolution Pyramid file, and the highlighted layer shows what resolution level is displayed.
Right: Classical approach: If no pyramid file format is used, images may need down-sampling to decrease file size for viewing and further image processing, thus compromising image quality.
Exclusive to Huygens Professional from version 25.10
Contact us for options to upgrade your Huygens Essential to Professional!
Pyramids can be generated from many image formats2
Stitch extremely large datasets at full resolution
View images far exceeding a device's RAM
Save as Huygens’ .pyr.h5 format
Compatible with our Slicers and Stitcher Contact us for questions
Notice: All Pyramid files can be viewed in the Huygens Professional Slicers. At the moment, any image file stitched by the Stitcher in Huygens Professional can be saved as a Pyramid file. Also, any images that can be opened in Huygens Professional can be saved to a Resolution Pyramid format. For larger files, see footnote2. Compatible features will soon be expanded.
Diagrams showcasing three scenarios with an oversized file
Huygens’ Resolution Pyramids work with the HDF5 based file format, which is saved on the computers storage and contains the same image at different resolutions. The bottom tier contains the full resolution image, but cropped into smaller chunks. Tiers above this contain down-sampled versions made of fewer and larger chunks. These down-sampled versions contain less true detail, but are smaller in size and appear just as detailed on a monitor (at the zoom levels they are displayed at).
Click on the adjacent tabs to see how Resolution Pyramids work.
No Resolution Pyramid: The image cannot be opened in Huygens if the device does not have sufficient RAM to fit it, and Huygens Resolution Pyramid option is not used.
Resolution Pyramid: Images can be stiched and/or converted into a Resolution Pyramid file. Huygens shows only what is needed to minimize RAM usage.
Extract from Resolution Pyramid: Individual resolution levels can be extracted and viewed or saved as is. Creates smaller file sizes than complete Pyramids, yet leads to detail loss when using a lower resolution.
How to create a Resolution Pyramid
We currently offer three ways to create Resolution Pyramid files: 1) open Professonal and navigate to File > Generate Resolution Pyramid. From here you can choose an image and save location for the conversion process (this conversion can use RAM and virtual RAM). 2) Any opened image in Huygens that fits in RAM can be converted by right navigating to tools and selecting the corresponding task bar icon. 3) Lastly, the stitcher comes bundled with an option to save the final output as a Resolution Pyramid, which can be saved to storage.
There is also the option to calculate a histogram from the original high resolution image. This option can be disabled to save time in the conversion process, but if so, will result in a file that does not yet have a histogram. One can always be calculated after conversion if needed.
How to extract single layers to single images
To extract a single image from at a specific resolution level, navigate to the main menu, where your Resolution Pyramid is loaded. From here you can right-click and use Extract Layer. This generates an image in Huygens that you can use for operations, or save as a standalone image e.g. as HDF5.
Compatability notice
To clarify, the Huygens Resolution Pyramid .pyr.h5 format is still exclusive to Huygens software. It is not compatible or interchangeable with other pyramid or HDF5 file formats yet.
Footnotes/References
- The Huygens HDF5 (Pyramid) file format is based on the Hierarchical Data Format version 5 (HDF5), which is an open source file format that supports large, complex, heterogeneous data. Huygens HDF5 stores extensive metadata information of all the supported microscope types, including STED, Light Sheet and Array Detector based systems. For this reason, portability to other software may be limited. For more information, see http://www.hdfgroup.org/HDF5/ and FileFormats.
- Currently, all supported file types can be converted to a Huygens Resolution Pyramid file if they fit in RAM (+ virtual memory/swap space). For files that do not fit in memory, the list of compatible file types is still limited to: (Huygens) HDF5, ICS/ICS2, OME Tiff, OME, TIFF, Abberior MSR/OBF, Olympus VSI, Zeiss CZI, Leica LIF, LOF, XLIF, Imaris 5.5 HDF5 version. Attempting to convert non-supported files in Huygens will prompt you with a warning and bugreport option. This gives us insight on what formats to include support for in future patches.