Agroeye  1.0
SegmentationChessboard.h
Go to the documentation of this file.
1 #ifndef SEGMENTATIONCHESSBOARD_H
2 #define SEGMENTATIONCHESSBOARD_H
3 
4 #include <cmath>
5 #include "SegmentationGeneral.h"
6 
7 namespace agroeye {
8 namespace operations {
9 
15 public:
23 
31  ChessboardSegmentation(Raster raster, Parameters parameters, CallbackFunction callbackFunc);
33 
38  int start();
39 
40  static const size_t MAX_SIDE {256};
42 protected:
48 
57 
58 
59  size_t approximateSegments() const;
60 
61 private:
62  void checkParameters();
63  void prepareDb();
64 };
65 
66 
67 } // namespace operation
68 } // namespace agroeye
69 
70 #endif
Raster raster
Definition: SegmentationGeneral.h:48
RasterDataGroup getInitialSegment()
Get first segment of image.
Definition: SegmentationChessboard.cpp:87
ChessboardSegmentation(Raster raster, Parameters parameters)
Creates object segmenting the image.
Definition: SegmentationChessboard.cpp:6
Class encapsulating Raster file object.
Definition: Raster.h:32
Chessboard Segmentation.
Definition: SegmentationChessboard.h:14
Encapsulation of read data from a couple of bands from one RasterDataGroup Also provides convinient b...
Definition: RasterDataGroup.h:18
Definition: ContainerMath.h:11
Class encapsulating different segmentation parameters.
Definition: SegmentationParameters.h:29
RasterDataGroup getNextSegment(RasterDataGroup &rasterData)
Gets the next segment after given.
Definition: SegmentationChessboard.cpp:100
Object encapsulating general segmentation.
Definition: SegmentationGeneral.h:26
virtual ~ChessboardSegmentation()
Definition: SegmentationChessboard.h:32
std::function< void(double, ListCallbackTypes, std::string)> CallbackFunction
Definition: Callback.h:25
Parameters parameters
Definition: SegmentationGeneral.h:49
size_t approximateSegments() const
Definition: SegmentationChessboard.cpp:65
static const size_t MAX_SIDE
Definition: SegmentationChessboard.h:40
int start()
Starts the operation of segmenting image.
Definition: SegmentationChessboard.cpp:15