source: trunk/src/RasterEdgeDetector.h@ 3148

Last change on this file since 3148 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
RevLine 
[2613]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
[3106]28 casacore::Vector<casacore::uInt> detect() ;
[2613]29
30private:
31 // parse options
[3106]32 void parseOption( const casacore::Record &option ) ;
[2613]33
34 // edge detection algorithm for raster
35 void detectGap() ;
36 void selection() ;
[3106]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 ) ;
[2613]43
44 // gap list
[3106]45 casacore::Vector<casacore::uInt> gaplist_ ;
[2613]46
47 // options
[3106]48 casacore::Float fraction_ ;
49 casacore::Int npts_ ;
[2613]50} ;
51
52}
53#endif /* _RASTER_EDGE_DETECTOR_H_ */
Note: See TracBrowser for help on using the repository browser.