00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __TLFORMATCONVERSION_H__
00018 #define __TLFORMATCONVERSION_H__
00019
00020
00021 #include "tlVision.h"
00022
00023
00024
00025 int tl_rgb2hsi (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00026 int tl_rgb2hsi (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00027
00028 int tl_rgb2yuv (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00029 int tl_rgb2yuv (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00030
00031 int tl_rgb2nrg (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00032 int tl_rgb2nrg (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00033
00034 int tl_rgb2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00035 int tl_rgb2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00036
00037 int tl_rgb2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00038 int tl_rgb2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00039
00040
00041 int tl_hsi2rgb (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00042 int tl_hsi2rgb (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00043
00044 int tl_hsi2yuv (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00045 int tl_hsi2yuv (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00046
00047 int tl_hsi2nrg (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00048 int tl_hsi2nrg (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00049
00050 int tl_hsi2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00051 int tl_hsi2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00052
00053 int tl_hsi2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00054 int tl_hsi2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00055
00056
00057 int tl_yuv2rgb (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00058 int tl_yuv2rgb (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00059
00060 int tl_yuv2hsi (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00061 int tl_yuv2hsi (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00062
00063 int tl_yuv2nrg (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00064 int tl_yuv2nrg (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00065
00066 int tl_yuv2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00067 int tl_yuv2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00068
00069 int tl_yuv2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00070 int tl_yuv2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00071
00072
00073 int tl_nrg2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00074 int tl_nrg2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00075
00076 int tl_nrg2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00077 int tl_nrg2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00078
00079
00080 int tl_gray2rgb (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00081 int tl_gray2rgb (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00082
00083 int tl_gray2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00084 int tl_gray2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00085
00086
00087 int tl_hrgray2gray (tlHRPixel *src, int width, int height, tlRect *rect, tlPixel *dest, unsigned char shift = 0);
00088 int tl_hrgray2gray (tlHRPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest, unsigned char shift = 0);
00089
00090 int tl_hrgray2bin (tlHRPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00091 int tl_hrgray2bin (tlHRPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00092
00093
00094 int tl_to_channel (tlPixel *src, int width, int height, int pixel_width, int channel, tlRect *rect, tlPixel *dest);
00095 int tl_to_channel (tlPixel *src, int width, int height, int pixel_width, int channel, tlPixel *mask, tlRect *rect, tlPixel *dest);
00096
00097
00098 int tl_put_channel (tlPixel *src, int width, int height, int pixel_width, int channel, tlRect *rect, tlPixel *dest);
00099
00100
00101 #endif