How to update images in GUI?
2 ビュー (過去 30 日間)
古いコメントを表示
I have a binary image with 4 objects. I am trying to remove objects by using imfreehand function. But the problem is: First I delete OBJECT2 using imfreehand. Then when I tried to delete OBJECT3 , OBJECT3 is deleted but again OBJECT2 reappeared in the image. How to update image after each operation?
2 件のコメント
採用された回答
Walter Roberson
2015 年 12 月 7 日
Is that the same code as you use for OBJECT3 ? If so then the problem is that you are resetting to the original image handles.i4 each time. If you change the assignment to
if ~isfield(handles, 'bi')
handles.bi = handles.i4;
end
then it will only be done if it has not been done before and otherwise will proceed to work with the existing handles.bi that had the object deleted from it already.
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!