WXP C++ Library Version 6.74.9
|
This class pieces a set of image together into a larger image. More...
#include "../include/ImagePiece.h"
Public Member Functions | |
int | init () |
int | set (Image &image, int rnx, int rny, Image &simage) |
int | setPixAve (int val) |
int | add (Image &image, int x, int y, Image &simage) |
int | add (Image &image, Image &simage) |
This class pieces a set of image together into a larger image.
Adds an image to an existing image. Data from sample image remapped and interpolated to new image
image | Output image |
simage | A sample input image to reference |
References WXP::Image::getPixel(), WXP::EarthPoint::lat, WXP::Const::MISS, WXP::Wxp::outMessage(), WXP::GridPoint::set(), WXP::Image::setPixel(), and WXP::Image::tran().
Adds data to output image
image | Output image |
x | X location of specific image |
y | Y location of specific image |
simage | Input image to add to output image |
References WXP::Image::getPixel(), WXP::DomainVal::nx, WXP::DomainVal::ny, and WXP::Image::setPixel().
Sets up output image. Input is the upper left image so that domain size and location can be determined. This assumes all images are the same size.
image | Output image |
rnx | Number of image to piece in X direction |
rny | Number of image to piece in Y direction |
simage | A sample input image to reference |
References WXP::Image::allocData(), WXP::DomainVal::clat, WXP::DomainVal::clon, WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::DomainVal::nx, WXP::DomainVal::ny, WXP::Domain::set(), WXP::Image::setPixel(), WXP::Domain::tran(), and WXP::Domain::UL.