The Insight Journal logo

RLEImage: run-length encoded memory compression scheme for an itk::Image

Zukić, Dženan, McCormick, Matthew, Gerig, Guido, Yushkevich, Paul
Computer Graphics group, University of Siegen
Publication cover image

Please use this identifier to cite or link to this publication:
New: Prefer using the following doi:
Published in The Insight Journal - 2016 January-December.
Submitted by Dženan Zukić on 2016-08-19 11:18:38.

This document describes a new class, itk::RLEImage, which uses run-length encoding to reduce the memory needed for storage of label maps. This class is accompanied by all the iterators to make it a dropin replacement for itk::Image. By changing the image typedef to itk::RLEImage, many ITK image processing algorithms build without modification and with minimal performance overhead. However, it is not possible if the user code uses GetBufferPointer() or otherwise assumes a linear pixel layout. This class is implemented to reduce the memory use of ITK-SNAP (, so ITKSNAP is the base for measuring the quantitative results. The class, accompanying iterator specializations, automated regression tests, and test data are all packaged as an ITK remote module