machine learning for medical data analysis
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
Adam Danz
2019-11-24
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.
采纳的回答
the cyclist
2019-11-23
编辑:the cyclist
2019-11-23
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 3-D Volumetric Image Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!