#include <Pixel.h>
Public Types | |
typedef Pixel_base< T, V > | Pixel_type |
typedef T | coord_type |
typedef T | distance_type |
typedef V | value_type |
enum | unit_type { RADIANS, DEGREES } |
Public Member Functions | |
Pixel_base () | |
Pixel_base (const coord_type lat, const coord_type lon, const value_type &val, const unit_type unit=RADIANS) | |
bool | operator< (const Pixel_type &other) const |
bool | operator== (const Pixel_type &other) const |
coord_type | lat () const |
coord_type | lon () const |
value_type | val () const |
distance_type | distance (const Pixel_type &other) const |
void | get_neighbours (std::vector< Pixel_type > &neighbours, std::multiset< Pixel_type > &pixels, distance_type resolution, bool sorted=false) const |
Static Public Member Functions | |
coord_type | get_resolution () |
void | set_resolution (distance_type new_resolution) |
Static Public Attributes | |
const coord_type | DEFAULT_RESOLUTION = 1. |
const coord_type | R_EARTH = 6371.005076 |
const distance_type | DEG2RAD = M_PI/180. |
const distance_type | RAD2DEG = 180.*M_1_PI |
Private Attributes | |
coord_type | lat_ |
coord_type | lon_ |
value_type | val_ |
int | ilat |
int | ilon |
Static Private Attributes | |
distance_type | resolution = DEFAULT_RESOLUTION |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Pixel_type &pixel) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|