<< imerode Morphological Operations imhitmiss >>

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

imgradient

Image gradient

Syntax

imout = imgradient(imin,se)

Parameters

imin :

Input image

se :

Structure element

imout :

Output image

Description

This operation is the difference between the dilation and the erosion of an image. It is useful for finding the outline of an object .(it is assumed that the objects are bright on a dark foreground)

Examples

S = imread(fullpath(getIPCVpath() + "/images/morpex.png"));
se = imcreatese('ellipse',3,3);
S2 = imgradient(S,se);
imshow(S2);

See also

Authors


Report an issue
<< imerode Morphological Operations imhitmiss >>