Converts the image into a binary format by separating pixels into two classes based on intensity. Options include:
- Binary: Pixel values above the threshold are set to max (255), otherwise 0.
- Binary Inverse: Pixel values above the threshold are set to 0, otherwise max (255).
- Trunc: Pixel values above the threshold are capped at the threshold value, otherwise set to 0.
- To Zero: Pixel values above the threshold remain unchanged, otherwise set to 0.
- To Zero Inverse: Pixel values above the threshold are set to 0, otherwise unchanged.
- Adaptive Mean: The image is divided into small regions; thresholds are determined by the average intensity of each region.
- Adaptive Gaussian: Similar to Adaptive Mean, but uses a weighted average intensity for the threshold.
























