What does "underscore symbol" mean in a matlab function documentation?

조회 수: 8 (최근 30일)
Marco
Marco 2013년 12월 18일
댓글: Soso 2015년 4월 2일
Hi,
I read in this documentation:
that for output 'status'
[___,status] = estimateGeometricTransform(matchedPoints1,matchedPoints2,transformType)
but what does "___" mean?
I tried with
[~,status] = estimateGeometricTransform(matchedPoints1,matchedPoints2,transformType)
and
[tform,status] = estimateGeometricTransform(matchedPoints1,matchedPoints2,transformType)
but i can not get out status variable and it returns an error:
Error using coder.internal.errorIf (line 9)
MATCHED_POINTS1 and MATCHED_POINTS2 do not have enough points.
Error in estimateGeometricTransform>checkRuntimeStatus (line 167)
coder.internal.errorIf(status==statusCode.NotEnoughPts, ...
Error in estimateGeometricTransform (line 149)
checkRuntimeStatus(statusCode, status);

답변 (2개)

Dima Lisin
Dima Lisin 2015년 3월 17일
Hi Marco,
If you look at the description of the transformType parameter in the documentation, you will see a table listing the minimum number of matched points required for each type of transformation.

Walter Roberson
Walter Roberson 2013년 12월 18일
The _ stands in for "any of the other forms listed already". So "tform" or the three-output form can both be followed by "status" as an output.
What size() are your matchedPoints1, matchedPoints2 ? The routine thinks that you are not passing in enough points (enough rows) to be able to compute the transform type you have asked for (you did not show us which one.)
  댓글 수: 6
Soso
Soso 2015년 3월 17일
Did you solve the problem? Please share with us what was the solution? Thank you so much.
Dima Lisin
Dima Lisin 2015년 3월 17일
Hi Soso,
please see my answer below.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by