Trim image
Visual Basic |
---|
Public Sub Trim( _ ByVal Pixels As Long, _ ByVal Direction As EMorphDirections _ ) |
- Pixels
- Number of pixels to trim from each side
- Direction
Value Description ciMorphAllNeighbours Modify all neighboring pixels ciMorphDiag Modify pixels located diagonally ciMorphHorz Modify pixels located to the left and right ciMorphHorzAndVert Modify pixels located left, right, up or down ciMorphVert Modify pixels located up and down
!MISSING PHRASE '_COLORFAIL'!
Morphological Functions
VB Example (Visual Basic) | Copy Code |
---|---|
Public Sub T_Morph(ByRef Tools As CiTools) Tools.Fatten 2, ciMorphAllNeighbours Tools.Trim 4, ciMorphVert Tools.Outline Tools.Skeleton End Sub |
CiTools Object | CiTools Members | Fatten | Trim | Outline | Skeleton