51 template<
typename TPixel,
unsigned int VImageDimension = 3,
typename CounterType =
unsigned short >
80 typedef std::pair< CounterType, PixelType >
RLSegment;
83 typedef std::vector< RLSegment >
RLLine;
133 Allocate(
bool initialize =
false );
320 #ifndef ITK_MANUAL_INSTANTIATION
321 #include "itkRLEImage.hxx"
324 #endif // itkRLEImage_h
Superclass::PointType PointType
Superclass::RegionType RegionType
itk::Image< RLLine, VImageDimension-1 > BufferType
Index< VImageDimension > IndexType
virtual void SetRequestedRegion(const RegionType ®ion)
BufferType::Pointer GetBuffer() const
SmartPointer< Self > Pointer
Superclass::OffsetValueType OffsetValueType
static BufferType::IndexType truncateIndex(const IndexType &index)
Superclass::SpacingType SpacingType
BufferType::Pointer m_Buffer
Superclass::OffsetType OffsetType
virtual void ComputeIndexToPhysicalPointMatrices()
itk::WeakPointer< const Self > ConstWeakPointer
signed long IndexValueType
std::pair< CounterType, PixelType > RLSegment
Superclass::SpacingValueType SpacingValueType
bool GetOnTheFlyCleanup() const
An image region represents a structured region of data.
SpacePrecisionType SpacingValueType
Superclass::SizeType SizeType
void SetPixel(const IndexType &index, const TPixel &value)
Set a pixel value.
Superclass::DirectionType DirectionType
const TPixel & GetPixel(const IndexType &index) const
Get a pixel. SLOW! Better use iterators for pixel access.
Implements a weak reference to an object.
virtual void Initialize() override
unsigned long SizeValueType
static const unsigned int ImageDimension
Size< VImageDimension > SizeType
Point< PointValueType, VImageDimension > PointType
Matrix< SpacePrecisionType, VImageDimension, VImageDimension > DirectionType
BufferType::Pointer GetBuffer()
virtual void Allocate(bool initialize=false)
Superclass::RegionType RegionType
const TPixel & operator[](const IndexType &index) const
Access a pixel. Chaning it changes the whole RLE segment!
static BufferType::SizeType truncateSize(const SizeType &size)
Superclass::IndexType IndexType
static BufferType::RegionType truncateRegion(const RegionType ®ion)
static unsigned int GetLength()
Offset< VImageDimension > OffsetType
Superclass::IndexType IndexType
Vector< SpacingValueType, VImageDimension > SpacingType
Superclass::SizeType SizeType
void CleanUpLine(RLLine &line) const
void FillBuffer(const TPixel &value)
void SetOnTheFlyCleanup(bool value)
Superclass::SizeValueType SizeValueType
itk::SmartPointer< const Self > ConstPointer
SizeType::SizeValueType SizeValueType
OffsetType::OffsetValueType OffsetValueType
virtual void SetLargestPossibleRegion(const RegionType ®ion)
virtual unsigned int GetNumberOfComponentsPerPixel() const
virtual void SetLargestPossibleRegion(const RegionType ®ion)
Base class for templated image classes.
virtual void ComputeIndexToPhysicalPointMatrices()
void operator=(const Self &)
itk::SmartPointer< Self > Pointer
Control indentation during Print() invocation.
void PrintSelf(std::ostream &os, itk::Indent indent) const
itk::ImageBase< VImageDimension > Superclass
virtual void SetBufferedRegion(const RegionType ®ion)
Run-Length Encoded image. It saves memory for label images at the expense of processing times...
virtual void Initialize()
std::vector< RLSegment > RLLine
Base class for all data objects in ITK.
IndexType::IndexValueType IndexValueType
Superclass::IndexValueType IndexValueType
Templated n-dimensional image class.
virtual void SetRequestedRegion(const RegionType ®ion)
CounterType RLCounterType
virtual void SetBufferedRegion(const RegionType ®ion)