reflect

Reflect structuring element

Syntax

SE2 = reflect(SE)

Description

SE2 = reflect(SE) reflects a structuring element through its center. The effect is the same as if you rotated the structuring element's domain 180 degrees around its center (for a 2-D structuring element). If SE is an array of structuring element objects, then reflect(SE) reflects each element of SE, and SE2 has the same size as SE.

Class Support

SE and SE2 are STREL objects.

Examples

se = strel([0 0 1; 0 0 0; 0 0 0])
se2 = reflect(se)
se =
Flat STREL object containing 1 neighbor.

Neighborhood:
     0     0     1
     0     0     0
     0     0     0

se2 =
Flat STREL object containing 1 neighbor.

Neighborhood:
     0     0     0
     0     0     0
     1     0     0

See Also

Was this topic helpful?