Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vaanathi Sundaresan
LOCATE-BIANCA
Commits
1846b1bd
Commit
1846b1bd
authored
Mar 08, 2019
by
Vaanathi Sundaresan
Browse files
Changes in voronoi tesselation in LOCATE_LOO_testing.m
parent
252f19a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
LOCATE_LOO_testing.m
View file @
1846b1bd
...
...
@@ -130,17 +130,24 @@ for subj = 1:numel(xdir)
inv_factor
=
1.
/
factor
;
% Up/downsampling the images
lesionmask
=
imresizen
(
lesionmask
,
factor
);
lesionmask
_resized
=
imresizen
(
lesionmask
,
factor
);
biancamask
=
imresizen
(
single
(
biancamask
),
factor
);
brainmask
=
imresizen
(
single
(
brainmask
),
factor
);
biancamask
=
(
biancamask
>
0
)
&
(
brainmask
>
0
);
% Performing Voronoi tessellation on resampled images
[
lesionmask
,
index_mask
,
index_numbers
]
=
LOCATE_Voronoi_tessellation
(
lesionmask
,
biancamask
,
inv_factor
);
[
~
,
index_mask
,
index_numbers
]
=
LOCATE_Voronoi_tessellation
_resized
(
lesionmask
_resized
,
biancamask
,
inv_factor
);
if
verbose
fprintf
(
'Voronoi Tessellation done! \n'
)
end
numel
(
index_numbers
)
index_mask
=
imresizen
(
index_mask
,
inv_factor
,
'nearest'
);
if
verbose
fprintf
(
'Resizing of Index mask done! \n'
)
end
index_numbers
=
setdiff
(
union
(
index_mask
(:),[]),
0
);
numel
(
index_numbers
)
% Extractng features from Voronoi regions individually
[
flairintfeats
,
ventdistfeats
,
lesvolfeats
,
minbestthr_values
,
maxbestthr_values
,
meanbestthr_values
,
index_numbers
,
index_mask
]
...
=
LOCATE_feature_extraction
(
lesionmask
,
ventdistmap
,
flairimage
,
manualmask
,
index_mask
,
index_numbers
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment