removed keypoint_matching.cpp from samples/cpp/CMakeLists.txt, fixed some crashes in select3dobj.cpp
This commit is contained in:
parent
799460bd66
commit
6027f4d4f9
@ -45,7 +45,6 @@ if (BUILD_EXAMPLES)
|
||||
MY_DEFINE_EXAMPLE(select3dobj select3dobj.cpp)
|
||||
MY_DEFINE_EXAMPLE(connected_components connected_components.cpp)
|
||||
MY_DEFINE_EXAMPLE(contours2 contours2.cpp)
|
||||
MY_DEFINE_EXAMPLE(keypoints_matching keypoints_matching.cpp)
|
||||
MY_DEFINE_EXAMPLE(morphology2 morphology2.cpp)
|
||||
MY_DEFINE_EXAMPLE(segment_objects segment_objects.cpp)
|
||||
endif(BUILD_EXAMPLES)
|
||||
|
@ -341,7 +341,8 @@ int main(int argc, char** argv)
|
||||
tempobj[6] = tempobj[2] + Point3f(0,0,Z);
|
||||
tempobj[7] = tempobj[3] + Point3f(0,0,Z);
|
||||
|
||||
projectPoints(Mat(tempobj), rvec, tvec, calibrated.cameraMatrix, Mat(), tempimg);
|
||||
projectPoints(Mat(tempobj), rvec, tvec, calibrated.cameraMatrix,
|
||||
calibrated.distCoeffs, tempimg);
|
||||
|
||||
if( npt == 0 && nobjpt == 0 )
|
||||
nOutlinePt = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user