I am trying to compute the background markers of an image and in that process I am first binarizing the image by thresholding.For that I am using "imbinarize" and it is not working.I have given the description below.

3 Ansichten (letzte 30 Tage)
Given is the code below.Also Iobrcbr is of type 512*512 uint8 and the code gives the following error-"Undefined function 'imbinarize' for input arguments of type 'uint8'."
%%Computing Background Markers
bw=imbinarize(Iobrcbr);
figure
imshow(bw), title('Thresholded opening-closing by reconstruction (bw)')

Akzeptierte Antwort

Massimo Zanetti
Massimo Zanetti am 5 Okt. 2016
In Matlab there is no "imbinarize" function. If you have such funciton, copy it into the folder where you are running your script.

Weitere Antworten (2)

Thorsten
Thorsten am 5 Okt. 2016
In the Image processing TB there is a function
im2bw

Prachi Sharma
Prachi Sharma am 5 Okt. 2016
Bearbeitet: Prachi Sharma am 5 Okt. 2016
First of all thank you guys.Also after reading both the comments I got to know that some functions work only in latest 2016 version of matlab.Do you guys know what is the alternate command I can use for computing watershed transform? The command "watershed" works only with 2016 and I have an earlier version not the latest one.

Kategorien

Mehr zu Computer Vision Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by