eLynx SDK v3.3.0
C++ image processing API reference
Classes | Public Member Functions

eLynx::Math::ResampleHelper Class Reference

List of all members.

Classes

struct  Contributor
struct  SampleWeight

Public Member Functions

 ResampleHelper (uint32 iOldSize, uint32 iNewSize, EResampleFilter iFilter)
 Construtor.
uint32 GetContributorCount (uint32 iNewIndex) const
 Get the number of contributor for an index.
uint32 GetOldIndex (uint32 iNewIndex, uint32 iContributor) const
 Get the old index.
double GetWeight (uint32 iNewIndex, uint32 iContributor) const
 Get the weight from new index and contributor.

Constructor & Destructor Documentation

eLynx::Math::ResampleHelper::ResampleHelper ( uint32  iOldSize,
uint32  iNewSize,
EResampleFilter  iFilter 
)

Construtor.

Parameters:
iOldSizeThe size of the samples to be resampled (the old size).
iNewSizeThe requested new size of samples.
iFilterThe resample filter to use.

Member Function Documentation

uint32 eLynx::Math::ResampleHelper::GetContributorCount ( uint32  iNewIndex ) const

Get the number of contributor for an index.

Parameters:
iNewIndexThe new index in range [0, newSize[
Returns:
the number of contributor.
uint32 eLynx::Math::ResampleHelper::GetOldIndex ( uint32  iNewIndex,
uint32  iContributor 
) const

Get the old index.

Parameters:
iNewIndexThe new index in range [0, newSize[
iContributorthe contributor index.
Returns:
the old index.
double eLynx::Math::ResampleHelper::GetWeight ( uint32  iNewIndex,
uint32  iContributor 
) const

Get the weight from new index and contributor.

Parameters:
iNewIndexThe new index in range [0, newSize[
iContributorthe contributor index.
Returns:
The weight to be applied.

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

Generated on Thu Dec 9 2010 by doxygen 1.7.2