#include <AnImage.hpp>
Inheritance diagram for AnImage:
Purpose: Define the concept of standart image .
@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, Eggs & Pictures. MIT/Open BSD copyright model.
Public Methods | |
AnImage (int w, int h) | |
AnImage (int w, int h, int channels) | |
AnImage (int w, int h, int channels, int apixelSize, int achannelSize=1) | |
virtual | ~AnImage () |
virtual AnImageType | getType () |
virtual AnImage * | copy ()=0 |
virtual AnImage * | scaleDown (int multiplier=2)=0 |
virtual AnImage * | scaleUp (int multiplier=2)=0 |
virtual AnImage * | scaleUp (int multiplier, int r, int g, int b) |
virtual AnImage * | zeroInterleaving ()=0 |
virtual AnImage * | flipHorizontal () |
virtual AnImage * | flipVertical () |
virtual AnImage * | rotate90Left ()=0 |
virtual AnImage * | rotate90Right ()=0 |
virtual AnImage * | rotate180 () |
virtual int | available8BitsColors () |
virtual void | set (CImage &data, int ctype=0, int ch=0)=0 |
virtual void | set (C3CImage &data, int ctype=0) |
virtual void | set (RImage &data, int ch=0)=0 |
virtual void | set (Real3CImage &data) |
virtual void | set (FImage &data, int ch=0)=0 |
virtual void | set (Float3CImage &data) |
virtual void | setChannel (AnImage *channel, int ch=0) |
virtual void | setData (AnImage *src, AnImage *mask=0) |
virtual void | setValues (unsigned char value) |
virtual void | setValues (int r, int g, int b) |
virtual int | getMaskValue () |
virtual void | setMaskValue (int value) |
virtual AnImage * | partImage (int x0=0, int y0=0, int w=256, int h=256)=0 |
virtual AnImage * | subImage (int x0, int y0, int x1, int y1)=0 |
virtual AnImage * | smallImage (double xscale, double yscale)=0 |
virtual AnImage * | smallImage (int newWidth) |
virtual void | setOrigin (int xorig, int yorig) |
virtual int | getX0 () |
virtual int | getY0 () |
virtual void | set (AnImage *image) |
virtual unsigned char * | getData ()=0 |
virtual int | getMinBoundaryValue () |
virtual int | getMaxBoundaryValue () |
virtual int | getPower2MaxRangeBoundary () |
int | getWidth () const |
int | getHeight () const |
int | getChannels () |
int | getPixelSize () |
int | getChannelSize () |
int | getPadding () |
int | getByteSize () |
int | size () |
virtual void | setRed (int x, int y, int value)=0 |
virtual void | setGreen (int x, int y, int value)=0 |
virtual void | setBlue (int x, int y, int value)=0 |
virtual void | setGrey (int x, int y, int value)=0 |
virtual void | setRGB (int x, int y, int r, int g, int b)=0 |
virtual void | set (int x, int y, int value)=0 |
virtual void | setColor (int c, int x, int y, int val) |
virtual int | getRed (int x, int y)=0 |
virtual int | getGreen (int x, int y)=0 |
virtual int | getBlue (int x, int y)=0 |
virtual int | getGrey (int x, int y)=0 |
virtual int | get (int x, int y) |
virtual int | get (int c, int x, int y) |
virtual int | getGrey (int x, int y, int dx, int dy) |
virtual int | getRed (int x, int y, int dx, int dy) |
virtual int | getGreen (int x, int y, int dx, int dy) |
virtual int | getBlue (int x, int y, int dx, int dy) |
virtual void | setGrey (int x, int y, int dx, int dy, int value) |
virtual void | setRed (int x, int y, int dx, int dy, int value) |
virtual void | setGreen (int x, int y, int dx, int dy, int value) |
virtual void | setBlue (int x, int y, int dx, int dy, int value) |
virtual void | replace (int pixel, int newPixel=0) |
virtual void | replace (int red, int green, int blue, int newPixel=0) |
virtual void | replace (int red, int green, int blue, int newR, int newG, int newB) |
virtual void | setRgbFromLhs (int x, int y, double luminance, double hue, double saturation) |
virtual void | setRgbFromYiq (int x, int y, double Y, double I, double Q) |
int | getLineLength () |
int | getLineByteSize () |
virtual void | report (FILE *file) |
virtual void | output () |
virtual void | restaure (int model, int type, int iterations, double coeff) |
virtual void | restaure (int model, int chMode, int type, int iterations, double coeff, double rsat=0.5) |
virtual void | restaure (int type, int iterations, double coeff) |
virtual void | restaureLHS (int type, int iterations, double coeff, double rsat) |
virtual void | restaureYIQ (int type, int iterations, double coeff) |
Protected Attributes | |
AnImageType | type |
int | x0 |
int | y0 |
origin point | |
int | width |
int | height |
int | nchannels |
number of channels | |
int | pixelSize |
number of bytes in a pixel | |
int | channelSize |
number of bytes in a channel | |
int | padding |
int | lineSizeInBytes |
double | PI |
int | maskValue |
Mask Id: default 255 [1..255]. |