How to obtain data of bwdist function?

1 view (last 30 days)
bob
bob on 10 Jul 2012
Hi everyone, I'm doing a morphological study on a micrograph.As you see the code that I use(see the code below), I apply bwdist function and then I get the contour plot. Everything is perfect. But after that, I'd like to get the bwdist data in the form of MAXIMUM, MINIMUM and MEAN. and also the distribution of each desired value of bwdist. What can I do?
a = imread('open_disk_15.jpg');
b=im2bw(a);
c = bwdist(b,'euclidean');
figure
subplot(1,1,1), subimage(mat2gray(c)), title('Euclidean');
hold on, [w,h]= imcontour(c,20)
clabel(w,h);
  1 Comment
Image Analyst
Image Analyst on 10 Jul 2012
Edited: Image Analyst on 10 Jul 2012
Surely you know about the mean(), max(), and min() functions, so what does "in the form of MAXIMUM, MINIMUM and MEAN" mean?
Secondly, what are your " desired" values of bwdist? It gives a lot of values, but which are the values that you desire?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!