//# Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003 //# Associated Universities, Inc. Washington DC, USA. //# //# This library is free software; you can redistribute it and/or modify it //# under the terms of the GNU Library General Public License as published by //# the Free Software Foundation; either version 2 of the License, or (at your //# option) any later version. //# //# This library is distributed in the hope that it will be useful, but WITHOUT //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public //# License for more details. //# //# You should have received a copy of the GNU Library General Public License //# along with this library; if not, write to the Free Software Foundation, //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. //# //# Correspondence concerning AIPS++ should be addressed as follows: //# Internet email: aips2-request@nrao.edu. //# Postal address: AIPS++ Project Office //# National Radio Astronomy Observatory //# 520 Edgemont Road //# Charlottesville, VA 22903-2475 USA //# #ifndef IMAGES_SEPIMAGECONVOLVERTASK_H #define IMAGES_SEPIMAGECONVOLVERTASK_H #include <imageanalysis/ImageAnalysis/ImageTask.h> #include <casacore/casa/aips.h> namespace casa { // <summary> // This class is the high level interface to image convolving // </summary> // <use visibility=export> // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos=""> // </reviewed> // <prerequisite> // <li> <linkto class="casacore::ImageInterface">casacore::ImageInterface</linkto> // <li> <linkto class="casacore::Convolver">casacore::Convolver</linkto> // </prerequisite> // <etymology> // This class is the high level interface to image convolving // </etymology> // <synopsis> // This class is the high level interface to image convolving // </synopsis> // <example> // <srcBlock> // </srcBlock> // </example> // <motivation> // Convolution is a standard image processing requirement. // </motivation> // <todo asof="2001/08/28"> // <li> // </todo> template <class T> class SepImageConvolverTask : public ImageTask<T> { public: const static casacore::String CLASS_NAME; SepImageConvolverTask() = delete; SepImageConvolverTask( const SPCIIT image, const casacore::Record *const ®ionPtr, const casacore::String& mask, const casacore::String& outname, const casacore::Bool overwrite ); SepImageConvolverTask(const SepImageConvolverTask<T> &other) = delete; ~SepImageConvolverTask() {} SepImageConvolverTask &operator=(const SepImageConvolverTask<T> &other) = delete; SPIIT convolve(); void setKernels(const casacore::Vector<casacore::String>& kernels) { _kernels.assign(kernels); } void setKernelWidths(const casacore::Vector<casacore::Quantity>& kernelwidths) { _kernelWidths.assign(kernelwidths); } void setScale(casacore::Double d) { _scale = d; } void setSmoothAxes(const casacore::Vector<casacore::Int>& axes) { _axes.assign(axes); } casacore::String getClass() const { return CLASS_NAME; } protected: CasacRegionManager::StokesControl _getStokesControl() const { return CasacRegionManager::USE_ALL_STOKES; } std::vector<casacore::Coordinate::Type> _getNecessaryCoordinates() const { return std::vector<casacore::Coordinate::Type>(); } inline casacore::Bool _supportsMultipleRegions() const {return true;} private: casacore::Vector<casacore::String> _kernels; casacore::Vector<casacore::Quantity> _kernelWidths; casacore::Double _scale = 0; casacore::Vector<casacore::Int> _axes; }; } #ifndef CASACORE_NO_AUTO_TEMPLATES #include <imageanalysis/ImageAnalysis/SepImageConvolverTask.tcc> #endif //# CASACORE_NO_AUTO_TEMPLATES #endif