Last change
on this file since 2680 was
2613,
checked in by Takeshi Nakazato, 12 years ago
|
New Development: Yes
JIRA Issue: Yes CAS-2825
Ready for Test: No
Interface Changes: Yes
What Interface Changed: added new python module sd.edgemarker
Test Programs: not available
Put in Release Notes: Yes
Module(s): Module Names change impacts.
Description: Describe your changes here...
New python module edgemarker is available. The edgemarker is a tool to
detect edge of observed area and mark data near edge as OFF. It can be
used to calibrate OTF data without explicit OFF scan.
|
File size:
1.1 KB
|
Line | |
---|
1 | // |
---|
2 | // C++ Interface: RasterEdgeDetector |
---|
3 | // |
---|
4 | // Description: |
---|
5 | // |
---|
6 | // |
---|
7 | // Author: Takeshi Nakazato <takeshi.nakazato@nao.ac.jp>, (C) 2012 |
---|
8 | // |
---|
9 | // Copyright: See COPYING file that comes with this distribution |
---|
10 | // |
---|
11 | // |
---|
12 | #ifndef _RASTER_EDGE_DETECTOR_H_ |
---|
13 | #define _RASTER_EDGE_DETECTOR_H_ |
---|
14 | |
---|
15 | #include <casa/Arrays/Vector.h> |
---|
16 | #include <casa/Containers/Record.h> |
---|
17 | |
---|
18 | #include "EdgeDetector.h" |
---|
19 | |
---|
20 | namespace asap { |
---|
21 | |
---|
22 | class RasterEdgeDetector : public EdgeDetector |
---|
23 | { |
---|
24 | public: |
---|
25 | RasterEdgeDetector() ; |
---|
26 | virtual ~RasterEdgeDetector() ; |
---|
27 | |
---|
28 | casa::Vector<casa::uInt> detect() ; |
---|
29 | |
---|
30 | private: |
---|
31 | // parse options |
---|
32 | void parseOption( const casa::Record &option ) ; |
---|
33 | |
---|
34 | // edge detection algorithm for raster |
---|
35 | void detectGap() ; |
---|
36 | void selection() ; |
---|
37 | void selectionPerRow( casa::uInt &idx, |
---|
38 | const casa::uInt &start, |
---|
39 | const casa::uInt &end ) ; |
---|
40 | void extractRow( const casa::uInt &irow ) ; |
---|
41 | casa::uInt numOff( const casa::uInt &n ) ; |
---|
42 | casa::uInt optimumNumber( const casa::uInt &n ) ; |
---|
43 | |
---|
44 | // gap list |
---|
45 | casa::Vector<casa::uInt> gaplist_ ; |
---|
46 | |
---|
47 | // options |
---|
48 | casa::Float fraction_ ; |
---|
49 | casa::Int npts_ ; |
---|
50 | } ; |
---|
51 | |
---|
52 | } |
---|
53 | #endif /* _RASTER_EDGE_DETECTOR_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.