00001 /* $Id: ObitFitRegion.h,v 1.2 2007/08/31 17:24:48 bcotton Exp $ */ 00002 /*--------------------------------------------------------------------*/ 00003 /*; Copyright (C) 2006,2007 */ 00004 /*; Associated Universities, Inc. Washington DC, USA. */ 00005 /*; */ 00006 /*; This program is free software; you can redistribute it and/or */ 00007 /*; modify it under the terms of the GNU General Public License as */ 00008 /*; published by the Free Software Foundation; either version 2 of */ 00009 /*; the License, or (at your option) any later version. */ 00010 /*; */ 00011 /*; This program is distributed in the hope that it will be useful, */ 00012 /*; but WITHOUT ANY WARRANTY; without even the implied warranty of */ 00013 /*; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ 00014 /*; GNU General Public License for more details. */ 00015 /*; */ 00016 /*; You should have received a copy of the GNU General Public */ 00017 /*; License along with this program; if not, write to the Free */ 00018 /*; Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, */ 00019 /*; MA 02139, USA. */ 00020 /*; */ 00021 /*;Correspondence about this software should be addressed as follows: */ 00022 /*; Internet email: bcotton@nrao.edu. */ 00023 /*; Postal address: William Cotton */ 00024 /*; National Radio Astronomy Observatory */ 00025 /*; 520 Edgemont Road */ 00026 /*; Charlottesville, VA 22903-2475 USA */ 00027 /*--------------------------------------------------------------------*/ 00028 #ifndef OBITFITREGION_H 00029 #define OBITFITREGION_H 00030 00031 #include "Obit.h" 00032 #include "ObitErr.h" 00033 #include "ObitFitModel.h" 00034 00035 /*-------- Obit: Software for the recently deceased ------------------*/ 00054 /*--------------Class definitions-------------------------------------*/ 00056 typedef struct { 00057 #include "ObitFitRegionDef.h" /* this class definition */ 00058 } ObitFitRegion; 00059 00060 /*----------------- Macroes ---------------------------*/ 00066 #define ObitFitRegionUnref(in) ObitUnref (in) 00067 00073 #define ObitFitRegionRef(in) ObitRef (in) 00074 00081 #define ObitFitRegionIsA(in) ObitIsA (in, ObitFitRegionGetClass()) 00082 00083 /*---------------Public functions---------------------------*/ 00085 void ObitFitRegionClassInit (void); 00086 00088 ObitFitRegion* newObitFitRegion (gchar* name); 00089 00091 ObitFitRegion* 00092 ObitFitRegionCreate (gchar* name, gint corner[2], gint dim[2], 00093 gfloat peak, gfloat peakResid, gfloat RMSResid, 00094 gfloat fluxResid, gint nmodel, ObitFitModel **models); 00096 typedef ObitFitRegion* 00097 (*ObitFitRegionCreateFP) (gchar* name, gint corner[2], gint dim[2], 00098 gfloat peak, gfloat peakResid, gfloat RMSResid, 00099 gfloat fluxResid, gint nmodel, ObitFitModel **models); 00100 00102 gchar* ObitFitRegionName(gint indx); 00103 00105 gconstpointer ObitFitRegionGetClass (void); 00106 00108 ObitFitRegion* ObitFitRegionCopy (ObitFitRegion *in, ObitFitRegion *out, 00109 ObitErr *err); 00110 00112 void ObitFitRegionClone (ObitFitRegion *in, ObitFitRegion *out, ObitErr *err); 00113 00115 void ObitFitRegionResize (ObitFitRegion *in, gint nmodel); 00116 00118 void ObitFitRegionSubtract (ObitFitRegion* reg, ObitImage *image, ObitErr *err); 00119 /*----------- ClassInfo Structure -----------------------------------*/ 00125 typedef struct { 00126 #include "ObitFitRegionClassDef.h" 00127 } ObitFitRegionClassInfo; 00128 00129 #endif /* OBITFFITREGION_H */
1.3.9.1