WXP::ImagePiece Class Reference

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

#include "../include/ImagePiece.h"

List of all members.

Public Member Functions

int set (Image &image, int rnx, int rny, Image &simage)
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

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

Adds data to output image

Return values:
image Output image
Parameters:
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().

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:
image Output image
Parameters:
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.


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

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1