[b4b313]: / Image Segmentation / otsu / getAllSegsOtsu.m

Download this file

17 lines (13 with data), 472 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
function [allSegs] = getAllSegsOtsu(dicomImage,numOfClass )
%getAllSegsOtsu Summary of this function goes here
% Detailed explanation goes here
allSegs = cell(1,1);
%Segment using otsu on the range of classes provided in param
%numOfClass
for n = 1:numOfClass
%Temp variable to indicate the current class count
nc = n + 1;
%run otsu on the image
allSegs{n} = otsu(dicomImage,nc);
end
end