aimsdata  4.6.2
Neuroimaging data handling
AimsData< T > Class Template Reference

#include <aims/connectivity/component.h>

Inheritance diagram for AimsData< T >:
Collaboration diagram for AimsData< T >:

Classes

struct  Private
 

Public Types

typedef T value_type
 
typedef T * pointer
 basic pointer More...
 
typedef T **** pointer4d
 4D-pointer More...
 
typedef T * iterator
 basic iterator More...
 
typedef const T * const_iterator
 basic constant iterator More...
 
typedef T & reference
 basic reference More...
 
typedef const T & const_reference
 basic constant reference More...
 
typedef size_t size_type
 size of the basic type More...
 
typedef ptrdiff_t difference_type
 difference type More...
 
- Public Types inherited from carto::RCObject
typedef int RefCounterType
 

Public Member Functions

iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
bool empty () const
 
 AimsData (int dimx=1, int dimy=1, int dimz=1, int dimt=1, int borderw=0)
 
 AimsData (int dimx, int dimy, int dimz, int dimt, int borderw, const carto::AllocatorContext &al)
 
 AimsData (const AimsData< T > &other)
 
 AimsData (const AimsData< T > &other, int borderw)
 
virtual ~AimsData ()
 
 AimsData (carto::rc_ptr< carto::Volume< T > > vol)
 
AimsData< T > & operator= (carto::rc_ptr< carto::Volume< T > > vol)
 
AimsData< T > & operator= (const AimsData< T > &)
 
AimsData< T > & operator= (const T &)
 
carto::rc_ptr< carto::Volume< T > > volume ()
 
carto::rc_ptr< carto::Volume< T > > volume () const
 
 operator carto::rc_ptr< carto::Volume< T > > ()
 cast to Volume More...
 
 operator const carto::rc_ptr< carto::Volume< T > > () const
 
const carto::AllocatorContext & allocator () const
 
int dimX () const
 
int dimY () const
 
int dimZ () const
 
int dimT () const
 
float sizeX () const
 
float sizeY () const
 
float sizeZ () const
 
float sizeT () const
 
void setSizeX (float sizex)
 
void setSizeY (float sizey)
 
void setSizeZ (float sizez)
 
void setSizeT (float sizet)
 
void setSizeXYZT (float sizex=1.0f, float sizey=1.0f, float sizez=1.0f, float sizet=1.0f)
 
void setSizeXYZT (const AimsData< T > &other)
 
const aims::Headerheader () const
 
aims::Headerheader ()
 
void setHeader (aims::Header *hdr)
 
reference operator[] (size_type n)
 
const_reference operator[] (size_type n) const
 
reference operator() (size_type x=0, size_type y=0, size_type z=0, size_type t=0)
 
const_reference operator() (size_type x=0, size_type y=0, size_type z=0, size_type t=0) const
 
reference operator() (const Point4d &pt)
 
const_reference operator() (const Point4d &pt) const
 
reference operator() (const Point4dl &pt)
 
const_reference operator() (const Point4dl &pt) const
 
reference operator() (const Point3d &pt)
 
const_reference operator() (const Point3d &pt) const
 
reference operator() (const Point3dl &pt)
 
const_reference operator() (const Point3dl &pt) const
 
reference operator() (const Point2d &pt)
 
const_reference operator() (const Point2d &pt) const
 
reference operator() (const Point2dl &pt)
 
const_reference operator() (const Point2dl &pt) const
 
minimum () const
 
maximum () const
 
minIndex (int *x, int *y, int *z, int *t) const
 
maxIndex (int *x, int *y, int *z, int *t) const
 
void fillBorder (const T &val)
 
AimsData< T > clone () const
 
AimsData< T > cross (const AimsData< T > &other)
 
AimsData< T > & transpose ()
 
- Public Member Functions inherited from carto::RCObject
 RCObject ()
 
 RCObject (const RCObject &)
 
RCObjectoperator= (const RCObject &)
 
- Public Member Functions inherited from aims::Border
 Border (int dimx, int dimy, int dimz, int width=0)
 The constructor precalculates offsets to speed-up access to data during loops. More...
 
virtual ~Border ()
 
int borderWidth () const
 Usefull offsets for A.I.M.S. More...
 
int oFirstPoint () const
 Offset from the start of the allocated memory to the first point. More...
 
int oLastPoint () const
 Offset from the start of the allocated memory to the last point. More...
 
