16 #define DEFAULT_PPMM 0 36 bool load(
const char* filename,
dword ppmm=0);
41 void draw(
float x=0,
float y=0,
42 float sx = 1.0f,
float sy = 1.0f)
const;
48 std::ostream&
print(std::ostream &os)
const 61 const char *filename);
65 float sx = 1.0f,
float sy = 1.0f);
67 float sx = 1.0f,
float sy = 1.0f);
96 for(std::vector<float>::iterator cv = mv.begin();
97 cv != mv.end(); cv++, cc++) {
98 *cv = (float)
data[cc].getPixel(x,y);
const std::string & getFilename() const
std::vector< ByteImage > data
static bool loadImage(std::vector< Image< byte > > &image, const char *filename)
float calcValue(int x, int y) const
const Point2D & getOrigin() const
static void drawImage(const std::vector< Image< byte > > &image, float x=0, float y=0, float sx=1.0f, float sy=1.0f)
float minval
overall minimum and maximum
void setHalveBeyondSize(dword hbs=0xffffffff)
const ByteImage & getImage(int index) const
PropVec & scalePropVec(PropVec &prop, float scale)
bool load(const char *filename, dword ppmm=0)
PropVec getPropVecMM() const
std::ostream & print(std::ostream &os) const
const Point2D & getOSize() const
std::vector< float > calcMValue(int x, int y) const
ByteImage & getImage(int index)
const ByteImage & getImage() const
void draw(float x=0, float y=0, float sx=1.0f, float sy=1.0f) const
void addNoise(float sigma)
dword getHalveBeyondSize() const
int m_CurrImage
current image
Image< float > FloatImage
PropVec & setPropScale(PropVec &prop, float pscale)
PropVec getPropVec() const
Dataset & copyData(const Dataset &rhs)