/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-22 13:42:41 UTC
  • Revision ID: csa@dside.dyndns.org-20100422134241-fv5m2ufk8n2tc9h5
Implementation of image and fragment modes, support for non-cacheable grids

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    float *cuda_points;                 // Various information on control points:
38
38
                                        // 0: data_x
39
39
                                        // 1: data_y
40
 
                                        // 2: sum
41
 
                                        // 3: denom
 
40
                                        // 0: sum
 
41
                                        // 1: denom
 
42
    unsigned char *cuda_base_image;
 
43
    unsigned char *cuda_image;
42
44
 
43
45
    unsigned char *input_buffer;        // Input Image buffer / Host
44
46
    unsigned char *cuda_input_buffer;   // Input Image buffer / Device
69
71
    int cudpp_initialized;              // Flag indicating if CUDPP plan is initialized
70
72
    CUDPPHandle cudpp_plan;
71
73
 
 
74
    DICTImageType image_type;
 
75
    void *image_buf;            // Temporary buffer for images (specific-format)
 
76
    unsigned char *image;       // Reduced format
 
77
 
 
78
        // Here are starting non-zeroed parameters, so the matlab mode should be first
72
79
    int matlab_mode;            // 2D stored transposed (i.e. by columns)
73
80
        
 
81
    int use_cache;              // 1 - base image caching is enabled or not
74
82
    int mode;                   // 1 - image mode, 0 - fragment mode
75
83
    int base_mode;              // 1 - image mode, 0 - fragment mode
76
84
    
77
 
    float minx,miny,maxx,maxy;  // Coordinates of actualy used rectangle of image
 
85
    float minx,miny,maxx,maxy;                          // Coordinates of actualy used rectangle of image
 
86
    float base_minx, base_miny, base_maxx, base_maxy;   // Coordinates of actualy used rectangle of base image
78
87
 
79
88
    int ncp;                    // Number of control points
80
89
    int ncp_alloc_size;
101
110
    int side_blocks_power;      // Indicates if amount of side blocks is power of 2
102
111
    int base_blocks_power;      // Indicates if amount of base blocks is power of 2
103
112
 
104
 
 
105
 
    DICTImageType image_type;
106
 
    void *image_buf;            // Temporary buffer for images (specific-format)
107
 
    unsigned char *image;       // Reduced format
108
 
 
109
113
#ifdef DICT_HW_MEASURE_TIMINGS
110
114
    int time[24];               // Timing counters (SHOULD BE LAST in struct!!!): 
111
115
                                //  0- 3: hardware, init, set_base_points, set_cur_points