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
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 #include "Structs/Structs.h"
00049
00050
00051
00052
00053
00054
00055 class CByteImage;
00056 class CShortImage;
00057 class CIntImage;
00058 struct Vec2d;
00059
00060
00061
00062
00063
00064
00065
00066
00067 DECLARE_OPTIMIZED_FUNCTION_2(GaussianSmooth3x3, const CByteImage *pInputImage, CByteImage *pOutputImage)
00068
00069
00070 DECLARE_OPTIMIZED_FUNCTION_2(GaussianSmooth5x5, const CByteImage *pInputImage, CByteImage *pOutputImage)
00071
00072
00073 DECLARE_OPTIMIZED_FUNCTION_3(PrewittX, const CByteImage *pInputImage, CShortImage *pOutputImage, bool bAbsoluteValue)
00074 DECLARE_OPTIMIZED_FUNCTION_3(PrewittY, const CByteImage *pInputImage, CShortImage *pOutputImage, bool bAbsoluteValue)
00075 DECLARE_OPTIMIZED_FUNCTION_2(CalculateGradientImageSobel, const CByteImage *pInputImage, CByteImage *pOutputImage)
00076
00077
00078 DECLARE_OPTIMIZED_FUNCTION_3(SobelX, const CByteImage *pInputImage, CShortImage *pOutputImage, bool bAbsoluteValue)
00079 DECLARE_OPTIMIZED_FUNCTION_3(SobelY, const CByteImage *pInputImage, CShortImage *pOutputImage, bool bAbsoluteValue)
00080 DECLARE_OPTIMIZED_FUNCTION_2(CalculateGradientImagePrewitt, const CByteImage *pInputImage, CByteImage *pOutputImage)
00081
00082
00083 DECLARE_OPTIMIZED_FUNCTION_3(Laplace1, const CByteImage *pInputImage, CShortImage *pOutputImage, bool bAbsoluteValue)
00084 DECLARE_OPTIMIZED_FUNCTION_3(Laplace2, const CByteImage *pInputImage, CShortImage *pOutputImage, bool bAbsoluteValue)
00085
00086
00087 DECLARE_OPTIMIZED_FUNCTION_4(Canny, const CByteImage *pInputImage, CByteImage *pOutputImage, int nLowThreshold, int nHighThreshold)
00088 DECLARE_OPTIMIZED_FUNCTION_5(CannyList, const CByteImage *pInputImage, CVec2dArray &resultPoints, CVec2dArray &resultDirections, int nLowThreshold, int nHighThreshold)
00089
00090
00091 DECLARE_OPTIMIZED_FUNCTION_2(Erode3x3, const CByteImage *pInputImage, CByteImage *pOutputImage)
00092 DECLARE_OPTIMIZED_FUNCTION_2(Dilate3x3, const CByteImage *pInputImage, CByteImage *pOutputImage)
00093
00094
00095 DECLARE_OPTIMIZED_FUNCTION_3(ThresholdBinarize, const CByteImage *pInputImage, CByteImage *pOutputImage, unsigned char nThreshold)
00096 DECLARE_OPTIMIZED_FUNCTION_3(ThresholdBinarizeInverse, const CByteImage *pInputImage, CByteImage *pOutputImage, unsigned char nThreshold)
00097 DECLARE_OPTIMIZED_FUNCTION_3(ThresholdFilter, const CByteImage *pInputImage, CByteImage *pOutputImage, unsigned char nThreshold)
00098 DECLARE_OPTIMIZED_FUNCTION_3(ThresholdFilterInverse, const CByteImage *pInputImage, CByteImage *pOutputImage, unsigned char nThreshold)
00099 DECLARE_OPTIMIZED_FUNCTION_2(CalculateHSVImage, const CByteImage *pInputImage, CByteImage *pOutputImage)
00100 DECLARE_OPTIMIZED_FUNCTION_4(ApplyAffinePointOperation, const CByteImage *pInputImage, CByteImage *pOutputImage, float a, float b)
00101 DECLARE_OPTIMIZED_FUNCTION_3(Amplify, const CByteImage *pInputImage, CByteImage *pOutputImage, float fFactor)
00102 DECLARE_OPTIMIZED_FUNCTION_2(Invert, const CByteImage *pInputImage, CByteImage *pOutputImage)
00103 DECLARE_OPTIMIZED_FUNCTION_8(FilterHSV2, const CByteImage *pInputImage, CByteImage *pOutputImage, unsigned char min_hue, unsigned int max_hue, unsigned int min_sat, unsigned int max_sat, unsigned int min_v, unsigned int max_v)
00104
00105
00106 DECLARE_OPTIMIZED_FUNCTION_3(Or, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00107 DECLARE_OPTIMIZED_FUNCTION_3(Xor, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00108 DECLARE_OPTIMIZED_FUNCTION_3(And, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00109
00110
00111 DECLARE_OPTIMIZED_FUNCTION_3(Add, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00112 DECLARE_OPTIMIZED_FUNCTION_3(AddWithSaturation, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00113 DECLARE_OPTIMIZED_FUNCTION_3(Subtract, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00114 DECLARE_OPTIMIZED_FUNCTION_3(SubtractWithSaturation, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00115 DECLARE_OPTIMIZED_FUNCTION_3(AbsoluteDifference, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00116 DECLARE_OPTIMIZED_FUNCTION_3(Average, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00117 DECLARE_OPTIMIZED_FUNCTION_3(Max, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00118 DECLARE_OPTIMIZED_FUNCTION_3(Min, const CByteImage *pInputImage1, const CByteImage *pInputImage2, CByteImage *pOutputImage)
00119
00120
00121 DECLARE_OPTIMIZED_FUNCTION_2(MaxValue, const CByteImage *pInputImage, unsigned char &max)
00122 DECLARE_OPTIMIZED_FUNCTION_2(MaxValue_Short, const CShortImage *pInputImage, short &max)
00123 DECLARE_OPTIMIZED_FUNCTION_2(MaxValue_Int, const CIntImage *pInputImage, int &max)
00124 DECLARE_OPTIMIZED_FUNCTION_2(MinValue, const CByteImage *pInputImage, unsigned char &min)
00125 DECLARE_OPTIMIZED_FUNCTION_2(MinValue_Short, const CShortImage *pInputImage, short &min)
00126 DECLARE_OPTIMIZED_FUNCTION_2(MinValue_Int, const CIntImage *pInputImage, int &min)
00127 DECLARE_OPTIMIZED_FUNCTION_3(MinMaxValue, const CByteImage *pInputImage, unsigned char &min, unsigned char &max)
00128 DECLARE_OPTIMIZED_FUNCTION_3(MinMaxValue_Short, const CShortImage *pInputImage, short &min, short &max)
00129 DECLARE_OPTIMIZED_FUNCTION_3(MinMaxValue_Int, const CIntImage *pInputImage, int &min, int &max)
00130
00131
00132 DECLARE_OPTIMIZED_FUNCTION_2(PixelSum, const CByteImage *pImage, unsigned int &resultSum)
00133
00134
00135 DECLARE_OPTIMIZED_FUNCTION_3(ConvertImage, const CByteImage *pInputImage, CByteImage *pOutputImage, bool bFast)
00136
00137
00138 DECLARE_OPTIMIZED_FUNCTION_5_RET(CalculateHarrisInterestPoints, const CByteImage *pInputImage, Vec2d *pInterestPoints, int nMaxPoints, float fQualityLevel, float fMinDistance)
00139
00140
00141 DECLARE_OPTIMIZED_FUNCTION_3(NearestNeighbor_TrainGPU, const float *pData, int nDimension, int nDataSets)
00142 DECLARE_OPTIMIZED_FUNCTION_4(NearestNeighbor_ClassifyGPU, const float *pQuery, int nDimension, int &nResult, float &fResultError)
00143 DECLARE_OPTIMIZED_FUNCTION_5(NearestNeighbor_ClassifyBundleGPU, const float *pQueries, int nDimension, int nQueries, int *pResults, float *pResultErrors)
00144 DECLARE_OPTIMIZED_FUNCTION_0(NearestNeighbor_CleanupGPU)
00145
00146
00147