Rearrange Binary regions based on centroids
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
John
am 23 Sep. 2014
Beantwortet: Image Analyst
am 31 Okt. 2014
I have a binary map, BW, and the Centroids for each region in BW. If I randomize the Centroids, how can I create another binary map with the same region shapes as BW but whose centers corresponds to the randomized Centroids?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 31 Okt. 2014
Get the blobs, use regionprops() to find their bounding box and then use indexing to extract out the bounding box as subimages. Then create a new, blank canvass (image) and paste the subimages in at random locations. See my copy and paste demo, attached.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!