MATLAB Answers

machine learning for medical data analysis

2 views (last 30 days)
Mohamed Nasr
Mohamed Nasr on 22 Nov 2019
Commented: Mohamed Nasr on 25 Nov 2019
clear all
close all
clc
I = imread('b1.jpg');
figure;imshow(I);
patch = imcrop(I,[170, 35, 50 50]);
patchVar = std2(patch)^2;
DoS = 2*patchVar;
J = imbilatfilt(I,DoS);
K = imbilatfilt(I,DoS,2);
figure;
figure;imshow(I);
imshow(patch)
imshow(J); title(['Degree of Smoothing: ',num2str(DoS)])
imshow(K); title(['Degree of Smoothing: ',num2str(DoS),', Spatial Sigma: 2'])
what is error in this code?

  8 Comments

Show 5 older comments
Adam Danz
Adam Danz on 24 Nov 2019
Hmmm, run this line of code and tell us what you get
which('imbilatfilt')
% /MATLAB/toolbox/images/images/imbilatfilt.m % this is what I get
If the result is
which ('imbilatfilt')
'imbilatfilt' not found.
run this line, wait for the full list of installed toolboxes to appear, and then look for "Image Processing Toolbox " in the list.
ver()
If it's not listed, then it wasn't installed properly or those files aren't on the matlab path.

Sign in to comment.

Accepted Answer

the cyclist
the cyclist on 23 Nov 2019
Edited: the cyclist on 23 Nov 2019
That is a function from the Image Processing Toolbox. You should check to see if you have that toolbox installed and licensed.
Run these commands:
ver
license('inuse')

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.