Inconsistent crashes with bwboundaries
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Object Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!