int oLine () const
 Offset between 2 consecutive lines. More...
 
int oPointBetweenLine () const
 Offset between the end of a line and the start of the consecutive line. More...
 
int oSlice () const
 Offset between 2 consecutive slices. More...
 
int oLineBetweenSlice () const
 Number of lines between 2 consecutive slices. More...
 
int oVolume () const
 Offset between 2 consecutive volumes. More...
 
int oSliceBetweenVolume () const
 Number of slices between 2 consecutive volumes. More...
 

Additional Inherited Members

- Protected Member Functions inherited from aims::Border
void _setBorder (int dimx, int dimy, int dimz, int width)
 Function that sets up all protected datas. More...
 
- Protected Attributes inherited from aims::Border
int _borderWidth
 Border width. More...
 
int _oFirstPoint
 Offset up to first point. More...
 
int _oLastPoint
 Offset up to last point. More...
 
int _oLine
 Length of a line. More...
 
int _oPointBetweenLine
 Offset between two consecutive lines. More...
 
int _oSlice
 Length of a slice. More...
 
int _oLineBetweenSlice
 Offset between two consecutive slices. More...
 
int _oVolume
 Length of a volume. More...
 
int _oSliceBetweenVolume
 Offset between two consecutive volumes. More...
 

Detailed Description

template<typename T>
class AimsData< T >

Definition at line 43 of file component.h.

Member Typedef Documentation

template<typename T>
typedef const T* AimsData< T >::const_iterator

basic constant iterator

Definition at line 61 of file cartodatavolume.h.

template<typename T>
typedef const T& AimsData< T >::const_reference

basic constant reference

Definition at line 65 of file cartodatavolume.h.

template<typename T>
typedef ptrdiff_t AimsData< T >::difference_type

difference type

Definition at line 69 of file cartodatavolume.h.

template<typename T>
typedef T* AimsData< T >::iterator

basic iterator

Definition at line 59 of file cartodatavolume.h.

template<typename T>
typedef T* AimsData< T >::pointer

basic pointer

Definition at line 55 of file cartodatavolume.h.

template<typename T>
typedef T**** AimsData< T >::pointer4d

4D-pointer

Definition at line 57 of file cartodatavolume.h.

template<typename T>
typedef T& AimsData< T >::reference

basic reference

Definition at line 63 of file cartodatavolume.h.

template<typename T>
typedef size_t AimsData< T >::size_type

size of the basic type

Definition at line 67 of file cartodatavolume.h.

template<typename T>
typedef T AimsData< T >::value_type

Definition at line 53 of file cartodatavolume.h.

Constructor & Destructor Documentation

template<typename T >
AimsData< T >::AimsData ( int  dimx = 1,
int  dimy = 1,
int  dimz = 1,
int  dimt = 1,
int  borderw = 0 
)
inline
template<typename T >
AimsData< T >::AimsData ( int  dimx,
int  dimy,
int  dimz,
int  dimt,
int  borderw,
const carto::AllocatorContext &  al 
)
inline
template<typename T >
AimsData< T >::~AimsData ( )
inlinevirtual

Definition at line 390 of file cartodatavolume.h.

Member Function Documentation

template<typename T >
const carto::AllocatorContext & AimsData< T >::allocator ( ) const
inline

Definition at line 805 of file cartodatavolume.h.

Referenced by aims::operator>>(), and aims::MincReader< T >::read().

template<typename T >
AimsData< T >::const_iterator AimsData< T >::begin ( ) const
inline

Definition at line 267 of file cartodatavolume.h.

template<typename T>
AimsData< T > AimsData< T >::cross ( const AimsData< T > &  other)
inline
template<typename T >
int AimsData< T >::dimT ( ) const
inline

Definition at line 530 of file cartodatavolume.h.

