MATLAB Answers

Im having trouble registering an aerial photo to an orthophoto. Evertime I try to enter my eq for cpselect, it keeps sayingThe expression to the left of the equals sign is not a valid target for an assignment. Can someone help me out.

1 view (last 30 days)
austin houston
austin houston on 11 Feb 2018
Answered: Walter Roberson on 14 Feb 2018
(aerial_points_ortho_points)=cpselects(aerial,light.jpg',...movingpoints,fixedpoints,...'wait',true)
Error: The expression to the left of the equals sign is not a valid target for an
assignment.

  0 Comments

Sign in to comment.

Answers (2)

Shashank
Shashank on 14 Feb 2018
Hi Austin,
According to the documentation, the function name is cpselect and there are two output arguments which correspond to selectedMovingPoints and selectedFixedPoints .
Refer to this example for more info :
Hope this helps

  0 Comments

Sign in to comment.


Walter Roberson
Walter Roberson on 14 Feb 2018
You cannot use () to designate multiple outputs in MATLAB: you need to use []
[aerial_points_ortho_points] = cpselects('aerial,light.jpg', ...
movingpoints, fixedpoints, ...
'wait',true);
In the special case where you only have one output variable, you can leave out the []
aerial_points_ortho_points = cpselects('aerial,light.jpg', ...
movingpoints, fixedpoints, ...
'wait',true);

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by