void ScaleImage(string imageFile, string imageFileOut)
{
// Open image file
CiServer ci = Inlite.ClearImageNet.Server.GetThreadServer();
CiTools Tools = ci.CreateTools();
Tools.Image.Open(imageFile, 1);
Tools.ScaleImage(0.5, 0.5);
// Save results
Tools.Image.SaveAs(imageFileOut, EFileFormat.ciEXT);
}
Sub ScaleImage(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)
Tools.ScaleImage(0.5, 0.5)
' Save results
Tools.Image.SaveAs(imageFileOut, EFileFormat.ciEXT)
End Sub