LCOV - code coverage report
Current view: top level - synthesis/ImagerObjects - SDAlgorithmMSMFS.h (source / functions) Hit Total Coverage
Test: ctest_coverage.info Lines: 0 1 0.0 %
Date: 2023-11-02 14:27:30 Functions: 0 1 0.0 %

          Line data    Source code
       1             : //# SDAlgorithmMSMFS.h: Definition for SDAlgorithmMSMFS
       2             : //# Copyright (C) 1996,1997,1998,1999,2000,2002
       3             : //# Associated Universities, Inc. Washington DC, USA.
       4             : //#
       5             : //# This library is free software; you can redistribute it and/or modify it
       6             : //# under the terms of the GNU Library General Public License as published by
       7             : //# the Free Software Foundation; either version 2 of the License, or (at your
       8             : //# option) any later version.
       9             : //#
      10             : //# This library is distributed in the hope that it will be useful, but WITHOUT
      11             : //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
      12             : //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
      13             : //# License for more details.
      14             : //#
      15             : //# You should have received a copy of the GNU Library General Public License
      16             : //# along with this library; if not, write to the Free Software Foundation,
      17             : //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
      18             : //#
      19             : //# Correspondence concerning AIPS++ should be adressed as follows:
      20             : //#        Internet email: aips2-request@nrao.edu.
      21             : //#        Postal address: AIPS++ Project Office
      22             : //#                        National Radio Astronomy Observatory
      23             : //#                        520 Edgemont Road
      24             : //#                        Charlottesville, VA 22903-2475 USA
      25             : //#
      26             : //#
      27             : //# $Id$
      28             : 
      29             : #ifndef SYNTHESIS_SDALGORITHMMSMFS_H
      30             : #define SYNTHESIS_SDALGORITHMMSMFS_H
      31             : 
      32             : #include <casacore/ms/MeasurementSets/MeasurementSet.h>
      33             : #include <synthesis/MeasurementComponents/SkyModel.h>
      34             : #include <casacore/casa/Arrays/Matrix.h>
      35             : #include <casacore/images/Images/ImageInterface.h>
      36             : #include <casacore/images/Images/PagedImage.h>
      37             : #include <casacore/images/Images/TempImage.h>
      38             : #include <casacore/casa/Logging/LogMessage.h>
      39             : #include <casacore/casa/Logging/LogSink.h>
      40             : #include <casacore/casa/System/PGPlotter.h>
      41             : 
      42             : #include<synthesis/ImagerObjects/SDAlgorithmBase.h>
      43             : #include <synthesis/MeasurementEquations/MultiTermMatrixCleaner.h>
      44             : 
      45             : namespace casa { //# NAMESPACE CASA - BEGIN
      46             : 
      47             :   /* Forware Declaration */
      48             :   class SIMinorCycleController;
      49             : 
      50             : 
      51             :   class SDAlgorithmMSMFS : public SDAlgorithmBase 
      52             :   {
      53             :   public:
      54             :     
      55             :     // Empty constructor
      56             :     SDAlgorithmMSMFS(casacore::uInt nTaylorTerms, casacore::Vector<casacore::Float> scalesizes, casacore::Float smallscalebias);
      57             :     virtual  ~SDAlgorithmMSMFS();
      58             :     
      59             :     void restore( std::shared_ptr<SIImageStore> imagestore );
      60             :      ///returns the estimate of memory used in kilobytes (kB);
      61             :     virtual casacore::Long estimateRAM(const std::vector<int>& imsize);
      62             :   protected:
      63             :     
      64             :     // Local functions to be overloaded by various algorithm deconvolvers.
      65             :     void takeOneStep( casacore::Float loopgain, casacore::Int cycleNiter, casacore::Float cycleThreshold, casacore::Float &peakresidual, casacore::Float &modelflux, casacore::Int &iterdone );
      66             :     //    void initializeDeconvolver( casacore::Float &peakresidual, casacore::Float &modelflux );
      67             :     void initializeDeconvolver();
      68             :     void finalizeDeconvolver();
      69             :     //    void queryDesiredShape(Bool &onechan, Bool &onepol, IPosition imshape); // , nImageFacets.
      70             : 
      71           0 :     casacore::uInt getNTaylorTerms(){ return itsNTerms; };
      72             :     
      73             :     //    void initializeSubImages( std::shared_ptr<SIImageStore> &imagestore, casacore::uInt subim);
      74             : 
      75             :     casacore::Bool createMask(casacore::LatticeExpr<casacore::Bool> &lemask, casacore::ImageInterface<casacore::Float> &outimage);
      76             : 
      77             :     //    std::shared_ptr<SIImageStore> itsImages;
      78             : 
      79             :     casacore::Vector< casacore::Array<casacore::Float> > itsMatPsfs, itsMatResiduals, itsMatModels;
      80             :     casacore::Array<casacore::Float> itsMatMask;  // Make an array if we eventually use multi-term masks...
      81             : 
      82             :     /*    
      83             :     casacore::IPosition itsMaxPos;
      84             :     casacore::Float itsPeakResidual;
      85             :     casacore::Float itsModelFlux;
      86             : 
      87             :     casacore::Matrix<casacore::Float> itsMatMask;
      88             :     */
      89             : 
      90             :     casacore::uInt itsNTerms;
      91             :     casacore::Vector<casacore::Float> itsScaleSizes;
      92             :     casacore::Float itsSmallScaleBias;
      93             : 
      94             :     MultiTermMatrixCleaner itsMTCleaner;
      95             : 
      96             :   private:
      97             :     casacore::Bool itsMTCsetup; 
      98             : 
      99             :   };
     100             : 
     101             : } //# NAMESPACE CASA - END
     102             : 
     103             : #endif

Generated by: LCOV version 1.16