Agroeye  1.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
agroeye::handlers::RasterData Class Reference

#include <RasterData.h>

Collaboration diagram for agroeye::handlers::RasterData:

Public Member Functions

 RasterData (const size_t width, const size_t height, const size_t x=0, const size_t y=0)
 Constructor allocating memory. More...
 
 RasterData (const RasterData &other)
 Copy constructor. More...
 
 RasterData (RasterData &&other)
 Move constructor. More...
 
RasterDataoperator= (const RasterData &)
 
RasterDataoperator= (RasterData &&other)
 
virtual ~RasterData ()
 
size_t getXPos () const
 Column number of top left corner Position of first pixel in. More...
 
size_t getYPos () const
 
size_t getWidth () const
 
size_t getHeight () const
 
double & operator() (size_t x, size_t y)
 
const double & operator() (size_t x, size_t y) const
 
double getMean () const
 
double getStdDev () const
 
double calculate (agroeye::operations::StatisticsTypes types) const
 Calculates the value of given statistic attribute. More...
 

Static Public Member Functions

static RasterData extractPiece (const RasterData &rasterData, size_t x, size_t y, size_t width, size_t height)
 Extracts fragment of raster data creating new one. More...
 

Friends

class RasterBand
 

Constructor & Destructor Documentation

§ RasterData() [1/3]

agroeye::handlers::RasterData::RasterData ( const size_t  width,
const size_t  height,
const size_t  x = 0,
const size_t  y = 0 
)

Constructor allocating memory.

Constructor allocating memory of double type with size width * height

Parameters
widthNumber of columns
heightNumber of rows
xColumn of top left corner
yRow of top left corner

§ RasterData() [2/3]

agroeye::handlers::RasterData::RasterData ( const RasterData other)

Copy constructor.

Copies the data from one object into another. No resources are shared after

Parameters
otherRasterData to be copied

§ RasterData() [3/3]

agroeye::handlers::RasterData::RasterData ( RasterData &&  other)

Move constructor.

After that the source object is cleared and all resource are transferred to new object

Parameters
otherMooved object

§ ~RasterData()

agroeye::handlers::RasterData::~RasterData ( )
virtual
Here is the call graph for this function:

Member Function Documentation

§ calculate()

double agroeye::handlers::RasterData::calculate ( agroeye::operations::StatisticsTypes  types) const

Calculates the value of given statistic attribute.

Parameters
typesType of statistic feature
Returns
The computed value
Here is the call graph for this function:
Here is the caller graph for this function:

§ extractPiece()

RasterData agroeye::handlers::RasterData::extractPiece ( const RasterData rasterData,
size_t  x,
size_t  y,
size_t  width,
size_t  height 
)
static

Extracts fragment of raster data creating new one.

Parameters
rasterDataOriginal raster Data
xX of top left corner relative to original data
yY of top left corner realtive to original data
widthWidth of new fragment
heightHeight of new fragment
Returns
Newly extracted fragment
Here is the caller graph for this function:

§ getHeight()

size_t agroeye::handlers::RasterData::getHeight ( ) const
inline

Returns the width of read fragment

Here is the call graph for this function:
Here is the caller graph for this function:

§ getMean()

double agroeye::handlers::RasterData::getMean ( ) const

Calculates the mean value of read data

Here is the call graph for this function:
Here is the caller graph for this function:

§ getStdDev()

double agroeye::handlers::RasterData::getStdDev ( ) const

Calculates the standard deviation value of read data

Here is the call graph for this function:
Here is the caller graph for this function:

§ getWidth()

size_t agroeye::handlers::RasterData::getWidth ( ) const
inline

Returns the row value of top left corner in whole raster units

Here is the caller graph for this function:

§ getXPos()

size_t agroeye::handlers::RasterData::getXPos ( ) const
inline

Column number of top left corner Position of first pixel in.

Here is the caller graph for this function:

§ getYPos()

size_t agroeye::handlers::RasterData::getYPos ( ) const
inline

Returns the column value of top left corner in whole raster units

Here is the caller graph for this function:

§ operator()() [1/2]

double & agroeye::handlers::RasterData::operator() ( size_t  x,
size_t  y 
)

Returns the height of read fragment Returns the reference to pixel of given cooridnates

Here is the caller graph for this function:

§ operator()() [2/2]

const double & agroeye::handlers::RasterData::operator() ( size_t  x,
size_t  y 
) const

Returns the const reference to pixel of given cooridnates

§ operator=() [1/2]

RasterData & agroeye::handlers::RasterData::operator= ( const RasterData other)

§ operator=() [2/2]

RasterData & agroeye::handlers::RasterData::operator= ( RasterData &&  other)

Friends And Related Function Documentation

§ RasterBand

friend class RasterBand
friend

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