HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PXL_DeepSampleList::Sum Class Reference

Class to help with weighted sums of pixels. More...

#include <PXL_DeepSampleList.h>

Public Member Functions

 Sum (PXL_DeepSampleList &list, int idx, float scale)
 
 ~Sum ()
 
void finishSum ()
 
void add (const PXL_DeepSampleList &s, int sidx, float weight=1)
 
void addVolume (const PXL_DeepSampleList &s, int sidx, float zinterp, bool beerlambert=false)
 
int index () const
 
float totalWeight () const
 
float maxWeight () const
 

Detailed Description

Class to help with weighted sums of pixels.

Definition at line 270 of file PXL_DeepSampleList.h.

Constructor & Destructor Documentation

PXL_DeepSampleList::Sum::Sum ( PXL_DeepSampleList list,
int  idx,
float  scale 
)
inline

Definition at line 273 of file PXL_DeepSampleList.h.

PXL_DeepSampleList::Sum::~Sum ( )
inline

Definition at line 282 of file PXL_DeepSampleList.h.

Member Function Documentation

void PXL_DeepSampleList::Sum::add ( const PXL_DeepSampleList s,
int  sidx,
float  weight = 1 
)
inline

Definition at line 297 of file PXL_DeepSampleList.h.

void PXL_DeepSampleList::Sum::addVolume ( const PXL_DeepSampleList s,
int  sidx,
float  zinterp,
bool  beerlambert = false 
)
inline

Add a volume sample. The zinterp value is a 0 to 1 value representing (zback - zsample) / (zback - zfront)

Definition at line 318 of file PXL_DeepSampleList.h.

void PXL_DeepSampleList::Sum::finishSum ( )
inline

Definition at line 289 of file PXL_DeepSampleList.h.

int PXL_DeepSampleList::Sum::index ( ) const
inline

Definition at line 326 of file PXL_DeepSampleList.h.

float PXL_DeepSampleList::Sum::maxWeight ( ) const
inline

Definition at line 328 of file PXL_DeepSampleList.h.

float PXL_DeepSampleList::Sum::totalWeight ( ) const
inline

Definition at line 327 of file PXL_DeepSampleList.h.


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