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