5#include <WXP/DateVal.h>
7#include <WXP/DomainVal.h>
8#include <WXP/EarthPoint.h>
9#include <WXP/FloatArray.h>
10#include <WXP/GeomBox.h>
11#include <WXP/GridPoint.h>
12#include <WXP/ImageColor.h>
16#include <WXP/String.h>
35 unsigned int red_mask;
36 unsigned int grn_mask;
37 unsigned int blu_mask;
57 int copy(
Image &image );
58 int copyInfo(
Image &image );
59 int copyData(
Image &image );
61 int set(
int rwidth,
int rheight,
int rdepth );
70 int setSource(
int val );
71 int setType(
int val );
72 int setDate(
int secs );
74 int setDate(
Date &d );
75 int getDate(
Date &rdate );
77 int setDatim(
const char *str );
78 int setDatim(
String &str );
80 int setInfo(
const char *str );
81 int setInfo(
String &str );
84 int setDomain(
Domain &dom );
87 int getDomain(
Domain &dom );
89 inline float getPLat(){
return domain.
getPLat(); };
90 inline float getPLon(){
return domain.
getPLon(); };
91 inline int getWidth(){
return width; };
92 inline int getHeight(){
return height; };
93 inline int getDepth(){
return depth; };
94 inline int getBytes(){
return bytes_line*height; };
95 inline int getBytesLine(){
return bytes_line; };
96 inline int getColorType(){
return color_type; };
97 inline int getNumColors(){
return num_colors; };
98 float getRed(
int ind );
99 float getGrn(
int ind );
100 float getBlu(
int ind );
101 int setWidth(
int val );
102 int setHeight(
int val );
103 int setDepth(
int val );
104 int setBitsPixel(
int val );
105 int setBytesLine(
int val );
107 int setColorType(
int val );
108 int setByteOrder(
int val );
109 int setRedMask(
unsigned long );
110 inline unsigned int getRedMask(){
return red_mask; };
111 int setGrnMask(
unsigned long );
112 inline unsigned int getGrnMask(){
return grn_mask; };
113 int setBluMask(
unsigned long );
114 inline unsigned int getBluMask(){
return blu_mask; };
115 int setRed(
int ind,
float val );
116 int setGrn(
int ind,
float val );
117 int setBlu(
int ind,
float val );
118 int setColor(
int ind,
float r,
float g,
float b );
119 int setColor(
int ind, RGB &rgb );
120 int setRGB(
int ind, RGB &rgb );
121 int getRGB(
int ind, RGB &rgb );
122 int setTransColor(
int clr );
123 inline bool hasTransColor(){
return trans_color != -1; };
124 inline int getTransColor(){
return trans_color; };
126 int getColorVal(
int ind );
128 inline int setCutBase(
int val ){ cutbase = val;
return 1; };
129 int setCutoff(
int ind,
int val );
130 int setCutoff(
char *str );
131 inline bool hasCutoff(){
return cutoff[0] !=
Const::MISS; };
132 inline int getCutBase(){
return cutbase; };
133 inline int getCutoff(
int i){
return cutoff[i+1]; };
134 inline int getNumCut(){
return numcut; };
140 int printData( EarthPoint &ept );
142 int getVal(
int x,
int y );
143 bool isPixelTrans(
int x,
int y );
144 int getRGB(
int x,
int y, RGB &rgb );
145 int getRow(
int row,
unsigned char *odata );
146 inline const unsigned char *getData(){
return data; };
152 inline bool hasValues(){
return values != NULL; };
153 int setValue(
int ind,
float val );
154 int setValues( FloatArray &array );
155 float getValue(
int ind );
156 int getIndex(
float val );
157 float getValue(
int x,
int y );
158 float getValue(
float x,
float y );
159 float getValue( Point &pt );
160 float getValue( GridPoint &gpt );
161 float getValue( EarthPoint &ept );
162 int getVal( EarthPoint &ept );
163 int setPixel(
int x,
int y,
int val );
165 int setPixel( GridPoint gpt,
int val );
166 int setValue(
int x,
int y,
float val );
168 inline int getProj(){
return domain.
getProj(); };
169 int tran( EarthPoint ept, Point &pt );
170 int tran( Point pt, EarthPoint &ept );
171 int tran( GridPoint gpt, Point &pt );
172 int tran( Point pt, GridPoint &gpt );
173 int tran( EarthPoint ept, GridPoint &gpt );
174 int tran( GridPoint gpt, EarthPoint &ept );
177 static int copyInfo(
Image &image1,
const Image &image2 );
178 static int copyData(
Image &image1,
const Image &image2 );
179 static int copy(
Image &image1,
const Image &image2 );
181 friend class ImageMath;
185 enum Query { ALL, INQ };
186 enum Type { UNK, IMG, GINI, AREA };
187 enum ByteOrder { LSB, MSB };
188 enum ColorType { TRUECOL, INDEX, VALUE };
static const int MISS
Definition Const.h:7
This class stores date and time information.
Definition Date.h:8
This class stores and manipulates domain data.
Definition Domain.h:19
float getPLon()
Definition Domain.h:64
int getProj()
Definition Domain.h:60
float getPLat()
Definition Domain.h:62
This class defines an image.
Definition Image.h:19
~Image()
Definition Image.cc:113
int getRow(int row, unsigned char *odata)
Definition Image.cc:734
int setGrn(int ind, float val)
Definition Image.cc:492
int set(int rwidth, int rheight, int rdepth)
Definition Image.cc:219
int setBlu(int ind, float val)
Definition Image.cc:503
float getDx()
Definition Image.cc:1102
int hasColors()
Definition Image.h:69
int allocColors(int num)
Definition Image.cc:293
int setRed(int ind, float val)
Definition Image.cc:481
int getVal(int x, int y)
Definition Image.cc:641
Image()
Definition Image.cc:84
Rect getLimits()
Definition Image.cc:1040
int allocData()
Definition Image.cc:260
int tran(EarthPoint ept, Point &pt)
Definition Image.cc:1049
int setColorVal(int ind, int val)
Definition Image.cc:530
bool validData()
Definition Image.cc:274
int setPixAve(bool val)
Definition Image.cc:550
int print()
Definition Image.cc:1109
int setPixel(int x, int y, int val)
Definition Image.cc:966
int getPixel(int x, int y)
Definition Image.cc:586
Image operator=(const Image &image)
Definition Image.cc:104
int init()
Definition Image.cc:28
int clearData()
Definition Image.cc:281
This is a variable length string class.
Definition String.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct defines basic date values.
Definition DateVal.h:5
This struct defines basic domain parameters.
Definition DomainVal.h:5
This struct sets up color values for an image.
Definition ImageColor.h:5