-
Notifications
You must be signed in to change notification settings - Fork 15
/
test.m
32 lines (30 loc) · 898 Bytes
/
test.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% % % % Disclaimer:
% % This code is provided "as is". It can be used for research purposes only and all the authors
% % must be acknowledged.
% % % % Authors:
% % Luca Giancardo
% % % % Date:
% % 2010-03-01
% % % % Version:
% % 1.0
% % % % Description:
% % Test the Exudate segmentation on the DMED dataset
% Add directory contatinig the dataset managing class
addpath('misc');
% The location of the dataset
DMEDloc = './DMED';
% load the dataset
data = Dmed( DMEDloc );
% Show the results of the exudate detection algorithm
for i=1:data.getNumOfImgs()
rgbImg = data.getImg(i); % get original image
[onY, onX] = data.getONloc(i); % get optic nerve location
imgProb = exDetect( rgbImg, 1, onY, onX ); % segment exudates
% display results
figure(1);
imagesc(rgbImg);
figure(2);
imagesc(imgProb);
% block execution up until an image is closed
uiwait;
end