00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef RU_MORPHOLOGY_H
00020 #define RU_MORPHOLOGY_H
00021
00022 #include <SYS/SYS_Types.h>
00023
00024 #include "RU_API.h"
00025
00026 class RU_API RU_Morphology
00027 {
00028 public:
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 static void dilate(const unsigned char *source, unsigned char *dest,
00044 unsigned char *temp_dest,
00045 int w, int h, int xsize, int ysize);
00046 static void dilate(const unsigned short *source, unsigned short *dest,
00047 unsigned short *temp_dest,
00048 int w, int h, int xsize, int ysize);
00049 static void dilate(const unsigned int *source, unsigned int *dest,
00050 unsigned int *temp_dest,
00051 int w, int h, int xsize, int ysize);
00052 static void dilate(const fpreal16 *source, fpreal16 *dest,
00053 fpreal16 *temp_dest,
00054 int w, int h, int xsize, int ysize);
00055 static void dilate(const float *source, float *dest,
00056 float *temp_dest,
00057 int w, int h, int xsize, int ysize);
00058
00059 static void erode (const unsigned char *source, unsigned char *dest,
00060 unsigned char *temp_dest,
00061 int w, int h, int xsize, int ysize);
00062 static void erode (const unsigned short *source, unsigned short *dest,
00063 unsigned short *temp_dest,
00064 int w, int h, int xsize, int ysize);
00065 static void erode (const unsigned int *source, unsigned int *dest,
00066 unsigned int *temp_dest,
00067 int w, int h, int xsize, int ysize);
00068 static void erode (const fpreal16 *source, fpreal16 *dest,
00069 fpreal16 *temp_dest,
00070 int w, int h, int xsize, int ysize);
00071 static void erode (const float *source, float *dest,
00072 float *temp_dest,
00073 int w, int h, int xsize, int ysize);
00074
00075 static void dilateErode(const unsigned char *source, unsigned char *dest,
00076 unsigned char *temp_dest,
00077 int w, int h, int xsize, int ysize);
00078 static void dilateErode(const unsigned short *source, unsigned short *dest,
00079 unsigned short *temp_dest,
00080 int w, int h, int xsize, int ysize);
00081 static void dilateErode(const unsigned int *source, unsigned int *dest,
00082 unsigned int *temp_dest,
00083 int w, int h, int xsize, int ysize);
00084 static void dilateErode(const fpreal16 *source, fpreal16 *dest,
00085 fpreal16 *temp_dest,
00086 int w, int h, int xsize, int ysize);
00087 static void dilateErode(const float *source, float *dest,
00088 float *temp_dest,
00089 int w, int h, int xsize, int ysize);
00090
00091 };
00092
00093 #endif