// // C++ Interface: RasterEdgeDetector // // Description: // // // Author: Takeshi Nakazato , (C) 2012 // // Copyright: See COPYING file that comes with this distribution // // #ifndef _RASTER_EDGE_DETECTOR_H_ #define _RASTER_EDGE_DETECTOR_H_ #include #include #include "EdgeDetector.h" namespace asap { class RasterEdgeDetector : public EdgeDetector { public: RasterEdgeDetector() ; virtual ~RasterEdgeDetector() ; casa::Vector detect() ; private: // parse options void parseOption( const casa::Record &option ) ; // edge detection algorithm for raster void detectGap() ; void selection() ; void selectionPerRow( casa::uInt &idx, const casa::uInt &start, const casa::uInt &end ) ; void extractRow( const casa::uInt &irow ) ; casa::uInt numOff( const casa::uInt &n ) ; casa::uInt optimumNumber( const casa::uInt &n ) ; // gap list casa::Vector gaplist_ ; // options casa::Float fraction_ ; casa::Int npts_ ; } ; } #endif /* _RASTER_EDGE_DETECTOR_H_ */