Referenced by aims::AimsConnectedComponent(), AimsData< T >::AimsData(), aims::AimsLabeledConnectedComponent(), carto::ConverterAllocator< AimsData< INP >, AimsData< OUTP > >::alloc(), AimsThreshold< T, U >::bin(), AimsThreshold< T, U >::clip(), aims::ConnectedComponentEngine< AimsData< T >, AimsData< O > >::connected(), carto::RawConverter< AimsData< INP >, AimsData< OUTP > >::convert(), carto::Rescaler< AimsData< INP >, AimsData< OUTP > >::convert(), carto::RawConverter< AimsData< INP >, AimsData< INP > >::convert(), carto::RawConverter< AimsData< INP >, aims::BucketMap< OUTP > >::convert(), carto::RawConverter< AimsData< INP >, aims::BucketMap< Void > >::convert(), carto::Rescaler< AimsData< AimsVector< T, D > >, AimsData< AimsRGB > >::convert(), carto::Rescaler< AimsData< AimsRGB >, AimsData< AimsVector< T, D > > >::convert(), AimsData< T >::cross(), aims::decOrder(), aims::decSorting(), aims::diag(), AimsFlip< T >::doXX(), AimsFlip< T >::doXXYY(), AimsFlip< T >::doXXYYZZ(), AimsFlip< T >::doXXZZ(), AimsFlip< T >::doXY(), AimsFlip< T >::doXZ(), AimsFlip< T >::doYY(), AimsFlip< T >::doYYZZ(), AimsFlip< T >::doYZ(), AimsFlip< T >::doZZ(), AimsData< T >::fillBorder(), aims::hasSameDim(), aims::incOrder(), aims::incSorting(), AimsData< T >::maxIndex(), AimsData< T >::minIndex(), aims::minmax(), AimsMerge< T, U >::operator()(), AimsLinearCombination< T >::operator()(), AimsThreshold< T, U >::operator()(), AimsData< T >::operator=(), operator>>(), aims::FdfReader< T >::read(), aims::SpmReader< T >::read(), aims::transpose(), AimsData< T >::transpose(), aims::triInf(), aims::triSup(), aims::undiag(), aims::TiffWriter< T >::write(), aims::JpegWriter< T >::write(), and aims::SpmWriter< T >::write().

template<typename T >
int AimsData< T >::dimX ( ) const
inline

Definition at line 506 of file cartodatavolume.h.

Referenced by aims::AimsConnectedComponent(), AimsData< T >::AimsData(), aims::AimsLabeledConnectedComponent(), aims::AimsLagrangeInterpolationOf(), carto::ConverterAllocator< AimsData< INP >, AimsData< OUTP > >::alloc(), AimsThreshold< T, U >::bin(), AimsThreshold< T, U >::clip(), aims::Sinogram< T >::clone(), aims::ConnectedComponentEngine< AimsData< T >, AimsData< O > >::connected(), aims::ConnectedComponentEngine< AimsData< T >, AimsData< O > >::connectedInFrame(), carto::RawConverter< AimsData< INP >, AimsData< OUTP > >::convert(), carto::Rescaler< AimsData< INP >, AimsData< OUTP > >::convert(), carto::RawConverter< AimsData< INP >, AimsData< INP > >::convert(), carto::Rescaler< AimsData< AimsVector< T, D > >, AimsData< AimsRGB > >::convert(), carto::Rescaler< AimsData< AimsRGB >, AimsData< AimsVector< T, D > > >::convert(), AimsData< T >::cross(), aims::decOrder(), aims::decSorting(), aims::diag(), AimsFlip< T >::doXX(), AimsFlip< T >::doXXYY(), AimsFlip< T >::doXXYYZZ(), AimsFlip< T >::doXXZZ(), AimsFlip< T >::doXY(), AimsFlip< T >::doXZ(), AimsFlip< T >::doYY(), AimsFlip< T >::doYYZZ(), AimsFlip< T >::doYZ(), AimsFlip< T >::doZZ(), aims::Sinogram< T >::extractSino(), aims::Sinogram< T >::extractView(), AimsData< T >::fillBorder(), aims::Sinogram< T >::getNumSeg(), aims::Sinogram< T >::getPlaneInDisplayMode(), aims::hasSameDim(), aims::incOrder(), aims::incSorting(), AimsData< T >::maxIndex(), AimsData< T >::minIndex(), aims::minmax(), AimsMerge< T, U >::operator()(), AimsLinearCombination< T >::operator()(), AimsThreshold< T, U >::operator()(), AimsData< T >::operator=(), aims::operator>>(), operator>>(), aims::FdfReader< T >::read(), aims::SpmReader< T >::read(), aims::TiffReader< T >::readFrame(), aims::transpose(), AimsData< T >::transpose(), aims::triInf(), aims::triSup(), aims::undiag(), aims::TiffWriter< T >::write(), aims::JpegWriter< T >::write(), aims::SpmWriter< T >::write(), aims::ImasVolFormat< T >::write(), aims::TiffWriter< T >::writeFrame(), and aims::JpegWriter< T >::writeFrame().

