Extract max height of each blob of an image with many blobs
Show older comments
%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.
Answers (1)
Mohammads M's
on 22 Jan 2012
0 votes
Thank you so much,..........
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!