|
a |
|
b/Image Segmentation/region growing/getAllSegsRG.m |
|
|
1 |
function [allSegs] = getAllSegsRG(dicomImage,threshold,thresholdEnd,... |
|
|
2 |
increment) |
|
|
3 |
%GETALLSEGSRG Summary of this function goes here |
|
|
4 |
% Detailed explanation goes here |
|
|
5 |
|
|
|
6 |
%make cell array for segs |
|
|
7 |
allSegs = cell(1,1); |
|
|
8 |
j = 1; |
|
|
9 |
%Loop through all possible parameters for region growing |
|
|
10 |
while(threshold <= thresholdEnd) |
|
|
11 |
|
|
|
12 |
%call function to run region growing segmentation |
|
|
13 |
allSegs{j} = regionGrowSegmentation(dicomImage,threshold); |
|
|
14 |
%increment threshold |
|
|
15 |
threshold = threshold + increment; |
|
|
16 |
%increment array position |
|
|
17 |
j = j + 1; |
|
|
18 |
end |
|
|
19 |
|
|
|
20 |
end |
|
|
21 |
|