source: trunk/src/RasterEdgeDetector.h@ 3145

Last change on this file since 3145 was 3106, checked in by Takeshi Nakazato, 8 years ago

New Development: No

JIRA Issue: No

Ready for Test: Yes/No

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...


Check-in asap modifications from Jim regarding casacore namespace conversion.

File size: 1.2 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
20namespace asap {
21
22class RasterEdgeDetector : public EdgeDetector
23{
24public:
25 RasterEdgeDetector() ;
26 virtual ~RasterEdgeDetector() ;
27
28 casacore::Vector<casacore::uInt> detect() ;
29
30private:
31 // parse options
32 void parseOption( const casacore::Record &option ) ;
33
34 // edge detection algorithm for raster
35 void detectGap() ;
36 void selection() ;
37 void selectionPerRow( casacore::uInt &idx,
38 const casacore::uInt &start,
39 const casacore::uInt &end ) ;
40 void extractRow( const casacore::uInt &irow ) ;
41 casacore::uInt numOff( const casacore::uInt &n ) ;
42 casacore::uInt optimumNumber( const casacore::uInt &n ) ;
43
44 // gap list
45 casacore::Vector<casacore::uInt> gaplist_ ;
46
47 // options
48 casacore::Float fraction_ ;
49 casacore::Int npts_ ;
50} ;
51
52}
53#endif /* _RASTER_EDGE_DETECTOR_H_ */
Note: See TracBrowser for help on using the repository browser.