problem with strel function

조회 수: 8 (최근 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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by