/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/normxcorr_hw.h

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-23 00:02:19 UTC
  • Revision ID: csa@dside.dyndns.org-20100423000219-xagi3lp4su6g1y8e
Tags: single_gpu
CUDAfication of real-time module

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#define MODE_COEFFICIENT        0       // 0 - always fragment, infinity - always image
23
23
#define USE_UNDOCUMENTED
 
24
 
 
25
#define CUDA_EXTRA_MEMORY       67108864        // 64MB
24
26
//#define USE_SSE
25
27
 
26
28
struct STProcessingState {
77
79
    unsigned char *image;       // Reduced format
78
80
    unsigned char *base_image;  // Stored base image
79
81
 
 
82
    int width;                  // Images width
 
83
    int height;                 // Images height
 
84
 
80
85
        // Here are starting non-zeroed parameters, so the matlab mode should be first
81
86
    int matlab_mode;            // 2D stored transposed (i.e. by columns)
82
87
        
83
88
    int use_cache;              // 1 - base image caching is enabled or not
84
89
    int mode;                   // 1 - image mode, 0 - fragment mode
85
90
    int base_mode;              // 1 - image mode, 0 - fragment mode
86
 
    
 
91
 
87
92
    float minx,miny,maxx,maxy;                          // Coordinates of actualy used rectangle of image
88
93
    float base_minx, base_miny, base_maxx, base_maxy;   // Coordinates of actualy used rectangle of base image
89
94
 
90
95
    int ncp;                    // Number of control points
91
96
    int ncp_alloc_size;
92
97
    
93
 
    int width;                  // Images width
94
 
    int height;                 // Images height
95
 
 
96
98
    int corr_size;              // CORR_SIZE 
97
99
    int precision;              // PRECISION
98
100