Applies Kapur
segmentation to the input image.
function call:
[out_img1]=vsg('KapurSeg',in_img1);
Arguments:
in_img1
- input image, 3 channel
Description:
out_img1
– Returns a binary image which is the input
image after it has been thresholded. The threshold level is chosen from
the input image using the Kapur algorithm.
Example:
in_img1 = openimage('lake.jpg');
[out_img1]=vsg('KapurSeg',in_img1);
figure,image(uint8(in_img1)),title('Input Image');
figure,image(uint8(out_img1)),title('Kapur Segmented image');