已回答 Image Segmentation built into MATLAB?!
Hi Philip, look at the function watershed. In addition, there is a very good example using morphological reconstruction.
do...
14 years 前 | 0
已回答 Draw normal to edge detection image
You can compute surface normals using the function surfnorm. Then, you can use quiver to draw the vectors.
HTH, W.
已回答 finding distance within a range of distance
How about
[X,Y] = meshgrid(1:size(I,2),1:size(I,1));
ix = find(I == 5);
d = hypot(bsxfun(@minus,X(ix),X(ix)'),bsxfun(@min...