Code samples for threshold.
Automatically generated by the Every Method demo.
// Automated test of threshold - Typical Values
// TIEVisionImage.threshold - Type: Binary
ImageEnView1.IEBitmap.GetIEVisionImage().threshold( 0, 255, 0 or ievTHRESH_OTSU ); // Threshold Type: "Binary"
ImageEnView1.Update(); // Show changes in our viewer

// Automated test of threshold - Alpha Channel - Typical Values
// TIEVisionImage.threshold - Type: Binary
ImageEnView1.IEBitmap.GetIEVisionImage().threshold( 0, 255, 0 or ievTHRESH_OTSU ); // Threshold Type: "Binary"
ImageEnView1.Update(); // Show changes in our viewer

// Automated test of threshold - Random Values
// TIEVisionImage.threshold at 127 - Type: Trunc
ImageEnView1.IEBitmap.GetIEVisionImage().threshold( 127, 128, 2 ); // Threshold Type: "Trunc"
ImageEnView1.Update(); // Show changes in our viewer

// Automated test of threshold - Alpha Channel - Random Values
// TIEVisionImage.threshold at 127 - Type: Trunc
ImageEnView1.IEBitmap.GetIEVisionImage().threshold( 127, 128, 2 ); // Threshold Type: "Trunc"
ImageEnView1.Update(); // Show changes in our viewer
