image.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #if !defined FVS__IMAGE_HEADER__INCLUDED__
00022 #define FVS__IMAGE_HEADER__INCLUDED__
00023
00024
00025 #include "fvstypes.h"
00026
00027
00033 typedef FvsHandle_t FvsImage_t;
00034
00035
00044 typedef enum
00045 {
00046 FvsImageGray = 0,
00047 FvsImageBinarized = 1,
00048 FvsImageThinned = 2,
00049 } FvsImageFlag_t;
00050
00051
00056 FvsImage_t ImageCreate(void);
00057
00058
00064 void ImageDestroy( FvsImage_t image);
00065
00066
00076 FvsError_t ImageSetSize(FvsImage_t image, const FvsInt_t width, const FvsInt_t height);
00077
00078
00085 FvsError_t ImageSetFlag(FvsImage_t image, const FvsImageFlag_t flag);
00086
00087
00093 FvsImageFlag_t ImageGetFlag(const FvsImage_t image);
00094
00095
00103 FvsError_t ImageCopy(FvsImage_t destination, const FvsImage_t source);
00104
00105
00112 FvsError_t ImageClear(FvsImage_t image);
00113
00114
00121 FvsError_t ImageFlood(FvsImage_t image, const FvsByte_t value);
00122
00123
00132 void ImageSetPixel(FvsImage_t image, const FvsInt_t x, const FvsInt_t y, const FvsByte_t val);
00133
00134
00142 FvsByte_t ImageGetPixel(const FvsImage_t image, const FvsInt_t x, const FvsInt_t y);
00143
00144
00150 FvsByte_t* ImageGetBuffer(FvsImage_t image);
00151
00152
00158 FvsInt_t ImageGetWidth(const FvsImage_t image);
00159
00160
00166 FvsInt_t ImageGetHeight(const FvsImage_t image);
00167
00168
00176 FvsInt_t ImageGetPitch(const FvsImage_t image);
00177
00178
00184 FvsInt_t ImageGetSize(const FvsImage_t image);
00185
00192 FvsBool_t ImageCompareSize(const FvsImage_t image1, const FvsImage_t image2);
00193
00194
00195 #endif
00196