problem with strel function
8 views (last 30 days)
Show older comments
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 Comments
Walter Roberson
on 9 Oct 2020
what shows up for
which -all strel
It looks like you are activating a different file.
Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
