Agroeye  1.0
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
agroeye::operations::ChessboardSegmentation Class Reference

Chessboard Segmentation. More...

#include <SegmentationChessboard.h>

Inheritance diagram for agroeye::operations::ChessboardSegmentation:
Collaboration diagram for agroeye::operations::ChessboardSegmentation:

Public Member Functions

 ChessboardSegmentation (Raster raster, Parameters parameters)
 Creates object segmenting the image. More...
 
 ChessboardSegmentation (Raster raster, Parameters parameters, CallbackFunction callbackFunc)
 Creates object segmenting the image. More...
 
virtual ~ChessboardSegmentation ()
 
int start ()
 Starts the operation of segmenting image. More...
 
- Public Member Functions inherited from agroeye::operations::GeneralSegmentation
void setDestination (Spatialite db)
 Sets the output location of segementation. More...
 
virtual ~GeneralSegmentation ()
 

Static Public Attributes

static const size_t MAX_SIDE {256}
 

Protected Member Functions

RasterDataGroup getInitialSegment ()
 Get first segment of image. More...
 
RasterDataGroup getNextSegment (RasterDataGroup &rasterData)
 Gets the next segment after given. More...
 
size_t approximateSegments () const
 
- Protected Member Functions inherited from agroeye::operations::GeneralSegmentation
 GeneralSegmentation (Raster aRaster, Parameters aParameters, CallbackFunction aCallbackFunc)
 
void save (RasterDataGroup &rasterData, size_t idNo)
 Saves one iteration of segmentation into database. More...
 

Additional Inherited Members

- Protected Attributes inherited from agroeye::operations::GeneralSegmentation
Raster raster
 
Parameters parameters
 
CallbackFunction callbackFunction
 
Spatialite db
 
PreparedStatement insertStmt
 
SpatialitePolygon spatiaPolygon
 

Detailed Description

Chessboard Segmentation.

Constructor & Destructor Documentation

§ ChessboardSegmentation() [1/2]

agroeye::operations::ChessboardSegmentation::ChessboardSegmentation ( Raster  raster,
Parameters  parameters 
)

Creates object segmenting the image.

Parameters
raserSegmented image
parametersParameters of segmentation

§ ChessboardSegmentation() [2/2]

agroeye::operations::ChessboardSegmentation::ChessboardSegmentation ( Raster  raster,
Parameters  parameters,
CallbackFunction  callbackFunc 
)

Creates object segmenting the image.

Parameters
rasterSegmented image
parametersParameters of segmentation
callbackFuncCallback function reporting progress

§ ~ChessboardSegmentation()

virtual agroeye::operations::ChessboardSegmentation::~ChessboardSegmentation ( )
inlinevirtual
Here is the call graph for this function:

Member Function Documentation

§ approximateSegments()

size_t agroeye::operations::ChessboardSegmentation::approximateSegments ( ) const
protected
Here is the call graph for this function:
Here is the caller graph for this function:

§ getInitialSegment()

RasterDataGroup agroeye::operations::ChessboardSegmentation::getInitialSegment ( )
protected

Get first segment of image.

Returns
The initial segment
Here is the call graph for this function:
Here is the caller graph for this function:

§ getNextSegment()

RasterDataGroup agroeye::operations::ChessboardSegmentation::getNextSegment ( RasterDataGroup rasterData)
protected

Gets the next segment after given.

When end of raster is reached, an empty RasterDataGroup is returned

Parameters
rasterDataThe proceeding segment
Returns
The following segment
Here is the call graph for this function:
Here is the caller graph for this function:

§ start()

int agroeye::operations::ChessboardSegmentation::start ( )

Starts the operation of segmenting image.

Returns
Zero if succeeds
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

§ MAX_SIDE

const size_t agroeye::operations::ChessboardSegmentation::MAX_SIDE {256}
static

Maximum size of result square


The documentation for this class was generated from the following files: