<< imclose Morphological Operations imdilate >>

IPCV - Image Processing and Computer Vision Toolbox for Scilab >> Morphological Operations > imcreatese

imcreatese

Creating Structure Element for Morphological operation

Syntax

se = imcreatese(setype,r,c)

Parameters

setype :

Type of structure element, currently support 'rect', 'ellipse' and 'cross'

r :

Number of rows

c :

Number of colomns

se :

Created structure element

Description

The function constructs and returns the structuring element that can be further passed to any morphology filter. You can also construct an arbitrary mask yourself and use it as the structuring element

Examples

a = zeros(10,10);
a(4:7,4:7) = 1;
se = imcreatese('rect',3,3);
b = imdilate(a,se);
disp(b);

See also

Authors


Report an issue
<< imclose Morphological Operations imdilate >>