welcom i need help

5 ビュー (過去 30 日間)
fatima ali
fatima ali 2014 年 11 月 11 日
コメント済み: fatima ali 2014 年 11 月 11 日
i need code or function in matlab to convert color image to gray and convert gray to binary first employ Canny edge detection with binary thresholding on the original image to keep the most signicant edges only, which reliably represent foot contours.and next step morphological dilation using a square structuring element to close the boundary.Last, we employ morphological erosion on this image.....thanks

採用された回答

Image Analyst
Image Analyst 2014 年 11 月 11 日
What was wrong with the answer I gave you in your duplicate question? http://www.mathworks.com/matlabcentral/answers/160818#answer_157274
Why simply just ask again?
  3 件のコメント
Image Analyst
Image Analyst 2014 年 11 月 11 日
It found the boundary. Not sure why it matters how it was done. Sure you could use something that's not as good and then try a bunch of things to fix it up, but why, when there's a simpler and better way. I never would have looked at that image and said "Let's use edge detection."
fatima ali
fatima ali 2014 年 11 月 11 日
sure ...but i work Project to extraction feature from foot ... need this step to project .. 1-thershold no number like 0.5 i need Equation thershold run on all image 2- convert image binary and detection edge using canny 3- next step morphological dilation using a square structuring element to close the boundary.Last, we employ morphological erosion on this image can you help me....thank you very much

サインインしてコメントする。

その他の回答 (1 件)

jason
jason 2014 年 11 月 11 日
clear
clc
close all;
img_file = 'put your image here';
img_wk = imread(img_file);
figure(1), imshow(img_wk);
img_wk_gs = rgb2gray(img_wk); %converts color image to grayscale
figure(2), imshow(img_wk_gs);
img_wk_gs_edge = edge(img_wk_gs,'canny');
figure(3), imshow(img_wk_gs_edge);
img_wk_gs_edge_sobel = edge(img_wk_gs,'sobel');
figure(4), imshow(img_wk_gs_edge_sobel);
img_wk_bw = im2bw(img_wk, 0.7); %converts to black and white binary image
figure(5), imshow(img_wk_bw);
  2 件のコメント
fatima ali
fatima ali 2014 年 11 月 11 日
thank you very much ....but i no need thershold no 0.7 i need Equation thershold ....in this program you no run dilation using a square structuring element to close the boundary.Last, we employ morphological erosion on this image.... thanks
jason
jason 2014 年 11 月 11 日
You're welcome

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by