how to count number of buildings in an image in matlab?

Answers (1)

For effective segmentation, it is better to use Deep Learning techniques.
Please refer to the below links, which will give you an overall idea of using U-Net for semantic segmentation.
This example uses a 3-D pretrained U-Net for segmentation. You can also try using different models for effective segmentation.
One such model is "DeepLab v3+". It uses atrous (or dilated) convolutions, which allow the network to capture multi-scale contextual information without losing resolution. This is particularly useful for segmenting objects at various scales.
For more information on how to train a segmentation model using “deeplabv3plus” refer to the following link.

Asked:

on 22 Feb 2017

Answered:

on 3 Jun 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!