WCSimpleResampleHandler.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef TRIALDISPLAY_WCSIMPLERESAMPLEHANDLER_H
00029 #define TRIALDISPLAY_WCSIMPLERESAMPLEHANDLER_H
00030
00031 #include <casa/aips.h>
00032 #include <display/DisplayCanvas/WCResampleHandler.h>
00033 #include <scimath/Mathematics/Interpolate2D.h>
00034
00035 namespace casa {
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060 class WCSimpleResampleHandler : public WCResampleHandler {
00061
00062 public:
00063
00064
00065 WCSimpleResampleHandler();
00066
00067
00068 WCSimpleResampleHandler(Interpolate2D::Method type=Interpolate2D::NEAREST);
00069
00070
00071 WCSimpleResampleHandler (const WCSimpleResampleHandler& other);
00072
00073
00074 WCSimpleResampleHandler& operator=(const WCSimpleResampleHandler& other);
00075
00076
00077 virtual ~WCSimpleResampleHandler();
00078
00079
00080 void setInterpolationType (Interpolate2D::Method type);
00081
00082
00083
00084
00085
00086
00087
00088 virtual void operator()(Matrix<Bool> & out, const Matrix<Bool> & in);
00089 virtual void operator()(Matrix<uChar> & out, const Matrix<uChar> & in);
00090 virtual void operator()(Matrix<Char> & out, const Matrix<Char> & in);
00091 virtual void operator()(Matrix<uShort> & out, const Matrix<uShort> & in);
00092 virtual void operator()(Matrix<Short> & out, const Matrix<Short> & in);
00093 virtual void operator()(Matrix<uInt> & out, const Matrix<uInt> & in);
00094 virtual void operator()(Matrix<Int> & out, const Matrix<Int> & in);
00095 virtual void operator()(Matrix<uLong> & out, const Matrix<uLong> & in);
00096 virtual void operator()(Matrix<Long> & out, const Matrix<Long> & in);
00097 virtual void operator()(Matrix<Float> & out, const Matrix<Float> & in);
00098 virtual void operator()(Matrix<Double> & out, const Matrix<Double> & in);
00099 virtual void operator()(Matrix<Complex> & out, const Matrix<Complex> & in);
00100 virtual void operator()(Matrix<DComplex> & out, const Matrix<DComplex> & in);
00101
00102
00103
00104
00105
00106
00107
00108
00109 virtual void operator()(Matrix<Float> &out, const Matrix<Float> &in,
00110 const Vector<Float> &pixblc,
00111 const Vector<Float> &pixtrc,
00112 const Float blank = 0.0);
00113 virtual void operator()(Matrix<Float> &out, Matrix<Bool>& outMask,
00114 const Matrix<Float> &in, const Matrix<Bool> &inMask,
00115 const Vector<Float> &inblc,
00116 const Vector<Float> &intrc,
00117 const Float blank = 0.0);
00118 virtual void operator()(Matrix<Bool> &out, const Matrix<Bool> &in,
00119 const Vector<Float> &pixblc,
00120 const Vector<Float> &pixtrc,
00121 const Bool blank = False);
00122
00123
00124
00125 private:
00126 Interpolate2D itsInterp;
00127 };
00128
00129
00130 }
00131
00132 #endif
00133