WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
ImageMath.h
1#ifndef _WINC_IMAGEMATH
2#define _WINC_IMAGEMATH
3
4#include <WXP/ColorMap.h>
5#include <WXP/EarthRange.h>
6#include <WXP/Grid.h>
7#include <WXP/Image.h>
8
9namespace WXP {
10 class ImageMath {
11 public:
12 static int clip( Image &image, GeomBox &box, Image &new_image );
13 static int clip( Image &image, EarthRange &range, Image &new_image );
14 static int clip( Image &image, EarthPoint &ept, int width, int height, Image &new_image );
15 static int scale( Image &image, float scale, Image &new_image );
16 static int remap( Image &image, Domain &domain, Image &new_image );
17 static int toIndex( Image &image, int rdepth, Image &new_image );
18 static int toIndex( Image &image, Image &new_image );
19 static int toIndex( Image &image, ColorMap &cmap, Image &new_image );
20 static int toGray( Image &image, Image &new_image );
21 static int toTrueColor( Image &image, int rdepth, Image &new_image );
22 static int toTrueColor( Image &image, Image &new_image );
23 static int compressColor( Image &image );
24 static int merge( Image &oimg, Image &img );
25 static int blank( Image &img, EarthPoint &ept1, EarthPoint &ept2 );
26 static int blank( Image &img, float angle );
27 static int maskLesser( Image &oimg, Image &img, Grid &grid );
28 static int maskGreater( Image &oimg, Image &img, Grid &grid );
29 };
30}
31#endif
This class defines a specific color map. This is a mapping between color indices, color names and RGB...
Definition ColorMap.h:8
This class stores and manipulates domain data.
Definition Domain.h:19
This structure sets size and location of a geometric box.
Definition GeomBox.h:5
This class defines a grid.
Definition Grid.h:20
This class manipulates images.
Definition ImageMath.h:10
static int maskLesser(Image &oimg, Image &img, Grid &grid)
Definition ImageMath.cc:589
static int scale(Image &image, float scale, Image &new_image)
Definition ImageMath.cc:389
static int compressColor(Image &image)
Definition ImageMath.cc:260
static int blank(Image &img, EarthPoint &ept1, EarthPoint &ept2)
Definition ImageMath.cc:527
static int toTrueColor(Image &image, int rdepth, Image &new_image)
Definition ImageMath.cc:198
static int toIndex(Image &image, int rdepth, Image &new_image)
Definition ImageMath.cc:28
static int clip(Image &image, GeomBox &box, Image &new_image)
Definition ImageMath.cc:316
static int toGray(Image &image, Image &new_image)
Definition ImageMath.cc:153
static int remap(Image &image, Domain &domain, Image &new_image)
Definition ImageMath.cc:437
static int maskGreater(Image &oimg, Image &img, Grid &grid)
Definition ImageMath.cc:621
static int merge(Image &oimg, Image &img)
Definition ImageMath.cc:485
This class defines an image.
Definition Image.h:19
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct defines earth point values (lat, lon, elev)
Definition EarthPoint.h:5
This struct defines a range of latitudes and longitudes.
Definition EarthRange.h:5