//# MSCleanImageSkyModel.h: Definition for MSCleanImageSkyModel //# Copyright (C) 1996,1997,1998,1999,2000 //# 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 adressed 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 //# //# //# $Id$ #ifndef SYNTHESIS_MSCLEANIMAGESKYMODEL_H #define SYNTHESIS_MSCLEANIMAGESKYMODEL_H #include #include namespace casa { //# NAMESPACE CASA - BEGIN //forward class SkyEquation; // // casacore::MS Clean Image Sky Model: Image Sky Model implementing the casacore::MS Clean algorithm // // // // //
  • LatticeCleaner module //
  • ImageSkyModel module //
  • LinearModel module // // // // MSCleanImageSkyModel implements the casacore::MS Clean algorithm. // It is derived from SkyModel. // // // // The casacore::MS Clean is the Multi-Scale clean, collecting flux // in several different scale size Gaussian components. // It is highly effective in imaging extended structure // and results in residuals with excellent statistics. // // The casacore::MS Clean is implemented using the // LatticeCleaner // class. // // Masking is optionally performed using a mask image: only points // where the mask is non-zero are searched for Gaussian components. // This can cause some difficulty, as the different Gaussian scale // sizes will extend beyond the mask by different amounts. // If no mask is specified // all points in the inner quarter of the image are cleaned. // // // // See the example for SkyModel. // // // // // // //
      Improve the masking. // class MSCleanImageSkyModel : public CleanImageSkyModel { public: // Create a MSCleanImageSkyModel with nScales, we figure out what they are MSCleanImageSkyModel(const casacore::Int nscales, const casacore::Int stoplargenegatives=2, const casacore::Int stoppointmode=-1, const casacore::Float smallScaleBias=0.6); // Create a MSCleanImageSkyModel, you provide the scale sizes, IN PIXELS // for example: casacore::Vector scales(4); scales(0) = 0.0; scales(1) = 3.0; // scales(2) = 10.0; scales(3) = 30.0; MSCleanImageSkyModel(const casacore::Vector& useScaleSize, const casacore::Int stoplargenegatives=2, const casacore::Int stoppointmode=-1, const casacore::Float smallScaleBias=0.6); // destructor ~MSCleanImageSkyModel(); // Solve for this SkyModel virtual casacore::Bool solve (SkyEquation& me); private: enum Scale_Method{NSCALES, USERVECTOR}; Scale_Method method_p; casacore::Int nscales_p; casacore::Vector userScaleSizes_p; // parameter to stop the cycle (for the first N cycles) if you get a // negative on the largest scale; // To disable, use < 0 casacore::Int stopLargeNegatives_p; // parameter which stops the cycle if you hit the smallest scale this many // consecutive times; if < 0, don't stop for this casacore::Int stopPointMode_p; casacore::Float smallScaleBias_p; //casacore::LatticeCleanProgress *progress_p; }; } //# NAMESPACE CASA - END #endif