Identify Individual Shape from Matrix Representing Multiple Shapes
Mostrar comentarios más antiguos
Hi all,
I have a matrix which represents multiple shapes. (Picture an image with a black background and several white circles on it.) The black part of the image is represented by NaN's, while the white circles or shapes are represented by numbers. I have created a random rectangle, which essentially serves as a bounding box, and I would like to see which specific circle/shape falls within the boundaries of the rectangle. The circles/shapes are well spread apart, so only one circle/shape will fulfill the boundary requirement. How could I identify only the one shape that has some part of itself in the rectangle while ignoring the other shapes? In other words, how could I isolate the shape and create a new matrix with only the shape that fulfills my requirement? I would then have to apply this same method to other matrices representing more shapes while keeping the location of the rectangular bounding box the same.
Any tips would be greatly appreciated! Thanks in advance!
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 6 de Feb. de 2021
0 votos
See my attached shape recognition demos. Adapt as needed.
1 comentario
Michelle De Luna
el 7 de Feb. de 2021
Categorías
Más información sobre Semantic Segmentation en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!