フィルターのクリア

Matlab ginput mouse click freezes and does not obtain coordinates

6 ビュー (過去 30 日間)
Cristina Miguel Palao
Cristina Miguel Palao 2022 年 5 月 18 日
コメント済み: Lavanya 2022 年 9 月 22 日
I am working on a Matlab code in App Designer that consists on two images showed side by side, and ginput to select similar points on both. By this I mean, that I am doing Point Registration, to obtain a transformation matrix.
To do so, I use ginput to obtain the coordinates on one image, and on the other. This is done for several images, so that a for loop is utilized and with each iteration, new images on the right are shown for new point registration, while the image on the left remains.
The problem is, at some point and on random images, ginput stops working. Suddenly, when you click right button of the mouse, the coordinates are not retrieved, and it just remains that way. The selection axis move, but the point cannot be selected. The weird thing is that it happens at random moments, and on a code where it did not used to happen.
Does anyone know why ginput would do that and stop retriving coordinates? I have tried adding pause times before selections and clearing variables to release memory.

採用された回答

Benjamin Thompson
Benjamin Thompson 2022 年 6 月 9 日
Do not use ginput with AppDesigner. Here is some related discussion and some alternatives:
  1 件のコメント
Lavanya
Lavanya 2022 年 9 月 22 日
How to get cursor point without using @mouseclickFcn in the above 'ginputuiax.m' file

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by