Is there a way to apply a threshold to regionprops/bounding boxes?
Mostra commenti meno recenti
I'm working with data from a Pedobarograph (see example images below).
What I want MATLAB to do, is to define bounding boxes around each separate foot. Most of the time, the foot doesn't land firmly on the mat in a way that would make the toes, heel etc. contiguous. This means when I use regionprops, I end up with about dozen regions per image, even though there are only four feet in each.

So is there a way to apply some type of threshold to regionprops? Such that rather than defining a region by contiguous elements (i.e. zero, zero elements between), the threshold would allow n number of zero elements between?
Any other suggestions to select each separate foot would be much appreciated. I can provide more information if required.
Thank you!
Risposta accettata
Più risposte (1)
Syed Waqas Ul Haque
il 15 Feb 2016
0 voti
I have a question
Since you have pretty much clearly defined how to create a bounding box tell me how to use the bonded part of image for thresholding
1 Commento
Image Analyst
il 15 Feb 2016
I have no idea what you're asking. Read this link and then post your own question with your own image. Otherwise all I can say is to either mask or crop your image and then threshold it
binaryImage = boundedImage < someThreshold;
Categorie
Scopri di più su Image Arithmetic in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!