Clear Filters
Clear Filters

How to merge super pixels to get bigger region segmentation

6 views (last 30 days)
I have a input color image. I have already segment the image using super pixel function and divide the region into 500 superpixels. Now i can see that boundary of each objects are properly segmented. So i want to merge adjacent superpixels using some homogenity. How to merge superpixels to get large region based on some homogenous chracateristics. please help me out.
I have attached a image with superpixels based segmentation. Now how to merge adjacent superpixels based on some homogenity.

Answers (2)

Asma Semche
Asma Semche on 29 Jan 2019
I am, kind of, doing the same thing, I want to use the Bhattacharyya distance in order to merge segments.
The thing is, I can't find a way, yet, to regroup pixel intensity of the borders in a commun matrix.
I'd be happy if we can solve your problem and mine, together.
  1 Comment
MB11
MB11 on 16 Mar 2019
Even I need to do the same with Bhattarcharya coefficient. Have either of you found any solution?

Sign in to comment.


Image Analyst
Image Analyst on 10 Dec 2020
Not so easy, and not unique. What if region A is close enough to region B to merge, and then what if region B is close enough to another adjacent region C to merge. But what if region A is not similar enough to region C to be considered the same. If you merged B with both A and C you're going to have dissimilar regions merged into the same region. Do you just merge ONE of the regions into B -- the closest one? But then I can see that the output you'd get would depend on the ORDER that you merge the regions. If you started merging with one region, you may end up with a completely different output than if you started with some other region. What do you plan to do in that case? Anyway, why do you want to merge them anyway? Maybe you can just use multithresh() to control what similar regions get grouped together. What is your use case?
  5 Comments
MatlabUser
MatlabUser on 21 Dec 2020
How can I use linear discriminant analysis if the segmentation is unsupervised, I wanted to be automatic
Image Analyst
Image Analyst on 21 Dec 2020
Try imsegkmeans() or rgb2ind(), but you have to know how many different color classes you want.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!