00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023
00024
00025
00026 00028
00029 #if !defined(AFX_BASIC_H__8B9B0E81_8BC5_11D4_B181_C2959B5E2449__INCLUDED_)
00030 #define AFX_BASIC_H__8B9B0E81_8BC5_11D4_B181_C2959B5E2449__INCLUDED_
00031
00032 #ifndef SWIG // Remove whatever is not needed by SWIG
00033
00034 #if _MSC_VER >= 1000
00035 #pragma once
00036 #endif // _MSC_VER >= 1000
00037
00038 #include "Error.h"
00039 #include "ImageGrey.h"
00040
00041 #endif // SWIG
00042
00057 class CBasic : public CError
00058 {
00059 public:
00060 CBasic();
00061 virtual ~CBasic();
00062
00064 int maxim(CImageGrey *in);
00066 int minim(CImageGrey *in);
00067
00069 CImageGrey * copy(CImageGrey *img1);
00071 CImageGrey * crop(CImageGrey *in, int left, int top, int width, int height);
00073 CImageGrey * enlarge(CImageGrey *in, int widthBorder, int heightBorder, PIXEL bordercolor=0);
00075 CImageGrey * shrink(CImageGrey *img1, double zoom);
00077 CImageGrey * rotate90(CImageGrey *img);
00079 CImageGrey * transpose(CImageGrey *img);
00080
00082 CImageGrey * thresh(CImageGrey *img1, int minimum, int maximum);
00084 CImageGrey * stretch(CImageGrey *img1);
00086 CImageGrey * invert(CImageGrey *img1);
00087
00089 char * dump(CImageGrey *img, int topx, int topy, int sx, int sy, int trame=4);
00090 };
00091
00092 #endif // !defined(AFX_BASIC_H__8B9B0E81_8BC5_11D4_B181_C2959B5E2449__INCLUDED_)
00093