Subversion Repositories seema-scanner

Rev

Rev 119 | Rev 121 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 120
Line 100... Line 100...
100
    CV_Assert(nelems >= 0);
100
    CV_Assert(nelems >= 0);
101
    cvDrawChessboardCorners( &c_image, patternSize, (CvPoint2D32f*)corners.data,
101
    cvDrawChessboardCorners( &c_image, patternSize, (CvPoint2D32f*)corners.data,
102
                             nelems, patternWasFound, line_width);
102
                             nelems, patternWasFound, line_width);
103
}
103
}
104
 
104
 
-
 
105
void rshift(cv::Mat& I, unsigned int shift){
-
 
106
 
-
 
107
    int nRows = I.rows;
-
 
108
    int nCols = I.cols;
-
 
109
 
-
 
110
    if (I.isContinuous()){
-
 
111
        nCols *= nRows;
-
 
112
        nRows = 1;
-
 
113
    }
-
 
114
 
-
 
115
    int i,j;
-
 
116
    unsigned short* p;
-
 
117
    for( i = 0; i < nRows; ++i){
-
 
118
        p = I.ptr<unsigned short>(i);
-
 
119
        for ( j = 0; j < nCols; ++j){
-
 
120
            p[j] = p[j]>>shift;
-
 
121
        }
-
 
122
    }
-
 
123
}
-
 
124
 
105
void cvDrawChessboardCorners(CvArr* _image, CvSize pattern_size, CvPoint2D32f* corners, int count, int found, int line_width){
125
void cvDrawChessboardCorners(CvArr* _image, CvSize pattern_size, CvPoint2D32f* corners, int count, int found, int line_width){
106
    const int shift = 0;
126
    const int shift = 0;
107
    const int radius = 12;
127
    const int radius = 12;
108
    const int r = radius*(1 << shift);
128
    const int r = radius*(1 << shift);
109
    int i;
129
    int i;