creates an indexed image X from an intensitiy image I using multiple threshold levels. A scalar integer value n sets the levels to
1 2 n-1 -, -, ..., --- n n nX = grayslice(I,5);
For irregular threshold values a real vector v can be used. The values must be in the range [0,1].
X = grayslice(I,[0.1,0.33,0.75,0.9])
See also: im2bw