Applied all fixes related to translating C to C++ code
Also fixed some typos and code alignment Also adapted tutorial CPP samples Fixed some identation problems
This commit is contained in:
@@ -294,7 +294,7 @@ int main(int argc, char* argv[])
|
||||
if( s.calibrationPattern == Settings::CHESSBOARD)
|
||||
{
|
||||
Mat viewGray;
|
||||
cvtColor(view, viewGray, CV_BGR2GRAY);
|
||||
cvtColor(view, viewGray, COLOR_BGR2GRAY);
|
||||
cornerSubPix( viewGray, pointBuf, Size(11,11),
|
||||
Size(-1,-1), TermCriteria( CV_TERMCRIT_EPS+CV_TERMCRIT_ITER, 30, 0.1 ));
|
||||
}
|
||||
|
@@ -56,7 +56,7 @@ int main( int argc, char** argv )
|
||||
//-- 4. Display it as a CV_8UC1 image
|
||||
imgDisparity16S.convertTo( imgDisparity8U, CV_8UC1, 255/(maxVal - minVal));
|
||||
|
||||
namedWindow( windowDisparity, CV_WINDOW_NORMAL );
|
||||
namedWindow( windowDisparity, WINDOW_NORMAL );
|
||||
imshow( windowDisparity, imgDisparity8U );
|
||||
|
||||
//-- 5. Save the image
|
||||
|
Reference in New Issue
Block a user