Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

CImageGrey Class Reference

The Image Class contains all the data related to the image. More...

#include <ImageGrey.h>

Inheritance diagram for CImageGrey

Inheritance graph

[legend]
Collaboration diagram for CImageGrey:

Collaboration graph

[legend]
List of all members.

Public Methods

 CImageGrey ()
 Basic Constructor.

 CImageGrey (int sx, int sy)
 Create an empty image of size (sx,sy).

 CImageGrey (CImageGrey *in)
 Copy Constructor.

virtual ~CImageGrey ()
 Destructor.

int NbImagesGet (void) const
 Nb of images defined.

int HeightGet (void) const
 return Height.

int WidthGet (void) const
 Return Width.

int TopGet (void) const
 Return Top.

int LeftGet (void) const
 Retrun Left.

int LineLengthGet (void) const
 Return Length of a line.

LPPIXEL BitmapGet (void) const
 Get the Bitmap.

int MaxIndexGet (void) const
 Return Size of FULL bitmap.

LPPIXEL BeginGet (void) const
 Return a pointer on the first pixel of the image.

PIXEL PixelGet (int x, int y) const
 Return the value of the pixel (x,y).

void PixelSet (int x, int y, PIXEL value) const
 Set the value of the pixel (x,y).

void FrameSet (PIXEL val)
 Set the frame to a given value.

void Set (PIXEL val)
 Set the image at a given value.

LPPIXEL dir6c_0 (LPPIXEL p, short parity) const
 Return pixel in given direction (6 conectivity).

LPPIXEL dir6c_1 (LPPIXEL p, short parity) const
 Return pixel in given direction (6 conectivity).

LPPIXEL dir6c_2 (LPPIXEL p, short parity) const
 Return pixel in given direction (6 conectivity).

LPPIXEL dir6c_3 (LPPIXEL p, short parity) const
 Return pixel in given direction (6 conectivity).

LPPIXEL dir6c_4 (LPPIXEL p, short parity) const
 Return pixel in given direction (6 conectivity).

LPPIXEL dir6c_5 (LPPIXEL p, short parity) const
 Return pixel in given direction (6 conectivity).

LPPIXEL dir4c_0 (LPPIXEL p) const
 Return pixel in given direction (4 conectivity).

LPPIXEL dir4c_1 (LPPIXEL p) const
 Return pixel in given direction (4 conectivity).

LPPIXEL dir4c_2 (LPPIXEL p) const
 Return pixel in given direction (4 conectivity).

LPPIXEL dir4c_3 (LPPIXEL p) const
 Return pixel in given direction (4 conectivity).

LPPIXEL dir8c_0 (LPPIXEL p) const
 Return pixel in given direction (8 conectivity).

LPPIXEL dir8c_1 (LPPIXEL p) const
 Return pixel in given direction (8 conectivity).

LPPIXEL dir8c_2 (LPPIXEL p) const
 Return pixel in given direction (8 conectivity).

LPPIXEL dir8c_3 (LPPIXEL p) const
 Return pixel in given direction (8 conectivity).

LPPIXEL dir8c_4 (LPPIXEL p) const
 Return pixel in given direction (8 conectivity).

LPPIXEL dir8c_5 (LPPIXEL p) const
 Return pixel in given direction (8 conectivity).

LPPIXEL dir8c_6 (LPPIXEL p) const
 Return pixel in given direction (8 conectivity).

LPPIXEL dir8c_7 (LPPIXEL p) const
 Return pixel in given direction (8 conectivity).

bool isInImage (LPPIXEL p) const
 Return true if the pixel is in the image.


Private Attributes

LPPIXEL pBitmap
 Bitmap image.

int Width
int Height
 Width and height of the image.

int MaxIndex
 Total number of byte allocated in an image.

int LineLength
 Length of an image line.

int Top
int Left
 First pixel of the image.


Static Private Attributes

int nb_images = 0
 Nb of images in memory.


Detailed Description

The Image Class contains all the data related to the image.

Author(s):
Laurent Najman
Date:
9/9/00
Keywords:
Image Processing
Version:
Id: ImageGrey.h,v 1.4 2001/09/04 19:46:57 laurentnajman Exp
Content:
The class Image contains all the data of the image. An image is a Bitmap of one PIXEL (=int) for each pixel. There is a border of one row on top and down of the image and one column on left and right side of the image. This border is used for preventing (or doing) border effect in algorithm.

Warning:
This paragraphe has to be enhanced !!!


The documentation for this class was generated from the following files:
Generated at Sun May 12 19:04:26 2002 for OpenMorpho by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000