making a label/category atlas of overlapping component images
Afficher commentaires plus anciens
I'm trying to create an atlas image from several different images that record occupancy of objects in a 3d space. Object type A would be intensity 1, object B intensity 2, etc. Currently i'm just hard writing each in succession to a single array based on index/intensity. This is working so far, but fails in the case where objects are abutting or very close, as they have probabalistic borders that overlap rather than being binary objects.
Is there a means of avoiding overlap or distributing an overlap index to its neighbors? Or perhaps just a better way of making a label atlas that avoids the problem?
Réponse acceptée
Plus de réponses (1)
Vidip Jain
le 7 Sep 2023
0 votes
I understand you are trying to create an atlas image from several different images that record occupancy of objects in a 3d space.
Instead of manually assigning labels based on intensity, you can use image processing techniques to automatically generate a label atlas that accurately represents the objects. Here's a general approach to tackle this problem:
- Connected Component Labelling (CCL): Start by applying a connected component labelling algorithm to each of your input images. This algorithm identifies connected regions of pixels with the same intensity (object type) and assigns a unique label to each region. MATLAB's bwlabeln function can be used for 3D connected component labelling.
- Merge Labels from Different Images: After labelling objects in each input image separately, you may have overlapping regions with different labels. To merge labels from different images, you can create a mapping between labels in different images by comparing the spatial overlap between labelled regions. If two labelled regions overlap in multiple images, you can assign them the same label in the final atlas.
- Post-Processing: Depending on your specific requirements, you may need to perform additional post-processing steps. This could include removing small or noisy regions, filling gaps between objects, or smoothing object boundaries.
- Create the Label Atlas: Finally, create a label atlas where each voxel contains the label corresponding to the object type at that location. You can achieve this by combining the labelled regions from different images, ensuring that regions with overlapping labels are resolved appropriately.
Refer to this documentation for more information: https://www.mathworks.com/help/images/ref/bwlabeln.html
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!