Extract max height of each blob of an image with many blobs
Ältere Kommentare anzeigen
%Loaded the variables on mat-file workspace: data file is given as height %Identified the threshold for removing the background using histogram %Plot of the data height scaling it %Save the data above 200 %Everything that was below 200 is not a number, above 200 is 1. %Transformed the data height to binary data %Created a structered element to be used on the erosion fuctions. In this a disk, size 5 was used. %Used Erode function to output the minimum value of the image data in the structuring element %Used Dilate funtion to outputs the maximum value of the image; %Blob; Separate the images in blobs and indentify the number of blobs %Identified 43 blobs using regionprops which gives Area, centroid and a boundingbox. %How to extract the max height of each blob? I have two set of data one is height(output data froma tool, each pixel one height. Transformed this to binary data.
Antworten (1)
Mohammads M's
am 22 Jan. 2012
0 Stimmen
Thank you so much,..........
Kategorien
Mehr zu Region and Image Properties finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!