Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

fl::Rescale Class Reference

#include <convolve.h>

Inheritance diagram for fl::Rescale:

fl::Filter List of all members.

Public Methods

 Rescale (double a=1.0, double b=0)
 Rescale (const Image &image, bool useFullRange=true)
 Determines a transformation that pulls the pixel values into the range [0,1]. useFullRange indicates that min intensity should be 0 and max should be 1 after rescaling.

virtual Image filter (const Image &image)
 This could be const, but it is useful to allow filters to collect statistics. Note that such filters are not thread safe.


Public Attributes

double a
double b

Detailed Description

If image format is floating point, then determine and apply an affine transformation x <== ax + b to the pixel values. If image format is integer, it is passed thru unmodified.


Constructor & Destructor Documentation

Rescale::Rescale double    a = 1.0,
double    b = 0
 

Rescale::Rescale const Image   image,
bool    useFullRange = true
 

Determines a transformation that pulls the pixel values into the range [0,1]. useFullRange indicates that min intensity should be 0 and max should be 1 after rescaling.


Member Function Documentation

Image Rescale::filter const Image   image [virtual]
 

This could be const, but it is useful to allow filters to collect statistics. Note that such filters are not thread safe.

Implements fl::Filter.


Member Data Documentation

double fl::Rescale::a
 

double fl::Rescale::b
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 17:13:26 2004 for fl by doxygen1.2.18