How to make Minimum Spanning Tree of Image?

6 Ansichten (letzte 30 Tage)
Harinder  Kaur
Harinder Kaur am 3 Apr. 2016
Kommentiert: John Lee am 8 Jan. 2023
I want to make minimum spanning tree of particular image and edges weights are computed by features like color and intensity difference among two pixels.Please help in doing so, as i don't find the way how should i proceed..PLease Help..its Urgent...

Akzeptierte Antwort

Alex Taylor
Alex Taylor am 5 Apr. 2016
Bearbeitet: Alex Taylor am 6 Apr. 2016
The MATLAB Graph object does all kinds of great graph algorithm related things, including shortest paths, max flow, and minimum spanning trees.
As of right now, there are no utility functions that ship with MATLAB for moving a 2-D image grid to a graph object representation, but there is a MATLAB File Exchange contribution that does exactly this:
Together, it is very easy to do what you want:
A = imread('pout.tif');
G = imageGraph(size(A));
tree = minspantree(G);
  4 Kommentare
Harinder  Kaur
Harinder Kaur am 13 Apr. 2016
I have installed R2015a version.But i am not able to get R2015b version.Could you please tell me some alternative?
John Lee
John Lee am 8 Jan. 2023
Hi Alex,
How do you visualize the results of "G" and "tree"?
Thanks,

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by