Extract and Edge and Calculate its lenght

1 回表示 (過去 30 日間)
mustafa alnasser
mustafa alnasser 2014 年 1 月 11 日
コメント済み: KALYAN ACHARJYA 2019 年 4 月 24 日
Dear all ;
i have an image i found the edge and i need to calcuate it lentgh , what is the best way for that
my code as follow but i feel it is not correct.
clc; clear; a = imread('st-2.jpg'); b=rgb2gray(a); BW1=im2bw(b);
figure (1), imshow(BW1)
BW2=edge(BW1,'canny');
BW21 = bwmorph(BW2,'remove');
figure (2), imshow(BW21)
[L,NUM] = bwlabel(BW21,8);
[m,c] = find(L == 1);
S = regionprops(L,'Area');
r=struct2array(S);
[l,w]=size(b);
  3 件のコメント
Md Mahbub Hossain
Md Mahbub Hossain 2019 年 4 月 15 日
Is there any reason that .jpg image is not good for image processing?
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 4 月 24 日
Please answer the question raised by @ImageAnalyst sir
Length means?

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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by