casa
5.7.0-16
|
Base class for resampling data pixels to World/PixelCanvas pixels. More...
#include <WCResampleHandler.h>
Protected Member Functions | |
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... | |
Private Attributes | |
casacore::Vector < casacore::Double > | itsBlc |
Current subregion. More... | |
casacore::Vector < casacore::Double > | itsTrc |
Base class for resampling data pixels to World/PixelCanvas pixels.
The name of WCResampleHandler comes from WorldCanvas + Resample + Handler
WCResampleHandler is the tool used to extract a rectangular subregion of an image for purposes of display. This class is abstract and defines the interface the WorldCanvas sees.
When the resample handler fires, it extracts a rectangular subregion of its input matrix and stores it in its output matrix. If the default subregion is the whole image and the output image is the same size as the input image, then the output image is a copy of the input image.
If not, the subregion of the image is resampled to fit the output matrix size.
Objectify the concept of resampling to allow programmers to write their own, more complicated versions and register them with the WorldCanvas.
Definition at line 77 of file WCResampleHandler.h.
casa::WCResampleHandler::WCResampleHandler | ( | ) |
(Required) default constructor.
casa::WCResampleHandler::WCResampleHandler | ( | const WCResampleHandler & | other | ) |
Copy Constructor (copy semantics)
|
virtual |
Destructor.
|
inlineprotected |
Get the bottom left corner (range <0-1,0-1>) of the subregion.
Definition at line 159 of file WCResampleHandler.h.
References itsBlc.
Referenced by setSubregion().
|
inline |
Definition at line 148 of file WCResampleHandler.h.
|
pure 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.
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
These functions resample the input matrix to the output.
inblc is the location 'within' the input matrix for the bottom-left pixel of the output (sim. for intrc); blank is the output value where none of the input data is useful. The output matrix must be presized to the required size.
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
|
pure virtual |
Implemented in casa::WCSimpleResampleHandler.
WCResampleHandler& casa::WCResampleHandler::operator= | ( | const WCResampleHandler & | other | ) |
Assignment operator (copy semantics)
|
inline |
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.
These parameters are interpreted according to the derived class.
Definition at line 143 of file WCResampleHandler.h.
|
inlineprotected |
Get the top right corner (range <0-1,0-1>) of the subregion.
Definition at line 164 of file WCResampleHandler.h.
References itsTrc.
Referenced by setSubregion().
|
private |
Current subregion.
Definition at line 171 of file WCResampleHandler.h.
Referenced by blc(), getSubregion(), and setSubregion().
|
private |
Definition at line 172 of file WCResampleHandler.h.
Referenced by getSubregion(), setSubregion(), and trc().