Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

ImageStats.hpp File Reference

#include <ImLib3D/ImageProcessor.hpp>
#include <map>
#include <algorithm>

Include dependency graph for ImageStats.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  IP3D

Functions

template<class ImageType>
void Average (const ImageType &src, typename ImageType::value_type &average)
template<class ImageType>
void AverageAndVariance (const ImageType &src, double &average, double &variance)
template<class ImageType>
void Median (const ImageType &src, double &res, double part=.5, double precision=-.1)


Detailed Description

Definition in file ImageStats.hpp.


Function Documentation

template<class ImageType>
void IP3D::Average const ImageType &  src,
typename ImageType::value_type &  average
 

#&Average&# Computes the average and the variance of an images. Only for positions where mask is not 0.

Source image type:ImageType Average type:Im3DValue ~

Definition at line 40 of file ImageStats.hpp.

template<class ImageType>
void IP3D::AverageAndVariance const ImageType &  src,
double &  average,
double &  variance
 

#&AverageAndVariance&# Computes the average and the variance of an images. Only for positions where mask is not 0.

Source image type:ImageType Average type:double Variance type:double ~

Definition at line 60 of file ImageStats.hpp.

template<class ImageType>
void IP3D::Median const ImageType &  src,
double &  res,
double  part = .5,
double  precision = -.1
 

#&Median&# Median value of an image, or more generaly: portion of histogram. This is NOT a median filter (see MedianFilter). For 0<=p<=1, Image I. Computes value v of image for which Porba(I(P)<v)=p. For exmaple, for p=.5, v=median value of I. Uses mask.

Source image. type:ImageType Histogram portion type:double Variance type:double ~
Parameters:
part  .5 for median

Definition at line 102 of file ImageStats.hpp.

Referenced by IP3D::RobustAverageAndVariance().


Generated on Fri Jun 17 13:36:15 2005 for ImLib3D by  doxygen 1.4.2