template<typename T >
int AimsData< T >::dimY ( ) const
inline

Definition at line 514 of file cartodatavolume.h.

Referenced by aims::AimsConnectedComponent(), AimsData< T >::AimsData(), aims::AimsLabeledConnectedComponent(), carto::ConverterAllocator< AimsData< INP >, AimsData< OUTP > >::alloc(), AimsThreshold< T, U >::bin(), AimsThreshold< T, U >::clip(), aims::ConnectedComponentEngine< AimsData< T >, AimsData< O > >::connected(), aims::ConnectedComponentEngine< AimsData< T >, AimsData< O > >::connectedInFrame(), carto::RawConverter< AimsData< INP >, AimsData< OUTP > >::convert(), carto::Rescaler< AimsData< INP >, AimsData< OUTP > >::convert(), carto::RawConverter< AimsData< INP >, AimsData< INP > >::convert(), carto::Rescaler< AimsData< AimsVector< T, D > >, AimsData< AimsRGB > >::convert(), carto::Rescaler< AimsData< AimsRGB >, AimsData< AimsVector< T, D > > >::convert(), AimsData< T >::cross(), aims::decOrder(), aims::decSorting(), aims::diag(), AimsFlip< T >::doXX(), AimsFlip< T >::doXXYY(), AimsFlip< T >::doXXYYZZ(), AimsFlip< T >::doXXZZ(), AimsFlip< T >::doXY(), AimsFlip< T >::doXZ(), AimsFlip< T >::doYY(), AimsFlip< T >::doYYZZ(), AimsFlip< T >::doYZ(), AimsFlip< T >::doZZ(), AimsData< T >::fillBorder(), aims::hasSameDim(), aims::incOrder(), aims::incSorting(), AimsData< T >::maxIndex(), AimsData< T >::minIndex(), aims::minmax(), AimsMerge< T, U >::operator()(), AimsLinearCombination< T >::operator()(), AimsThreshold< T, U >::operator()(), AimsData< T >::operator=(), aims::operator>>(), operator>>(), aims::FdfReader< T >::read(), aims::SpmReader< T >::read(), aims::TiffReader< T >::readFrame(), aims::transpose(), AimsData< T >::transpose(), aims::triInf(), aims::triSup(), aims::undiag(), aims::TiffWriter< T >::write(), aims::JpegWriter< T >::write(), aims::SpmWriter< T >::write(), aims::ImasVolFormat< T >::write(), aims::TiffWriter< T >::writeFrame(), and aims::JpegWriter< T >::writeFrame().

template<typename T >
int AimsData< T >::dimZ ( ) const
inline

Definition at line 522 of file cartodatavolume.h.

Referenced by aims::AimsConnectedComponent(), AimsData< T >::AimsData(), aims::AimsLabeledConnectedComponent(), carto::ConverterAllocator< AimsData< INP >, AimsData< OUTP > >::alloc(), AimsThreshold< T, U >::bin(), AimsThreshold< T, U >::clip(), aims::ConnectedComponentEngine< AimsData< T >, AimsData< O > >::connected(), aims::ConnectedComponentEngine< AimsData< T >, AimsData< O > >::connectedInFrame(), carto::RawConverter< AimsData< INP >, AimsData< OUTP > >::convert(), carto::Rescaler< AimsData< INP >, AimsData< OUTP > >::convert(), carto::RawConverter< AimsData< INP >, AimsData< INP > >::convert(), carto::Rescaler< AimsData< AimsVector< T, D > >, AimsData< AimsRGB > >::convert(), carto::Rescaler< AimsData< AimsRGB >, AimsData< AimsVector< T, D > > >::convert(), AimsData< T >::cross(), aims::decOrder(), aims::decSorting(), aims::diag(), AimsFlip< T >::doXX(), AimsFlip< T >::doXXYY(), AimsFlip< T >::doXXYYZZ(), AimsFlip< T >::doXXZZ(), AimsFlip< T >::doXY(), AimsFlip< T >::doXZ(), AimsFlip< T >::doYY(), AimsFlip< T >::doYYZZ(), AimsFlip< T >::doYZ(), AimsFlip< T >::doZZ(), AimsData< T >::fillBorder(), aims::hasSameDim(), aims::incOrder(), aims::incSorting(), AimsData< T >::maxIndex(), AimsData< T >::minIndex(), aims::minmax(), AimsMerge< T, U >::operator()(), AimsLinearCombination< T >::operator()(), AimsThreshold< T, U >::operator()(), AimsData< T >::operator=(), aims::operator>>(), operator>>(), aims::FdfReader< T >::read(), aims::SpmReader< T >::read(), aims::TiffReader< T >::readFrame(), aims::transpose(), AimsData< T >::transpose(), aims::triInf(), aims::triSup(), aims::undiag(), aims::TiffWriter< T >::write(), aims::JpegWriter< T >::write(), and aims::SpmWriter< T >::write().

