casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casa::WCSimpleResampleHandler Class Reference

Class which implements simple resampling for the WorldCanvas. More...

#include <WCSimpleResampleHandler.h>

Inheritance diagram for casa::WCSimpleResampleHandler:
casa::WCResampleHandler

Public Member Functions

 WCSimpleResampleHandler ()
 Default constructor (Provides NEAREST) More...
 
 WCSimpleResampleHandler (casacore::Interpolate2D::Method type=casacore::Interpolate2D::NEAREST)
 Constructor. More...
 
 WCSimpleResampleHandler (const WCSimpleResampleHandler &other)
 Copy Constructor (copy semantics) More...
 
WCSimpleResampleHandleroperator= (const WCSimpleResampleHandler &other)
 Assignment operator (copy semantics) More...
 
virtual ~WCSimpleResampleHandler ()
 Destructor. More...
 
void setInterpolationType (casacore::Interpolate2D::Method type)
 Reset interpolation method. More...
 
virtual void operator() (casacore::Matrix< casacore::Bool > &out, const casacore::Matrix< casacore::Bool > &in)
 The output array is presized by the caller to the correct size. More...
 
virtual void operator() (casacore::Matrix< casacore::uChar > &out, const casacore::Matrix< casacore::uChar > &in)
 
virtual void operator() (casacore::Matrix< casacore::Char > &out, const casacore::Matrix< casacore::Char > &in)
 
virtual void operator() (casacore::Matrix< casacore::uShort > &out, const casacore::Matrix< casacore::uShort > &in)
 
virtual void operator() (casacore::Matrix< casacore::Short > &out, const casacore::Matrix< casacore::Short > &in)
 
virtual void operator() (casacore::Matrix< casacore::uInt > &out, const casacore::Matrix< casacore::uInt > &in)
 
virtual void operator() (casacore::Matrix< casacore::Int > &out, const casacore::Matrix< casacore::Int > &in)
 
virtual void operator() (casacore::Matrix< casacore::uLong > &out, const casacore::Matrix< casacore::uLong > &in)
 
virtual void operator() (casacore::Matrix< casacore::Long > &out, const casacore::Matrix< casacore::Long > &in)
 
virtual void operator() (casacore::Matrix< casacore::Float > &out, const casacore::Matrix< casacore::Float > &in)
 
virtual void operator() (casacore::Matrix< casacore::Double > &out, const casacore::Matrix< casacore::Double > &in)
 
virtual void operator() (casacore::Matrix< casacore::Complex > &out, const casacore::Matrix< casacore::Complex > &in)
 
virtual void operator() (casacore::Matrix< casacore::DComplex > &out, const casacore::Matrix< casacore::DComplex > &in)
 
virtual void operator() (casacore::Matrix< casacore::Float > &out, const casacore::Matrix< casacore::Float > &in, const casacore::Vector< casacore::Float > &pixblc, const casacore::Vector< casacore::Float > &pixtrc, const casacore::Float blank=0.0)
 This function resamples the input matrix to the output. More...
 
virtual void operator() (casacore::Matrix< casacore::Float > &out, casacore::Matrix< casacore::Bool > &outMask, const casacore::Matrix< casacore::Float > &in, const casacore::Matrix< casacore::Bool > &inMask, const casacore::Vector< casacore::Float > &inblc, const casacore::Vector< casacore::Float > &intrc, const casacore::Float blank=0.0)
 
virtual void operator() (casacore::Matrix< casacore::Bool > &out, const casacore::Matrix< casacore::Bool > &in, const casacore::Vector< casacore::Float > &pixblc, const casacore::Vector< casacore::Float > &pixtrc, const casacore::Bool blank=false)
 
- Public Member Functions inherited from casa::WCResampleHandler
 WCResampleHandler ()
 (Required) default constructor. More...
 
 WCResampleHandler (const WCResampleHandler &other)
 Copy Constructor (copy semantics) More...
 
WCResampleHandleroperator= (const WCResampleHandler &other)
 Assignment operator (copy semantics) More...
 
virtual ~WCResampleHandler ()
 Destructor. More...
 
