Last change
on this file since 3138 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.3 KB
|
Rev | Line | |
---|
[2613] | 1 | //
|
---|
| 2 | // C++ Interface: EdgeDetector
|
---|
| 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 _EDGE_DETECTOR_H_
|
---|
| 13 | #define _EDGE_DETECTOR_H_
|
---|
| 14 |
|
---|
| 15 | #include <casa/Arrays/Matrix.h>
|
---|
| 16 | #include <casa/Arrays/Vector.h>
|
---|
| 17 | #include <casa/Containers/Record.h>
|
---|
| 18 | #include <casa/Logging/LogIO.h>
|
---|
| 19 |
|
---|
| 20 | namespace asap {
|
---|
| 21 |
|
---|
| 22 | class EdgeDetector
|
---|
| 23 | {
|
---|
| 24 | public:
|
---|
| 25 | EdgeDetector() ;
|
---|
| 26 | virtual ~EdgeDetector() ;
|
---|
| 27 |
|
---|
[3106] | 28 | void setDirection( const casacore::Matrix<casacore::Double> &dir ) ;
|
---|
| 29 | void setTime( const casacore::Vector<casacore::Double> &t ) ;
|
---|
| 30 | void setOption( const casacore::Record &option ) ;
|
---|
| 31 | virtual casacore::Vector<casacore::uInt> detect() = 0 ;
|
---|
[2613] | 32 |
|
---|
| 33 | protected:
|
---|
[3106] | 34 | virtual void parseOption( const casacore::Record &option ) = 0 ;
|
---|
| 35 | casacore::Vector<casacore::uInt> vectorFromTempStorage( const casacore::uInt &n ) ;
|
---|
[2613] | 36 | void initDetect() ;
|
---|
| 37 |
|
---|
| 38 | // input data
|
---|
[3106] | 39 | casacore::Matrix<casacore::Double> dir_ ;
|
---|
| 40 | casacore::Vector<casacore::Double> time_ ;
|
---|
[2613] | 41 |
|
---|
| 42 | // output data: list of indexes for OFF positions
|
---|
[3106] | 43 | casacore::Vector<casacore::uInt> off_ ;
|
---|
[2613] | 44 |
|
---|
| 45 | // temporary memory storage
|
---|
[3106] | 46 | casacore::Block<casacore::uInt> tempuInt_ ;
|
---|
| 47 | casacore::IPosition tempIP_ ;
|
---|
[2613] | 48 |
|
---|
| 49 | // logging
|
---|
[3106] | 50 | casacore::LogIO os_ ;
|
---|
[2613] | 51 |
|
---|
| 52 | private:
|
---|
[3106] | 53 | void resizeTempArea( const casacore::uInt &n ) ;
|
---|
[2613] | 54 | } ;
|
---|
| 55 |
|
---|
| 56 | }
|
---|
| 57 | #endif /* _EDGE_DETECTOR_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.