template<typename T >
bool AimsData< T >::empty ( ) const
inline

Definition at line 297 of file cartodatavolume.h.

template<typename T >
AimsData< T >::iterator AimsData< T >::end ( )
inline
template<typename T >
AimsData< T >::const_iterator AimsData< T >::end ( ) const
inline

Definition at line 286 of file cartodatavolume.h.

template<typename T>
void AimsData< T >::fillBorder ( const T &  val)
inline
template<typename T >
aims::Header * AimsData< T >::header ( )
inline

Definition at line 821 of file cartodatavolume.h.

References AimsData< T >::Private::header.

template<typename T >
T AimsData< T >::maximum ( ) const
inline
template<typename T >
T AimsData< T >::minimum ( ) const
inline
template<typename T >
AimsData< T >::operator carto::rc_ptr< carto::Volume< T > > ( )

cast to Volume

Definition at line 251 of file cartodatavolume.h.

References AimsData< T >::volume().

template<typename T >
AimsData< T >::operator const carto::rc_ptr< carto::Volume< T > > ( ) const

Definition at line 244 of file cartodatavolume.h.

References AimsData< T >::volume().

template<typename T>
reference AimsData< T >::operator() ( size_type  x = 0,
size_type  y = 0,
size_type  z = 0,
size_type  t = 0 
)
template<typename T>
const_reference AimsData< T >::operator() ( size_type  x = 0,
size_type  y = 0,
size_type  z = 0,
size_type  t = 0 
) const
template<typename T >
AimsData< T >::reference AimsData< T >::operator() ( const Point4d pt)
inline

Definition at line 908 of file cartodatavolume.h.

template<typename T >
AimsData< T >::const_reference AimsData< T >::operator() ( const Point4d pt) const
inline

Definition at line 917 of file cartodatavolume.h.

template<typename T >
AimsData< T >::reference AimsData< T >::operator() ( const Point4dl pt)
inline

Definition at line 926 of file cartodatavolume.h.

template<typename T >
AimsData< T >::const_reference AimsData< T >::operator() ( const Point4dl pt) const
inline

Definition at line 935 of file cartodatavolume.h.

template<typename T >
AimsData< T >::reference AimsData< T >::operator() ( const Point3d pt)
inline

Definition at line 944 of file cartodatavolume.h.

template<typename T >
AimsData< T >::const_reference AimsData< T >::operator() ( const Point3d pt) const
inline

Definition at line 953 of file cartodatavolume.h.

template<typename T >
AimsData< T >::reference AimsData< T >::operator() ( const Point3dl pt)
inline

Definition at line 962 of file cartodatavolume.h.

template<typename T >
AimsData< T >::const_reference AimsData< T >::operator() ( const Point3dl pt) const
inline

Definition at line 971 of file cartodatavolume.h.

template<typename T >
AimsData< T >::reference AimsData< T >::operator() ( const Point2d pt)
inline

Definition at line 980 of file cartodatavolume.h.

template<typename T >
AimsData< T >::const_reference AimsData< T >::operator() ( const Point2d pt) const
inline

Definition at line 989 of file cartodatavolume.h.

template<typename T >
AimsData< T >::reference AimsData< T >::operator() ( const Point2dl pt)
inline

Definition at line 998 of file cartodatavolume.h.

template<typename T >
AimsData< T >::const_reference AimsData< T >::operator() ( const Point2dl pt) const
inline

Definition at line 1007 of file cartodatavolume.h.

template<typename T>
reference AimsData< T >::operator[] ( size_type  n)
template<typename T>
const_reference AimsData< T >::operator[] ( size_type  n) const
template<typename T >
carto::rc_ptr< carto::Volume< T > > AimsData< T >::volume ( ) const
inline

Definition at line 498 of file cartodatavolume.h.


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