void setSubregion (const casacore::Vector< casacore::Double > &blc, const casacore::Vector< casacore::Double > &trc)
 These functions manipulate which subregion in "in" gets expanded to "out" Coordinates are the fraction of the image to use, with <0.0, 0.0> representing the bottom-left corner of the first pixel and <1.0, 1.0> representing the top-right corner of the last pixel. More...
 
void getSubregion (casacore::Vector< casacore::Double > &blc, casacore::Vector< casacore::Double > &trc) const
 

Private Attributes

casacore::Interpolate2D itsInterp
 

Additional Inherited Members

- Protected Member Functions inherited from casa::WCResampleHandler
const casacore::Vector
< casacore::Double > & 
blc () const
 Get the bottom left corner (range <0-1,0-1>) of the subregion. More...
 
const casacore::Vector
< casacore::Double > & 
trc () const
 Get the top right corner (range <0-1,0-1>) of the subregion. More...
 

Detailed Description

Class which implements simple resampling for the WorldCanvas.

Prerequisite

Etymology

The name "WCSimpleResampleHandler" is a contraction of the terms "WorldCanvas," "Simple," "Resample" and "Handler."

Synopsis

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.

Motivation

The provision of raster images which are smooth in appearance.

Definition at line 60 of file WCSimpleResampleHandler.h.

Constructor & Destructor Documentation

casa::WCSimpleResampleHandler::WCSimpleResampleHandler ( )

Default constructor (Provides NEAREST)

casa::WCSimpleResampleHandler::WCSimpleResampleHandler ( casacore::Interpolate2D::Method  type = casacore::Interpolate2D::NEAREST)

Constructor.

casa::WCSimpleResampleHandler::WCSimpleResampleHandler ( const WCSimpleResampleHandler other)

Copy Constructor (copy semantics)

virtual casa::WCSimpleResampleHandler::~WCSimpleResampleHandler ( )
virtual

Destructor.

Member Function Documentation

virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::Bool > &  out,
const casacore::Matrix< casacore::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() ( casacore::Matrix< casacore::uChar > &  out,
const casacore::Matrix< casacore::uChar > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::Char > &  out,
const casacore::Matrix< casacore::Char > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::uShort > &  out,
const casacore::Matrix< casacore::uShort > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::Short > &  out,
const casacore::Matrix< casacore::Short > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::uInt > &  out,
const casacore::Matrix< casacore::uInt > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::Int > &  out,
const casacore::Matrix< casacore::Int > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::uLong > &  out,
const casacore::Matrix< casacore::uLong > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::Long > &  out,
const casacore::Matrix< casacore::Long > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::Float > &  out,
const casacore::Matrix< casacore::Float > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::Double > &  out,
const casacore::Matrix< casacore::Double > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::Complex > &  out,
const casacore::Matrix< casacore::Complex > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::DComplex > &  out,
const casacore::Matrix< casacore::DComplex > &  in 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::Float > &  out,
const casacore::Matrix< casacore::Float > &  in,
const casacore::Vector< casacore::Float > &  pixblc,
const casacore::Vector< casacore::Float > &  pixtrc,
const casacore::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() ( casacore::Matrix< casacore::Float > &  out,
casacore::Matrix< casacore::Bool > &  outMask,
const casacore::Matrix< casacore::Float > &  in,
const casacore::Matrix< casacore::Bool > &  inMask,
const casacore::Vector< casacore::Float > &  inblc,
const casacore::Vector< casacore::Float > &  intrc,
const casacore::Float  blank = 0.0 
)
virtual
virtual void casa::WCSimpleResampleHandler::operator() ( casacore::Matrix< casacore::Bool > &  out,
const casacore::Matrix< casacore::Bool > &  in,
const casacore::Vector< casacore::Float > &  pixblc,
const casacore::Vector< casacore::Float > &  pixtrc,
const casacore::Bool  blank = false 
)
virtual
WCSimpleResampleHandler& casa::WCSimpleResampleHandler::operator= ( const WCSimpleResampleHandler other)

Assignment operator (copy semantics)

void casa::WCSimpleResampleHandler::setInterpolationType ( casacore::Interpolate2D::Method  type)

Reset interpolation method.

Member Data Documentation

casacore::Interpolate2D casa::WCSimpleResampleHandler::itsInterp
private

Definition at line 126 of file WCSimpleResampleHandler.h.


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