#include "Obit.h"
#include "ObitImageMosaic.h"
#include "ObitErr.h"
#include "ObitDef.h"
#include "ObitClassDef.h"
Go to the source code of this file.
Classes | |
| struct | ObitDConCleanWindow |
| ObitDConCleanWindow Class structure. More... | |
| struct | ObitDConCleanWindowClassInfo |
| ClassInfo Structure. More... | |
Defines | |
| #define | ObitDConCleanWindowUnref(in) ObitUnref (in) |
| Macro to unreference (and possibly destroy) an ObitDConCleanWindow returns a ObitDConCleanWindow*. | |
| #define | ObitDConCleanWindowRef(in) ObitRef (in) |
| Macro to reference (update reference count) an ObitDConCleanWindow. | |
| #define | ObitDConCleanWindowIsA(in) ObitIsA (in, ObitDConCleanWindowGetClass()) |
| Macro to determine if an object is the member of this or a derived class. | |
Typedefs | |
| typedef ObitDConCleanWindow *(* | ObitDConCleanWindowCreateFP )(gchar *name, ObitImageMosaic *mosaic, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef ObitDConCleanWindow *(* | ObitDConCleanWindowCreate1FP )(gchar *name, glong naxis[2], ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef gboolean(* | ObitDConCleanWindowInfoFP )(ObitDConCleanWindow *in, glong field, glong Id, ObitDConCleanWindowType *type, glong **window, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef glong(* | ObitDConCleanWindowSearchFP )(ObitDConCleanWindow *in, glong field, glong pixel[2], glong toler, gint *which, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef glong(* | ObitDConCleanWindowAddFP )(ObitDConCleanWindow *in, glong field, ObitDConCleanWindowType type, glong *window, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef void(* | ObitDConCleanWindowDelFP )(ObitDConCleanWindow *in, glong field, glong Id, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef void(* | ObitDConCleanWindowUpdateFP )(ObitDConCleanWindow *in, glong field, glong Id, ObitDConCleanWindowType type, glong *window, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef void(* | ObitDConCleanWindowOuterFP )(ObitDConCleanWindow *in, glong field, ObitDConCleanWindowType type, glong *window, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef gboolean(* | ObitDConCleanWindowImageFP )(ObitDConCleanWindow *in, glong field, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef gboolean(* | ObitDConCleanWindowRowFP )(ObitDConCleanWindow *in, glong field, glong row, gboolean **mask, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef gboolean(* | ObitDConCleanWindowInnerRowFP )(ObitDConCleanWindow *in, glong field, glong row, gboolean **mask, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef gboolean(* | ObitDConCleanWindowUnrowFP )(ObitDConCleanWindow *in, glong field, glong row, gboolean **mask, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef gboolean(* | ObitDConCleanWindowOuterRowFP )(ObitDConCleanWindow *in, glong field, glong row, gboolean **mask, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef glong(* | ObitDConCleanWindowSizeFP )(ObitDConCleanWindow *in, glong field, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef glong(* | ObitDConCleanWindowCountFP )(ObitDConCleanWindow *in, glong field, ObitDConCleanWindowType type, glong *window, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef gboolean(* | ObitDConCleanWindowAutoWindowFP )(ObitDConCleanWindow *in, glong field, ObitFArray *image, gfloat *PeakIn, glong *PeakInPos, gfloat *PeakOut, gfloat *RMS, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef void(* | ObitDConCleanWindowReplaceFieldFP )(ObitDConCleanWindow *in, glong ifield, ObitDConCleanWindow *out, glong ofield, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef glong(* | ObitDConCleanWindowAddFieldFP )(ObitDConCleanWindow *in, glong inaxes[2], ObitErr *err) |
| Typedef for definition of class pointer structure. | |
Enumerations | |
| enum | ObitDConCleanWindowType { OBIT_DConCleanWindow_rectangle = 0, OBIT_DConCleanWindow_round, OBIT_DConCleanWindow_unrectangle, OBIT_DConCleanWindow_unround } |
| enum for window types Should be coordinated with ObitErrorLevelString in ObitErr.c. More... | |
Functions | |
| void | ObitDConCleanWindowClassInit (void) |
| Public: Class initializer. | |
| ObitDConCleanWindow * | newObitDConCleanWindow (gchar *name) |
| Public: Default Constructor. | |
| ObitDConCleanWindow * | ObitDConCleanWindowCreate (gchar *name, ObitImageMosaic *mosaic, ObitErr *err) |
| Public: Create/initialize ObitDConCleanWindow structures. | |
| ObitDConCleanWindow * | ObitDConCleanWindowCreate1 (gchar *name, glong naxis[2], ObitErr *err) |
| Public: Create/initialize ObitDConCleanWindow structure with 1 field. | |
| gconstpointer | ObitDConCleanWindowGetClass (void) |
| Public: ClassInfo pointer. | |
| ObitDConCleanWindow * | ObitDConCleanWindowCopy (ObitDConCleanWindow *in, ObitDConCleanWindow *out, ObitErr *err) |
| Public: Copy (deep) constructor. | |
| void | ObitDConCleanWindowClone (ObitDConCleanWindow *in, ObitDConCleanWindow *out, ObitErr *err) |
| Public: Copy structure. | |
| gboolean | ObitDConCleanWindowInfo (ObitDConCleanWindow *in, glong field, glong Id, ObitDConCleanWindowType *type, glong **window, ObitErr *err) |
| Public: Ask window definition. | |
| glong | ObitDConCleanWindowSearch (ObitDConCleanWindow *in, glong field, glong pixel[2], glong toler, gint *which, ObitErr *err) |
| Public: Search for a window near a given pixel. | |
| glong | ObitDConCleanWindowAdd (ObitDConCleanWindow *in, glong field, ObitDConCleanWindowType type, glong *window, ObitErr *err) |
| Public: Add a new window definition. | |
| void | ObitDConCleanWindowDel (ObitDConCleanWindow *in, glong field, glong Id, ObitErr *err) |
| Public: Delete a window. | |
| void | ObitDConCleanWindowUpdate (ObitDConCleanWindow *in, glong field, glong Id, ObitDConCleanWindowType type, glong *window, ObitErr *err) |
| Public: Modify an existing window. | |
| void | ObitDConCleanWindowOuter (ObitDConCleanWindow *in, glong field, ObitDConCleanWindowType type, glong *window, ObitErr *err) |
| Public: Set outer window for a field. | |
| gboolean | ObitDConCleanWindowImage (ObitDConCleanWindow *in, glong field, ObitErr *err) |
| Public: Are there any valid pixels in this field's image? | |
| gboolean | ObitDConCleanWindowRow (ObitDConCleanWindow *in, glong field, glong row, gboolean **mask, ObitErr *err) |
| Public: Are there any valid pixels in a specified row within inner window? | |
| gboolean | ObitDConCleanWindowInnerRow (ObitDConCleanWindow *in, glong field, glong row, gboolean **mask, ObitErr *err) |
| Public: Are there any valid pixels in a specified row in positive boxes? | |
| gboolean | ObitDConCleanWindowUnrow (ObitDConCleanWindow *in, glong field, glong row, gboolean **mask, ObitErr *err) |
| Public: Are there any valid pixels in a specified row in unboxes? | |
| gboolean | ObitDConCleanWindowOuterRow (ObitDConCleanWindow *in, glong field, glong row, gboolean **mask, ObitErr *err) |
| Public: Are there any valid pixels in a specified row with outer window? | |
| glong | ObitDConCleanWindowSize (ObitDConCleanWindow *in, glong field, ObitErr *err) |
| Public: What is the maximum region covered in x or y? | |
| glong | ObitDConCleanWindowCount (ObitDConCleanWindow *in, glong field, ObitErr *err) |
| Public: How many pixels are selected. | |
| gboolean | ObitDConCleanWindowAutoWindow (ObitDConCleanWindow *in, glong field, ObitFArray *image, gboolean doAbs, gfloat *PeakIn, glong *PeakInPos, gfloat *PeakOut, gfloat *RMS, ObitErr *err) |
| Public: find values needed for autoWindow. | |
| void | ObitDConCleanWindowReplaceField (ObitDConCleanWindow *in, glong ifield, ObitDConCleanWindow *out, glong ofield, ObitErr *err) |
| Public: Replace all windows for a given field with those from another window. | |
| glong | ObitDConCleanWindowAddField (ObitDConCleanWindow *in, glong inaxes[2], ObitErr *err) |
| Public: Add a field to a window object. | |
This class is derived from the Obit class.
This class contains specifications of which pixels in the images of an ObitImageMosaic are candidates for a CLEAN component. The current implementation uses a GList for each field so that the number of windows is arbitrary. However, this should be transparent outside the class. Each field in an ImageMosaic has two potential sets of CLEAN windows, the traditional "inner" window with an arbitrary number of components and an "outer", single window which sets the region in which the autoWindow feature is allowed to place windows. "Unwindows" are inner windows in which CLEANing is NOT allowed.
A copy of a pointer to an ObitDConCleanWindow should always be made using the ObitDConCleanWindowRef function which updates the reference count in the object. Then whenever freeing an ObitDConCleanWindow or changing a pointer, the function ObitDConCleanWindowUnref will decrement the reference count and destroy the object when the reference count hits 0. There is no explicit destructor.
The contents can be modified using the ObitDConCleanWindowAdd and ObitDConCleanWindowUpdate functions. The presence of valid pixels in an image is indicated by ObitDConCleanWindowImage and in a row by ObitDConCleanWindowRow this also computes a mask for the row indicating valid pixels.
This class supports the autoWindow facility and has different behavior when the autoWindow member is TRUE or FALSE. If TRUE then if no inner window is specified then all pixels are invalid. If FALSE then the default is that all pixels are selected.
|
|
Macro to determine if an object is the member of this or a derived class. Returns TRUE if a member, else FALSE in = object to reference |
|
|
Macro to reference (update reference count) an ObitDConCleanWindow. returns a ObitDConCleanWindow*. in = object to reference |
|
|
Macro to unreference (and possibly destroy) an ObitDConCleanWindow returns a ObitDConCleanWindow*. in = object to unreference |
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
enum for window types Should be coordinated with ObitErrorLevelString in ObitErr.c.
|
|
|
Public: Default Constructor. Initializes class if needed on first call.
|
|
||||||||||||||||||||||||
|
Public: Add a new window definition.
|
|
||||||||||||||||
|
Public: Add a field to a window object.
|
|
||||||||||||||||||||||||||||||||||||||||
|
Public: find values needed for autoWindow. If the peak in the image is > n*RMS and occurs inside of the outer window but outside the previous inner window, a new round box is added at that position. n=4 for small boxes, 3 large. The added window is round and of a size where the structure function about the center drops to 10% or 3 sigma whichever is less (max=20)
|
|
|
Public: Class initializer.
|
|
||||||||||||||||
|
Public: Copy structure.
|
|
||||||||||||||||
|
Public: Copy (deep) constructor.
|
|
||||||||||||||||
|
Public: How many pixels are selected.
|
|
||||||||||||||||
|
Public: Create/initialize ObitDConCleanWindow structures.
|
|
||||||||||||||||
|
Public: Create/initialize ObitDConCleanWindow structure with 1 field.
|
|
||||||||||||||||||||
|
Public: Delete a window.
|
|
|
Public: ClassInfo pointer.
|
|
||||||||||||||||
|
Public: Are there any valid pixels in this field's image?
|
|
||||||||||||||||||||||||||||
|
Public: Ask window definition.
|
|
||||||||||||||||||||||||
|
Public: Are there any valid pixels in a specified row in positive boxes? If there are no windows and autoWindow is not selected, then all pixels are selected.
|
|
||||||||||||||||||||||||
|
Public: Set outer window for a field. Window types are:
|
|
||||||||||||||||||||||||
|
Public: Are there any valid pixels in a specified row with outer window? Unwindows not supported.
|
|
||||||||||||||||||||||||
|
Public: Replace all windows for a given field with those from another window. Naxis must correspond between windows
|
|
||||||||||||||||||||||||
|
Public: Are there any valid pixels in a specified row within inner window? If there are no windows and autoWindow is selected then no pixels are selected. If there are no windows and autoWindow is not selected, then all pixels are selected.
|
|
||||||||||||||||||||||||||||
|
Public: Search for a window near a given pixel. Returns first found meeting criteria
|
|
||||||||||||||||
|
Public: What is the maximum region covered in x or y?
|
|
||||||||||||||||||||||||
|
Public: Are there any valid pixels in a specified row in unboxes?
|
|
||||||||||||||||||||||||||||
|
Public: Modify an existing window.
|
1.3.9.1