You are here : matlabImage Processinggrayslice

grayslice() - Image Processing

X = grayslice(I, n) thresholds
the intensity image I returning an indexed image
in X. grayslice uses the threshold values:
X = grayslice(I, v) thresholds the intensity
image I using the values of v,
where v is a vector of values between 0 and 1,
returning an indexed image in X.You can view the thresholded image using imshow(X,map) with
a colormap of appropriate length.


Syntax

X = grayslice(I, n)


Example

I = imread('snowflakes.png');
X = grayslice(I,16);
imshow(I)
figure, imshow(X,jet(16))


Output / Return Value


Limitations


Alternatives / See Also


Reference