function varargout = biomedical(varargin)
% biomedical M-file for biomedical.fig
% biomedical, by itself, creates a new biomedical or raises the existing
% singleton*.
%
% H = biomedical returns the handle to a new biomedical or the handle to
% the existing singleton*.
%
% biomedical('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in biomedical.M with the given input arguments.
%
% biomedical('Property','Value',...) creates a new biomedical or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before biomedical_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to biomedical_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help biomedical
% Last Modified by GUIDE v2.5 01-Jan-2004 00:26:31
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @biomedical_OpeningFcn, ...
'gui_OutputFcn', @biomedical_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before biomedical is made visible.
function biomedical_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to biomedical (see VARARGIN)
% Choose default command line output for biomedical
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes biomedical wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = biomedical_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
[name,dire]=uigetfile('*.*','Input Text Image');
if name==0
return
end
img=imread(fullfile(dire,name));
global filename;
filename=fullfile(dire,name);
figure,imshow(img)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
global filename;
rgb = imread(filename);
I = rgb2gray(rgb);
hy = fspecial('sobel');
hx = hy';
Iy = imfilter(double(I), hy, 'replicate');
Ix = imfilter(double(I), hx, 'replicate');
gradmag = sqrt(Ix.^2 + Iy.^2);
figure, imshow(gradmag,[])
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
global filename;
X=imread(filename);
X=rgb2gray(X);
[a1,a2]=size(X);
figure;
[cA1,cH1,cV1,cD1] = dwt2(X,'haar');
[C,S] = wavedec2(X,1,'haar');
A1 = wrcoef2('a',C,S,'haar',1);
H1 = wrcoef2('h',C,S,'haar',1);
V1 = wrcoef2('v',C,S,'haar',1);
D1 = wrcoef2('d',C,S,'haar',1);
colormap(gray);
subplot(2,2,1); image(wcodemat(A1,192));
subplot(2,2,2); image(wcodemat(H1,192));
subplot(2,2,3); image(wcodemat(V1,192));
subplot(2,2,4); image(wcodemat(D1,192));
re_ima1 = idwt2(cA1,cH1,cV1,cD1,'haar');
re_ima=uint8(re_ima1);
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
global filename;
I=imread(filename);
m = zeros(size(I,1),size(I,2));
m(22:55,16:79) = 1;
I = imresize(I,.5);
m = imresize(m,.5);
figure;
seg = region_seg(I, m, 250);
global filename;
S=im2double(imread(filename));
I = rgb2gray(S);
hy = fspecial('sobel');
hx = hy';
Iy = imfilter(double(I), hy, 'replicate');
Ix = imfilter(double(I), hx, 'replicate');
gradmag = sqrt(Ix.^2 + Iy.^2);
BW2 = bwareaopen(I, 50);
L = medfilt2(I,[3 3]);
J = imrotate(S,35,'bilinear');
hx = [+1 0;0 -1]; hy = [0 +1;-1 0];
Gx = imfilter(I,hx,'conv','same','replicate');
Gy = imfilter(I,hy,'conv','same','replicate');
G = sqrt(Gx.^2+Gy.^2);
[VSFAT Threshold]=edge(I,'sobel','vertical');
Threshold
length=18; tlevel=0.2;
B=im2bw(I,tlevel);
hx = [+1 0;0 -1]; hy = [0 +1;-1 0];
Gx = imfilter(I,hx,'conv','same','replicate');
Gy = imfilter(I,hy,'conv','same','replicate');
G = sqrt(Gx.^2+Gy.^2);
BW = im2bw(G.^2, 6*mean(G(:).^2));
figure,imshow(edge(I,'roberts'))
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
global filename;
I = imread(filename);
if ndims(I)==3
I = rgb2gray(I);
end
BW = edge(I, 'sobel');
figure,imshow(BW);
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)
global filename
img=imread(filename);
if isrgb(img)
imggr = rgb2gray( img );
else
imggr = img;
end
SwitchWaitbars = 'off';
TypeOfFP = 'HL';
TypeOfDescriptor = 'SIFT';
NOfWindows = 4;
AngleBinDescript = 45;
ThreshDescript = 0.2;
FactorDescript = 1.5;
StepSampleFunction = @(x) sqrt(1+x^2);
TypeOfCornerDetector = 'HarmonicMean';
TypeOfNBHOOD = 'const';
NBHOOD = ones(3);
BorderDistance = 4*NOfWindows;
ThreshType = 'const';
HarrisThresh = 10;
k = 0.055;
Dilate = 'no';
radius = 2;
sigma_nmbr = 9;
dispPlaces = 1;
dispMOCS = 0;
dispMatches = 1;
ThreshMainOrient = 0.8;
FactorMainOrient = 1.5;
AngleBinMainOrient = 10;
TypeOfMainOrient = 'some';
TypeOfSearch = 'determ';
HelpScalarOrVector = 2;
TypeOfMatchThresh = 'first/second';
ThreshFS = 0.78;
ThreshF = 0.5;
[ HrLPoints1 ] = harrislpls( imggr, TypeOfNBHOOD, NBHOOD, TypeOfCornerDetector, BorderDistance, ThreshType, HarrisThresh, k, Dilate, radius, sigma_nmbr, dispPlaces, SwitchWaitbars );
[ HrLPoints2 ] = harrislpls( imggr, TypeOfNBHOOD, NBHOOD, TypeOfCornerDetector, BorderDistance, ThreshType, HarrisThresh, k, Dilate, radius, sigma_nmbr, dispPlaces, SwitchWaitbars );
[ HrLPoints3 ] = harrislpls( imggr, TypeOfNBHOOD, NBHOOD, TypeOfCornerDetector, BorderDistance, ThreshType, HarrisThresh, k, Dilate, radius, sigma_nmbr, dispPlaces, SwitchWaitbars );
[ HrLOrntPoints1 ] = mainOrient( HrLPoints1, imggr, ThreshMainOrient, FactorMainOrient, AngleBinMainOrient, TypeOfMainOrient, SwitchWaitbars );
[ HrLOrntPoints2 ] = mainOrient( HrLPoints2, imggr, ThreshMainOrient, FactorMainOrient, AngleBinMainOrient, TypeOfMainOrien
没有合适的资源?快使用搜索试试~ 我知道了~
biomedical(5-8-15).rar_Biomedical Image _The Fields_biomedical
共7个文件
jpg:4个
fig:1个
m:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 39 浏览量
2022-09-19
22:21:30
上传
评论
收藏 57KB RAR 举报
温馨提示
biomedical image processing is important in various fields of medical environment.the edge detection using different edge detectors
资源推荐
资源详情
资源评论
收起资源包目录
biomedical(5-8-15).rar (7个子文件)
biomedical(5-8-15)
img
C_0066-1.jpg 17KB
C_0145_1(1).jpg 11KB
C_0145_1.jpg 11KB
C_0156_1.jpg 10KB
biomedical.asv 14KB
biomedical.fig 5KB
biomedical.m 14KB
共 7 条
- 1
资源评论
weixin_42651887
- 粉丝: 79
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功