casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SDAlgorithmMSMFS.h
Go to the documentation of this file.
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 
34 #include <casa/Arrays/Matrix.h>
39 #include <casa/Logging/LogSink.h>
40 #include <casa/System/PGPlotter.h>
41 
44 
45 namespace casa { //# NAMESPACE CASA - BEGIN
46 
47  /* Forware Declaration */
48  class SIMinorCycleController;
49 
50 
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 );
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 
72 
73  // void initializeSubImages( std::shared_ptr<SIImageStore> &imagestore, casacore::uInt subim);
74 
76 
77  // std::shared_ptr<SIImageStore> itsImages;
78 
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 
93 
95 
96  private:
98 
99  };
100 
101 } //# NAMESPACE CASA - END
102 
103 #endif
int Int
Definition: aipstype.h:50
casacore::Vector< casacore::Array< casacore::Float > > itsMatPsfs
std::shared_ptr&lt;SIImageStore&gt; itsImages;
void takeOneStep(casacore::Float loopgain, casacore::Int cycleNiter, casacore::Float cycleThreshold, casacore::Float &peakresidual, casacore::Float &modelflux, casacore::Int &iterdone)
Local functions to be overloaded by various algorithm deconvolvers.
casacore::Vector< casacore::Float > itsScaleSizes
virtual casacore::Long estimateRAM(const std::vector< int > &imsize)
returns the estimate of memory used in kilobytes (kB);
void initializeDeconvolver()
void initializeDeconvolver(casacore::Float &amp;peakresidual, casacore::Float &amp;modelflux); ...
casacore::Bool createMask(casacore::LatticeExpr< casacore::Bool > &lemask, casacore::ImageInterface< casacore::Float > &outimage)
void initializeSubImages(std::shared_ptr&lt;SIImageStore&gt; &amp;imagestore, casacore::uInt subim); ...
MultiTermMatrixCleaner itsMTCleaner
long Long
Definition: aipstype.h:52
void restore(std::shared_ptr< SIImageStore > imagestore)
void setMaskOptions(casacore::String maskstring);
casacore::Bool itsMTCsetup
casacore::Float itsSmallScaleBias
casacore::uInt getNTaylorTerms()
void queryDesiredShape(Bool &amp;onechan, Bool &amp;onepol, IPosition imshape); //, nImageFacets.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
float Float
Definition: aipstype.h:54
casacore::Vector< casacore::Array< casacore::Float > > itsMatResiduals
casacore::uInt itsNTerms
SDAlgorithmMSMFS(casacore::uInt nTaylorTerms, casacore::Vector< casacore::Float > scalesizes, casacore::Float smallscalebias)
Empty constructor.
casacore::Vector< casacore::Array< casacore::Float > > itsMatModels
Class to allow C++ expressions involving lattices.
Definition: LatticeExpr.h:142
casacore::Array< casacore::Float > itsMatMask
unsigned int uInt
Definition: aipstype.h:51