w2kmeans::WeightingScheme Class Reference

List of all members.

Detailed Description

This class does the calculations for the spatial interpolation performed by SegmentMotionEstimator.

There is a separate object per region identified.

The weighting scheme is such that weight=1 at the boundary of the region, > 1 in the interior of the region and < 1 outside the region, falling quickly to zero beyond 2x the region boundary.

Author:
Lakshman
Version:
Id
w2kmeans_WeightingScheme.h,v 1.2 2009/06/02 20:17:59 lakshman Exp


Public Member Functions

 WeightingScheme (size_t size_of_region, float relative_wt_of_region=1.0)
 Sets up the spatial interpolation for a region.
float getWeightForDistSq (float distsq)
 workhorse function giving weight given distance from this region.
float getMaximumDistance () const
 Distance beyond which the contribution from this region can be ignored.

Static Public Member Functions

static float getMinimumWeight ()
static float getMaximumWeight ()


Constructor & Destructor Documentation

w2kmeans::WeightingScheme::WeightingScheme ( size_t  size_of_region,
float  relative_wt_of_region = 1.0 
)

Sets up the spatial interpolation for a region.


Member Function Documentation

float w2kmeans::WeightingScheme::getMaximumDistance (  )  const [inline]

Distance beyond which the contribution from this region can be ignored.

static float w2kmeans::WeightingScheme::getMaximumWeight (  )  [inline, static]

static float w2kmeans::WeightingScheme::getMinimumWeight (  )  [inline, static]

float w2kmeans::WeightingScheme::getWeightForDistSq ( float  distsq  )  [inline]

workhorse function giving weight given distance from this region.


Generated on Fri May 4 13:40:24 2012 for WDSS-IIw2algs by  doxygen 1.4.7