ImLab Scilab Function
Last update :

imclosehole - close holes in objects in an image

Calling Sequence

[closed_image] = imclosehole(image_data)

Parameters

Description

This function close holes in an object in image. Background value must be 0 and object value must be 1. All pixels having value 0 and surrounded by ones are put to 1 to close holes in object.

Examples

-Image before close hole :
	0000000
	0011100
	0010100
	0011100
	0000000

-Image after close hole :
	0000000
	0011100
	0011100
	0011100
	0000000