forked from TunaliIlke/RDRG-v2.1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditSliceNum.m
36 lines (32 loc) · 1.04 KB
/
editSliceNum.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
33
34
35
36
function sliceNew = editSliceNum(slices)
% *************************************************************************
%function sliceNew = editSliceNum(slices)
% *************************************************************************
%
% REFERENCE:
%
% [1] Tunali et al. (2017). "Radial gradient and radial deviation radiomic
% features from pre-surgical CT scans are associated with survival among
% lung adenocarcinoma patients". Oncotarget, 8:96013-26.
% doi: https://doi.org/10.18632/oncotarget.21629
%
% Please read the readme.txt file for information on the usage of function.
%
% For questions: <Ilke.Tunali@moffitt.org>
%
% HISTORY:
%
% Created: February 2017
% Version 2.1 (January 2018)
%
% --> Copyright (C) 2018 Ilke Tunali
% *************************************************************************
if length(slices)>5 && length(slices)< 10
slices(1) =[];
slices(end) = [];
elseif length(slices)>= 10
slices(1:2) =[];
slices(end) = [];
slices(end) = [];
end
sliceNew = slices;