/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: 2010-04-26 03:58:12 UTC
  • Revision ID: csa@dside.dyndns.org-20100426035812-st93op9yj551wi3b
Multipass mode and re-initialization fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _DICT_HW_H
2
2
#define _DICT_HW_H
3
3
 
4
 
#define MAX_DEVICES 16
 
4
#define DICT_HW_MAX_DEVICES 16
 
5
//#define DICT_HW_VERBOSE_OUTPUT
5
6
 
6
7
typedef struct STDICTContext *DICTContext;
7
8
 
15
16
    DICT_ERROR_MALLOC = 3,
16
17
    DICT_ERROR_CUDPP = 4,
17
18
    DICT_ERROR_IMAGE = 5,
18
 
    DICT_ERROR_GLIB = 6
 
19
    DICT_ERROR_GLIB = 6,
 
20
    DICT_ERROR_PARAM = 7
19
21
};
20
22
 
21
23
enum DICTFlags {
33
35
 * does not meet minimal requirements, and -1 if no devices are detected.
34
36
 */
35
37
int dictDetectHardware();
 
38
size_t dictGetMaxCacheablePoints(int corr_size, int precision, int flags);
 
39
 
36
40
 
37
41
DICTContext dictCreateContext();
38
42
void dictDestroyContext(DICTContext ctx);
47
51
 */
48
52
int dictSetup(DICTContext ctx, int ncp, int corrsize, int precision, int flags);
49
53
int dictSetDimensions(DICTContext ps, int width, int height);
 
54
    // after next function, the dictClean should be executed
 
55
int dictSetActualNumberOfPoints(DICTContext ctx, int ncp);
 
56
int dictClean(DICTContext ctx);
 
57
 
50
58
 
51
59
int dictSetTemplatePoints(DICTContext ctx, const float *points_x, const float *points_y);
52
60
int dictSetCurrentPoints(DICTContext ctx, const float *points_x, const float *points_y);