/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to dict_hw/src/dict_hw.h

  • Committer: Suren A. Chilingaryan
  • Date: 2009-12-13 02:20:05 UTC
  • Revision ID: csa@dside.dyndns.org-20091213022005-m932to8hhihwuw5r
Support for TIFF images in C code and stand-alone console application

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    DICT_ERROR_CUFFT = 1,
12
12
    DICT_ERROR_CUDA_MALLOC = 2,
13
13
    DICT_ERROR_MALLOC = 3,
14
 
    DICT_ERROR_CUDPP = 4
 
14
    DICT_ERROR_CUDPP = 4,
 
15
    DICT_ERROR_IMAGE = 5
15
16
};
16
17
 
17
18
enum DICTFlags {
18
19
    DICT_FLAGS_DEFAULT = 0,
19
 
    DICT_FLAGS_FIXED_FFT_SIZE = 1
 
20
    DICT_FLAGS_FIXED_FFT_SIZE = 1,
 
21
    DICT_FLAGS_MATLAB_MODE = 2
20
22
};
21
23
 
22
24
 
39
41
 * @param precision defines number of signifcant digits after decimal point (1000)
40
42
 * @return 0 or error code
41
43
 */
42
 
int dictSetup(DICTContext ctx, int ncp, int corrsize, int precision, DICTFlags flags);
 
44
int dictSetup(DICTContext ctx, int ncp, int corrsize, int precision, int flags);
43
45
int dictSetDimensions(DICTContext ps, int width, int height);
44
46
 
45
47
int dictSetTemplatePoints(DICTContext ctx, const float *points_x, const float *points_y);
48
50
 
49
51
int dictLoadTemplateImage(DICTContext ctx, const unsigned char *img, int width, int height);
50
52
int dictLoadTemplateFragment(DICTContext ctx, int icp, int ncp, const unsigned char *img);
51
 
//int dictLoadTemplateImageFile(DICTContext ctx, const char *name);
 
53
int dictLoadTemplateImageFile(DICTContext ctx, const char *name);
52
54
 
53
55
int dictLoadImage(DICTContext ctx, unsigned char *img);
54
56
int dictLoadFragment(DICTContext ctx, int icp, int ncp, const unsigned char *image);
55
 
//int dictLoadImageFile(DICTContext ctx, const char *name);
 
57
int dictLoadImageFile(DICTContext ctx, const char *name);
56
58
 
57
59
int dictSetPointsBuffer(DICTContext ps, float *point_x, float *point_y);
58
60
int dictCompute(DICTContext ctx);
59
61
int dictProcessImage(DICTContext ctx, unsigned char *img);
60
 
//int dictProcessImageFile(DICTContext ctx, const char *name);
 
62
int dictProcessImageFile(DICTContext ctx, const char *name);
61
63
 
62
64
 
63
65
    // Internal use only, this functions could be revised