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