problem with strel function

22 ビュー (過去 30 日間)
fatemeh n
fatemeh n 2020 年 10 月 6 日
コメント済み: Walter Roberson 2020 年 10 月 9 日
Hi
I want to apply 'disk' structure on my balck and white image, however it rises an error as followe:
Undefined function or variable 'MakeDiskStrel'.
Error in main (line 25)
se =MakeDiskStrel();
my code:
I = imread('img.jpg');
gray = rgb2gray(I);
bw1 = imbinarize(gray);
bw2 = imfill(bw1,'holes');
se = strel('disk',10);
cl=imclose(bw2,se);
imshow(cl)
I am using MATLAB R2018b
  12 件のコメント
fatemeh n
fatemeh n 2020 年 10 月 9 日
I went through strel.m hopefully the space was there. However, I am considering reinstalling the software maybe something else is broken here. Thanks for your time.
Walter Roberson
Walter Roberson 2020 年 10 月 9 日
what shows up for
which -all strel
It looks like you are activating a different file.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by