#include <RasterData.h>
§ 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
-
width | Number of columns |
height | Number of rows |
x | Column of top left corner |
y | Row 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
-
§ 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
-
§ ~RasterData()
agroeye::handlers::RasterData::~RasterData |
( |
| ) |
|
|
virtual |
§ calculate()
Calculates the value of given statistic attribute.
- Parameters
-
types | Type of statistic feature |
- Returns
- The computed value
§ 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
-
rasterData | Original raster Data |
x | X of top left corner relative to original data |
y | Y of top left corner realtive to original data |
width | Width of new fragment |
height | Height of new fragment |
- Returns
- Newly extracted fragment
§ getHeight()
size_t agroeye::handlers::RasterData::getHeight |
( |
| ) |
const |
|
inline |
Returns the width of read fragment
§ getMean()
double agroeye::handlers::RasterData::getMean |
( |
| ) |
const |
Calculates the mean value of read data
§ getStdDev()
double agroeye::handlers::RasterData::getStdDev |
( |
| ) |
const |
Calculates the standard deviation value of read data
§ getWidth()
size_t agroeye::handlers::RasterData::getWidth |
( |
| ) |
const |
|
inline |
Returns the row value of top left corner in whole raster units
§ getXPos()
size_t agroeye::handlers::RasterData::getXPos |
( |
| ) |
const |
|
inline |
Column number of top left corner Position of first pixel in.
§ getYPos()
size_t agroeye::handlers::RasterData::getYPos |
( |
| ) |
const |
|
inline |
Returns the column value of top left corner in whole raster units
§ 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
§ 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]
§ operator=() [2/2]
§ RasterBand
The documentation for this class was generated from the following files: