Wed 09 Aug 2017 04:46:34 PM UTC, original submission:
regionprops is broken for some multi-region images, even though it works fine for single regions, including the individual images returned in the structure. I'm using the image package v2.6.1 which came with Octave v4.2.1. Here is an example where the 2 diagonals are OK, but the 2 squares are wrong:
If you flip the "eye" and "ones", the diagonal cases will have wrong values. Also if all 4 patterns are equal (either eye or ones), then the right answers result. Somehow different patterns interfere with each other.
Also, if the matrix is not logical, i.e. without the ">0", then the 4 sections aren't even broken apart.
|