Undefined function 'offsetstrel' for input arguments of type 'char'.

1 visualizzazione (ultimi 30 giorni)
I'm getting the following error when I try to run the following code. How can i fix it??
Undefined function 'offsetstrel' for input arguments of type 'char'.
se = offsetstrel('ball',11,90);
BW1 = imdilate(binaryImage,se);
imshow(BW1);
  2 Commenti
Star Strider
Star Strider il 3 Dic 2018
It’s part of the Image Processing Toolbox, and has been around for at least a decade. If you have the Toolbox installed, you should have all the functions in your posted code.
Zee Idrees
Zee Idrees il 3 Dic 2018
the toolbox is installed but i don't know why it still giving that error.

Accedi per commentare.

Risposta accettata

Star Strider
Star Strider il 3 Dic 2018
the toolbox is installed but i don't know why it still giving that error. ¹
You may have a corrupted path.
Run these from your Command Window or a script:
restoredefaultpath
rehash toolboxcache
Then try again. (You may have to close and restart MATLAB after this as well.)
If that fails to correct the problem, use the Contact Us link in the top right corner of this page, and request Tech Support. (Run the ver command first, since you will need that output.)

Più risposte (1)

madhan ravi
madhan ravi il 3 Dic 2018
Didn't get any errors?
maybe try clear all and try again
>> se = offsetstrel('ball',11,90);
>> se
se =
offsetstrel is a ball shaped offset structuring element with properties:
Offset: [25×25 double]
Dimensionality: 2
>>

Prodotti


Release

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by