An abstract class for managing geo-referenced images.
More...
#include <GeoImage.h>
|
| GeoImage () |
|
| GeoImage (int pixelsize, int nbands) |
|
virtual | ~GeoImage () |
|
virtual int | Initialize (string path, std::vector< double > times)=0 |
|
virtual unsigned char * | GetImage (size_t ts, size_t &width, size_t &height)=0 |
|
virtual unsigned char * | GetImage (size_t ts, const double pcsExtentsReq[4], string proj4StringReq, size_t maxWidthReq, size_t maxHeightReq, double pcsExtentsImg[4], double geoCornersImg[8], string &proj4StringImg, size_t &width, size_t &height)=0 |
|
| MyBase () |
|
const string & | getClassName () const |
|
An abstract class for managing geo-referenced images.
- Author
- John Clyne
Definition at line 20 of file GeoImage.h.
◆ GeoImage() [1/2]
VAPoR::GeoImage::GeoImage |
( |
| ) |
|
◆ GeoImage() [2/2]
VAPoR::GeoImage::GeoImage |
( |
int |
pixelsize, |
|
|
int |
nbands |
|
) |
| |
- Parameters
-
[in] | pixelsize | Size, in bits, of returned pixel channel |
| [i] | nbands Number of channel in a returned image |
◆ ~GeoImage()
virtual VAPoR::GeoImage::~GeoImage |
( |
| ) |
|
|
virtual |
◆ CornerExtents()
int VAPoR::GeoImage::CornerExtents |
( |
const double |
srccoords[4], |
|
|
double |
dstcoords[4], |
|
|
string |
proj4src |
|
) |
| const |
|
protected |
◆ GetImage() [1/2]
virtual unsigned char * VAPoR::GeoImage::GetImage |
( |
size_t |
ts, |
|
|
const double |
pcsExtentsReq[4], |
|
|
string |
proj4StringReq, |
|
|
size_t |
maxWidthReq, |
|
|
size_t |
maxHeightReq, |
|
|
double |
pcsExtentsImg[4], |
|
|
double |
geoCornersImg[8], |
|
|
string & |
proj4StringImg, |
|
|
size_t & |
width, |
|
|
size_t & |
height |
|
) |
| |
|
pure virtual |
Fetch a georeferenced image
- Parameters
-
[in] | ts | time step |
[in] | pcsExtentsReq | A four-element array containing the extents (llx, lly, urx, ury) of the requested region in Projected Coordinates. |
[in] | proj4StringReq | The Proj4 string that maps lat-long coordinates into the PCS coordinates used in pcsExtentsReq . |
[in] | maxWidthReq | The requested maximum width in pixels of the returned image |
[in] | maxHeightReq | The requested maximum height in pixels of the returned image |
[out] | pcsExtentsImg | A four-element array containing the extents (llx, lly, urx, ury) of the returned image map in Projected Coordinates of the image. |
[out] | geoCornersImg | An eight-element array containing the corner points (llx, lly, ulx, uly, urx, ury, lrx, lry) of the returned image map in Geographic coordinates |
[out] | width | The actual width in pixels of the returned image |
[out] | height | The actual height in pixels of the returned image |
- Return values
-
image | Upon success at 2D texture with n channels (See GeoImage::GeoImage()) is returned. Memory for the returned image is managed by the class, and should not be freed. |
Implemented in VAPoR::GeoImageGeoTiff, and VAPoR::GeoImageTMS.
◆ GetImage() [2/2]
virtual unsigned char * VAPoR::GeoImage::GetImage |
( |
size_t |
ts, |
|
|
size_t & |
width, |
|
|
size_t & |
height |
|
) |
| |
|
pure virtual |
Fetch a non-georeferenced image
Return an image without any geo-referencing information.
- Parameters
-
[in] | ts | time step of image |
[out] | width | Width in pixels of returned image |
[out] | height | Height in pixels of returned image |
- Return values
-
image | Upon success at 2D texture with n channels (See GeoImage::GeoImage()) is returned. Memory for the returned image is managed by the class, and should not be freed. |
Implemented in VAPoR::GeoImageGeoTiff, and VAPoR::GeoImageTMS.
◆ Initialize()
virtual int VAPoR::GeoImage::Initialize |
( |
string |
path, |
|
|
std::vector< double > |
times |
|
) |
| |
|
pure virtual |
Initialize the class
- Parameters
-
[in] | path | Path to file or directory containing image database |
[in] | times | Times coordinate variable. If image database contains time-varying images the time stamps of the images will be compared against times and the best match will be returned |
- Return values
-
status | return -1 on failure |
◆ TiffClose()
void VAPoR::GeoImage::TiffClose |
( |
| ) |
|
|
protected |
◆ TiffGetHandle()
TIFF * VAPoR::GeoImage::TiffGetHandle |
( |
| ) |
const |
|
inlineprotected |
◆ TiffGetImageDimensions()
int VAPoR::GeoImage::TiffGetImageDimensions |
( |
int |
dirnum, |
|
|
size_t & |
width, |
|
|
size_t & |
height |
|
) |
| const |
|
protected |
◆ TiffOpen()
int VAPoR::GeoImage::TiffOpen |
( |
string |
path | ) |
|
|
protected |
◆ TiffReadImage()
int VAPoR::GeoImage::TiffReadImage |
( |
int |
dirnum, |
|
|
unsigned char * |
texture |
|
) |
| const |
|
protected |
◆ _nbands
int VAPoR::GeoImage::_nbands |
|
protected |
◆ _pixelsize
int VAPoR::GeoImage::_pixelsize |
|
protected |
The documentation for this class was generated from the following file: