A.I.M.S algorithms


aimsalgo::BucketMapSampler< T, D > Class Template Reference

#include <aims/resampling/bucketmapsampler.h>

Inheritance diagram for aimsalgo::BucketMapSampler< T, D >:
Collaboration diagram for aimsalgo::BucketMapSampler< T, D >:

Public Member Functions

 BucketMapSampler ()
 
virtual ~BucketMapSampler ()
 
Methods
virtual carto::Object sample (Samplable< T, D > &object, AimsVector< T, D > &start, AimsVector< T, D > &sizes, AimsVector< T, D > &resolution)
 Sample a Samplable object. More...
 
virtual void sample (Samplable< T, D > *data, unsigned dimensionIndex, AimsVector< short, D > &partialCoords, aims::BucketMap< Void > &result)
 Sample a Samplable object. More...
 
virtual AimsVector< short, D > normalize (AimsVector< T, D > &vector, AimsVector< T, D > &resolution)
 Normalize an AimsVector<T,D> by dividing with the resolution. More...
 
virtual AimsVector< T, D > denormalize (AimsVector< short, D > &vector, AimsVector< T, D > &resolution)
 Denormalize an AimsVector<short,D> by multiplying with the resolution. More...
 

Detailed Description

template<class T, unsigned D>
class aimsalgo::BucketMapSampler< T, D >

Definition at line 48 of file bucketmapsampler.h.

Constructor & Destructor Documentation

template<class T , unsigned D>
aimsalgo::BucketMapSampler< T, D >::BucketMapSampler ( )
inline

Definition at line 51 of file bucketmapsampler.h.

template<class T , unsigned D>
virtual aimsalgo::BucketMapSampler< T, D >::~BucketMapSampler ( )
inlinevirtual

Definition at line 52 of file bucketmapsampler.h.

Member Function Documentation

template<class T , unsigned D>
virtual AimsVector<T,D> aimsalgo::BucketMapSampler< T, D >::denormalize ( AimsVector< short, D > &  vector,
AimsVector< T, D > &  resolution 
)
virtual

Denormalize an AimsVector<short,D> by multiplying with the resolution.

\

Parameters
vectorAimsVector<short,D> to denormalize
resolutionAimsVector<T,D> containing the resolution to use
Returns
AimsVector<T,D> denormalized using the resolution
template<class T , unsigned D>
virtual AimsVector<short,D> aimsalgo::BucketMapSampler< T, D >::normalize ( AimsVector< T, D > &  vector,
AimsVector< T, D > &  resolution 
)
virtual

Normalize an AimsVector<T,D> by dividing with the resolution.

\

Parameters
vectorAimsVector<T,D> to normalize
resolutionAimsVector<T,D> containing the resolution to use
Returns
AimsVector<short,D> normalized for the resolution
template<class T , unsigned D>
virtual carto::Object aimsalgo::BucketMapSampler< T, D >::sample ( Samplable< T, D > &  object,
AimsVector< T, D > &  start,
AimsVector< T, D > &  sizes,
AimsVector< T, D > &  resolution 
)
virtual

Sample a Samplable object.

\

Parameters
objectSamplable object
startAimsVector<T,D> containing coordinates of the start sampling point
sizesAimsVector<T,D> containing the sizes of the sampling box
resolutionAimsVector<T,D> containing the resolution of the sampling box
Returns
carto::Object * containing the sampled data

Implements aimsalgo::GeneralSampler< T, D >.

template<class T , unsigned D>
virtual void aimsalgo::BucketMapSampler< T, D >::sample ( Samplable< T, D > *  data,
unsigned  dimensionIndex,
AimsVector< short, D > &  partialCoords,
aims::BucketMap< Void > &  result 
)
virtual

Sample a Samplable object.

\

Parameters
objectSamplable object
dimensionIndexunsigned containing the current dimension index value contained in [0,D]
partialCoordsAimsVector<short,D> * containing the current partial coordinates used to generate points
resultBucketMap<Void> * containing the current partial coordinates used to generate points

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