Drawing the camera ROI sometimes fails in ways such as:
The UI is stuck in ROI resize mode and the ROI can not be translated.
The UI is stuck in ROI translate mode and the ROI can not be resized
Other related things can happen. This seems to be a MATLAB bug related to the use of this rectangle tool with a MATLAB uifigure. The MathWorks have been notified but so far no solution. The problem occurs on roughly 15% of ROI drawing attempts. It the time. This is not really a bug in Zapit. The same code for drawing ROIs works perfectly well with a traditional MATLAB figure (not a uifigure).
Workaround
If you encounter this issue you should just double-click the ROI to accept it. Reset the FOV if needed and try again. Eventually it will work. The GUI caches the previous ROI position so in practice, once your setup is finalised, you will likely not need to re-draw often.
Issue Description
Drawing the camera ROI sometimes fails in ways such as:
Other related things can happen. This seems to be a MATLAB bug related to the use of this rectangle tool with a MATLAB
uifigure
. The MathWorks have been notified but so far no solution. The problem occurs on roughly 15% of ROI drawing attempts. It the time. This is not really a bug in Zapit. The same code for drawing ROIs works perfectly well with a traditional MATLAB figure (not auifigure
).Workaround
If you encounter this issue you should just double-click the ROI to accept it. Reset the FOV if needed and try again. Eventually it will work. The GUI caches the previous ROI position so in practice, once your setup is finalised, you will likely not need to re-draw often.