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

CBasic Class Reference

Basic operations on images. More...

#include <Basic.h>

Inheritance diagram for CBasic

Inheritance graph

[legend]
Collaboration diagram for CBasic:

Collaboration graph

[legend]
List of all members.

Public Methods

 CBasic ()
virtual ~CBasic ()
int maxim (CImageGrey *in)
 Find the maximum of an image.

int minim (CImageGrey *in)
 Find the minimum of an image.

CImageGreycopy (CImageGrey *img1)
 Return a copy of the original image.

CImageGreycrop (CImageGrey *in, int left, int top, int width, int height)
 Crop (cut) the image.

CImageGreyenlarge (CImageGrey *in, int widthBorder, int heightBorder, PIXEL bordercolor=0)
 Add a border to the image. center the (old) image, and set the border color.

CImageGreyshrink (CImageGrey *img1, double zoom)
 Zoom out of the image.

CImageGreyrotate90 (CImageGrey *img)
 Rotate the image at 90 degree.

CImageGreytranspose (CImageGrey *img)
 Transpose the image (x,y) -> (-x,-y).

CImageGreythresh (CImageGrey *img1, int minimum, int maximum)
 Return a thresholded image between minimum (included) and maximum (excluded).

CImageGreystretch (CImageGrey *img1)
 Stretch the value of image's pixels so that they are between 0 and 255.

CImageGreyinvert (CImageGrey *img1)
 Invert the image (pix = maxim(img1) - pix).

char* dump (CImageGrey *img, int topx, int topy, int sx, int sy, int trame=4)
 Return a string containing an ASCII representation of the image.


Detailed Description

Basic operations on images.

Author(s):
Laurent Najman
Date:
16/9/00
Keywords:
Image Processing
Version:
Id: Basic.h,v 1.5 2002/05/12 14:42:12 laurentnajman Exp
Content:
This class is used to find the maximum/infimum of an image, or to stretch, rotate, or any other kind of basic operations.


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