Inconsistent crashes with bwboundaries
古いコメントを表示
I am using version 2019a. I am using bwboundaries to find the contour of an object, but it has recently been causing crashes. However, the crashes only occur with certain images and I am not sure what the differences are. Attached are img1.m and img2.m which contain the images. Running the following leads to a crash with an error message reading "Illegal instruction detected at [Time]"
B=bwboundaries(img1);
However running everything the same on img2 gives me the proper readout
B=bwboundaries(img2);
The only obvious difference I can see is that img1 only has one object and img2 has five objects (confirmed by running regionprops on both images). Adding in objects into img1 did not solve the issue.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Object Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!