#include <Basic.h>
Inheritance diagram for CBasic
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. | |
CImageGrey* | copy (CImageGrey *img1) |
Return a copy of the original image. | |
CImageGrey* | crop (CImageGrey *in, int left, int top, int width, int height) |
Crop (cut) the image. | |
CImageGrey* | enlarge (CImageGrey *in, int widthBorder, int heightBorder, PIXEL bordercolor=0) |
Add a border to the image. center the (old) image, and set the border color. | |
CImageGrey* | shrink (CImageGrey *img1, double zoom) |
Zoom out of the image. | |
CImageGrey* | rotate90 (CImageGrey *img) |
Rotate the image at 90 degree. | |
CImageGrey* | transpose (CImageGrey *img) |
Transpose the image (x,y) -> (-x,-y). | |
CImageGrey* | thresh (CImageGrey *img1, int minimum, int maximum) |
Return a thresholded image between minimum (included) and maximum (excluded). | |
CImageGrey* | stretch (CImageGrey *img1) |
Stretch the value of image's pixels so that they are between 0 and 255. | |
CImageGrey* | invert (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. |