ClearImage .NET API
Fatten Method (CiTools)
Example 





Inlite.ClearImage Namespace > CiTools Class : Fatten Method
Number of pixels to add in each direction
Fatten image
Syntax
'Declaration
 
Public Function Fatten( _
   ByVal Pixels As System.Integer, _
   ByVal Direction As EMorphDirections _
) As System.Integer
'Usage
 
Dim instance As CiTools
Dim Pixels As System.Integer
Dim Direction As EMorphDirections
Dim value As System.Integer
 
value = instance.Fatten(Pixels, Direction)
public System.int Fatten( 
   System.int Pixels,
   EMorphDirections Direction
)
public function Fatten( 
    Pixels: System.Integer;
    Direction: EMorphDirections
): System.Integer; 
public function Fatten( 
   Pixels : System.int,
   Direction : EMorphDirections
) : System.int;
public:
System.int Fatten( 
   System.int Pixels,
   EMorphDirections Direction
) 

Parameters

Pixels
Number of pixels to add in each direction
Direction
Remarks
Method requires bi-tonal image (object.Image.BitsPerPixel = 1).
Example
void MorphologicalOps(string imageFile, string imageFileOut)
{
    // Open image file
    CiServer ci = Inlite.ClearImageNet.Server.GetThreadServer();
    CiTools Tools = ci.CreateTools();
    Tools.Image.Open(imageFile, 1);
    // Do processing
    Tools.Fatten(2, EMorphDirections.ciMorphAllNeighbours);
    Tools.Trim(4, EMorphDirections.ciMorphVert);
    // Save results
    Tools.Image.SaveAs(imageFileOut, EFileFormat.ciEXT);
}
Sub MorphologicalOps(imageFile As String, imageFileOut As String)
    ' Open image file
    Dim ci As CiServer = Inlite.ClearImageNet.Server.GetThreadServer()
    Dim Tools As CiTools = ci.CreateTools()
    Tools.Image.Open(imageFile, 1)
    ' Do processing
    Tools.Fatten(2, EMorphDirections.ciMorphAllNeighbours)
    Tools.Trim(4, EMorphDirections.ciMorphVert)
    ' Save results
    Tools.Image.SaveAs(imageFileOut, EFileFormat.ciEXT)
End Sub
See Also

Reference

CiTools Class
CiTools Members
Trim Method
Fatten Method