casa
$Rev:20696$
|
Class which implements simple resampling for the WorldCanvas. More...
#include <WCSimpleResampleHandler.h>
Public Member Functions | |
WCSimpleResampleHandler () | |
Default constructor (Provides NEAREST) | |
WCSimpleResampleHandler (Interpolate2D::Method type=Interpolate2D::NEAREST) | |
Constructor. | |
WCSimpleResampleHandler (const WCSimpleResampleHandler &other) | |
Copy Constructor (copy semantics) | |
WCSimpleResampleHandler & | operator= (const WCSimpleResampleHandler &other) |
Assignment operator (copy semantics) | |
virtual | ~WCSimpleResampleHandler () |
Destructor. | |
void | setInterpolationType (Interpolate2D::Method type) |
Reset interpolation method. | |
virtual void | operator() (Matrix< Bool > &out, const Matrix< Bool > &in) |
The output array is presized by the caller to the correct size. | |
virtual void | operator() (Matrix< uChar > &out, const Matrix< uChar > &in) |
virtual void | operator() (Matrix< Char > &out, const Matrix< Char > &in) |
virtual void | operator() (Matrix< uShort > &out, const Matrix< uShort > &in) |
virtual void | operator() (Matrix< Short > &out, const Matrix< Short > &in) |
virtual void | operator() (Matrix< uInt > &out, const Matrix< uInt > &in) |
virtual void | operator() (Matrix< Int > &out, const Matrix< Int > &in) |
virtual void | operator() (Matrix< uLong > &out, const Matrix< uLong > &in) |
virtual void | operator() (Matrix< Long > &out, const Matrix< Long > &in) |
virtual void | operator() (Matrix< Float > &out, const Matrix< Float > &in) |
virtual void | operator() (Matrix< Double > &out, const Matrix< Double > &in) |
virtual void | operator() (Matrix< Complex > &out, const Matrix< Complex > &in) |
virtual void | operator() (Matrix< DComplex > &out, const Matrix< DComplex > &in) |
virtual void | operator() (Matrix< Float > &out, const Matrix< Float > &in, const Vector< Float > &pixblc, const Vector< Float > &pixtrc, const Float blank=0.0) |
This function resamples the input matrix to the output. | |
virtual void | operator() (Matrix< Float > &out, Matrix< Bool > &outMask, const Matrix< Float > &in, const Matrix< Bool > &inMask, const Vector< Float > &inblc, const Vector< Float > &intrc, const Float blank=0.0) |
virtual void | operator() (Matrix< Bool > &out, const Matrix< Bool > &in, const Vector< Float > &pixblc, const Vector< Float > &pixtrc, const Bool blank=False) |
Private Attributes | |
Interpolate2D | itsInterp |
Class which implements simple resampling for the WorldCanvas.
The name "WCSimpleResampleHandler" is a contraction of the terms "WorldCanvas," "Simple," "Resample" and "Handler."
This class implements the interface defined in WCResampleHandler to provide pixel interpolation (resampling) of data pixels to screen pixels. It offers simple nearest, linear and cubic interpolation.
The provision of raster images which are smooth in appearance.
Definition at line 60 of file WCSimpleResampleHandler.h.
Default constructor (Provides NEAREST)
casa::WCSimpleResampleHandler::WCSimpleResampleHandler | ( | Interpolate2D::Method | type = Interpolate2D::NEAREST | ) |
Constructor.
Copy Constructor (copy semantics)
virtual casa::WCSimpleResampleHandler::~WCSimpleResampleHandler | ( | ) | [virtual] |
Destructor.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Bool > & | out, |
const Matrix< Bool > & | in | ||
) | [virtual] |
The output array is presized by the caller to the correct size.
It will be filled using information in the input array combined with other resample-specific information. Here again the interface is type expanded rather than templated because C++ doesn't yet handle templated member functions in a non-templated class.
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< uChar > & | out, |
const Matrix< uChar > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Char > & | out, |
const Matrix< Char > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< uShort > & | out, |
const Matrix< uShort > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Short > & | out, |
const Matrix< Short > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< uInt > & | out, |
const Matrix< uInt > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Int > & | out, |
const Matrix< Int > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< uLong > & | out, |
const Matrix< uLong > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Long > & | out, |
const Matrix< Long > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Float > & | out, |
const Matrix< Float > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Double > & | out, |
const Matrix< Double > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Complex > & | out, |
const Matrix< Complex > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< DComplex > & | out, |
const Matrix< DComplex > & | in | ||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Float > & | out, |
const Matrix< Float > & | in, | ||
const Vector< Float > & | pixblc, | ||
const Vector< Float > & | pixtrc, | ||
const Float | blank = 0.0 |
||
) | [virtual] |
This function resamples the input matrix to the output.
pixblc is the location relative to the input matrix of the bottom-left pixel of the output (sim. for pixtrc); blank is the output value where none of the input data is useful. The output matrix must be presized to the required size.
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Float > & | out, |
Matrix< Bool > & | outMask, | ||
const Matrix< Float > & | in, | ||
const Matrix< Bool > & | inMask, | ||
const Vector< Float > & | inblc, | ||
const Vector< Float > & | intrc, | ||
const Float | blank = 0.0 |
||
) | [virtual] |
Implements casa::WCResampleHandler.
virtual void casa::WCSimpleResampleHandler::operator() | ( | Matrix< Bool > & | out, |
const Matrix< Bool > & | in, | ||
const Vector< Float > & | pixblc, | ||
const Vector< Float > & | pixtrc, | ||
const Bool | blank = False |
||
) | [virtual] |
Implements casa::WCResampleHandler.
WCSimpleResampleHandler& casa::WCSimpleResampleHandler::operator= | ( | const WCSimpleResampleHandler & | other | ) |
Assignment operator (copy semantics)
Reset interpolation method.
Definition at line 126 of file WCSimpleResampleHandler.h.