WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WXP::ImagePiece Class Reference

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)
 

Detailed Description

This class pieces a set of image together into a larger image.

Author
Dan Vietor

Member Function Documentation

◆ add() [1/2]

int ImagePiece::add ( Image image,
Image simage 
)

Adds an image to an existing image. Data from sample image remapped and interpolated to new image

Return values
imageOutput image
Parameters
simageA 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().

◆ add() [2/2]

int ImagePiece::add ( Image image,
int  x,
int  y,
Image simage 
)

Adds data to output image

Return values
imageOutput image
Parameters
xX location of specific image
yY location of specific image
simageInput image to add to output image

References WXP::Image::getPixel(), WXP::DomainVal::nx, WXP::DomainVal::ny, and WXP::Image::setPixel().

◆ set()

int ImagePiece::set ( Image image,
int  rnx,
int  rny,
Image simage 
)

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.

Return values
imageOutput image
Parameters
rnxNumber of image to piece in X direction
rnyNumber of image to piece in Y direction
simageA 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.


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