highres-cortex 6.0.4
yl::LabelVolume< Tlabel > Class Template Reference

#include <highres-cortex/label_volume.hh>

Public Types

typedef aims::BucketMap< VoidBucketMap
 
typedef BucketMap::Bucket Bucket
 
typedef boost::transform_iterator< select1st< BucketMap::value_type >, BucketMap::const_iteratorconst_regions_iterator
 
typedef boost::transform_iterator< select1st< Bucket::value_type >, Bucket::const_iterator > const_point_iterator
 Iterator through a Bucket's points (yields Point3d)
 

Public Member Functions

 LabelVolume (const carto::VolumeRef< Tlabel > &vol, Tlabel background=0)
 
virtual ~LabelVolume ()
 
void merge_regions (Tlabel eating_label, Tlabel eaten_label)
 
void discard_region (Tlabel label)
 
Tlabel background_label () const
 
const carto::VolumeRef< Tlabel > & volume () const
 
BucketMap::size_type n_regions () const
 
const_regions_iterator regions_begin () const
 Iterate through all region labels.
 
const_regions_iterator regions_end () const
 Iterate through all region labels.
 
BucketMap::size_type region_size (Tlabel label) const
 
const_point_iterator region_begin (Tlabel label) const
 Iterate through the coordinates of a region's voxels.
 
const_point_iterator region_end (Tlabel label) const
 Iterate through the coordinates of a region's voxels.
 

Detailed Description

template<typename Tlabel>
class yl::LabelVolume< Tlabel >

Definition at line 71 of file label_volume.hh.

Member Typedef Documentation

◆ Bucket

template<typename Tlabel>
typedef BucketMap::Bucket yl::LabelVolume< Tlabel >::Bucket

Definition at line 75 of file label_volume.hh.

◆ BucketMap

template<typename Tlabel>
typedef aims::BucketMap<Void> yl::LabelVolume< Tlabel >::BucketMap

Definition at line 74 of file label_volume.hh.

◆ const_point_iterator

template<typename Tlabel>
typedef boost::transform_iterator<select1st<Bucket::value_type>, Bucket::const_iterator> yl::LabelVolume< Tlabel >::const_point_iterator

Iterator through a Bucket's points (yields Point3d)

Definition at line 81 of file label_volume.hh.

◆ const_regions_iterator

template<typename Tlabel>
typedef boost::transform_iterator<select1st<BucketMap::value_type>, BucketMap::const_iterator> yl::LabelVolume< Tlabel >::const_regions_iterator

Definition at line 78 of file label_volume.hh.

Constructor & Destructor Documentation

◆ LabelVolume()

template<typename Tlabel>
yl::LabelVolume< Tlabel >::LabelVolume ( const carto::VolumeRef< Tlabel > & vol,
Tlabel background = 0 )
explicit

◆ ~LabelVolume()

template<typename Tlabel>
virtual yl::LabelVolume< Tlabel >::~LabelVolume ( )
inlinevirtual

Definition at line 84 of file label_volume.hh.

Member Function Documentation

◆ background_label()

template<typename Tlabel>
Tlabel yl::LabelVolume< Tlabel >::background_label ( ) const
inline

Definition at line 89 of file label_volume.hh.

◆ discard_region()

template<typename Tlabel>
void yl::LabelVolume< Tlabel >::discard_region ( Tlabel label)

◆ merge_regions()

template<typename Tlabel>
void yl::LabelVolume< Tlabel >::merge_regions ( Tlabel eating_label,
Tlabel eaten_label )

◆ n_regions()

template<typename Tlabel>
BucketMap::size_type yl::LabelVolume< Tlabel >::n_regions ( ) const
inline

Definition at line 99 of file label_volume.hh.

◆ region_begin()

template<typename Tlabel>
const_point_iterator yl::LabelVolume< Tlabel >::region_begin ( Tlabel label) const
inline

Iterate through the coordinates of a region's voxels.

Definition at line 126 of file label_volume.hh.

◆ region_end()

template<typename Tlabel>
const_point_iterator yl::LabelVolume< Tlabel >::region_end ( Tlabel label) const
inline

Iterate through the coordinates of a region's voxels.

Definition at line 135 of file label_volume.hh.

◆ region_size()

template<typename Tlabel>
BucketMap::size_type yl::LabelVolume< Tlabel >::region_size ( Tlabel label) const
inline

Definition at line 118 of file label_volume.hh.

◆ regions_begin()

template<typename Tlabel>
const_regions_iterator yl::LabelVolume< Tlabel >::regions_begin ( ) const
inline

Iterate through all region labels.

Definition at line 105 of file label_volume.hh.

◆ regions_end()

template<typename Tlabel>
const_regions_iterator yl::LabelVolume< Tlabel >::regions_end ( ) const
inline

Iterate through all region labels.

Definition at line 112 of file label_volume.hh.

◆ volume()

template<typename Tlabel>
const carto::VolumeRef< Tlabel > & yl::LabelVolume< Tlabel >::volume ( ) const
inline

Definition at line 94 of file label_volume.hh.


The documentation for this class was generated from the following file: