I have Tried Using regionprops with fields of Area, Centroid and BoundingBox. I was desappointed firstly when comparing results of my implementation of Centroid vs the ready Centroid field in regionProps when I find that they are sometimes mostly equally, but sometimes the regionprops centroids give very wrong results.
As for prove here is the values I get from boundingbox
value = 53.5000 36.5000 170.0000 635.0000value = 41.5000 10.5000 152.0000 671.0000value = 27.5000 51.5000 217.0000 622.0000value = 49.5000 7.5000 177.0000 686.0000value = 35.5000 631.5000 1.0000 1.0000value = 49.5000 23.5000 180.0000 656.0000value = 33.5000 471.5000 1.0000 1.0000value = 41.5000 26.5000 207.0000 674.0000value = 43.5000 358.5000 1.0000 1.0000value = 46.5000 59.5000 204.0000 616.0000value = 33.5000 36.5000 214.0000 632.0000value = 31.5000 287.5000 1.0000 1.0000value = 28.5000 29.5000 182.0000 646.0000value = 56.5000 1.5000 187.0000 699.0000
Why are those 1's in the result??? it's not right at all.
Best Answer