Operator Reference
bin_threshold (Operator)
bin_threshold
— Segment an image using an automatically determined
threshold.
Warning
bin_threshold
is obsolete and is only provided for
reasons of backward compatibility.
The operator will be removed with HALCON 25.05.
New applications should use
the operator binary_threshold
instead.
Signature
Description
bin_threshold
segments a single-channel gray value image
using an automatically determined threshold. First, the relative
histogram of the gray values is determined. Then, relevant minima
are extracted from the histogram, which are used as parameters for a
thresholding operation. In order to reduce the number of minima,
the histogram is smoothed with a Gaussian, as in
auto_threshold
. The mask size is enlarged until there
is only one minimum in the smoothed histogram. The selected region
contains the pixels with gray values from 0 to the minimum or for real images
from the smallest value to the respective minimum. This
operator is, for example useful for the segmentation of dark
characters on a light paper.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
- Automatically parallelized on internal data level.
Parameters
Image
(input_object) singlechannelimage(-array) →
object (byte / uint2 / real)
Input image.
Region
(output_object) region(-array) →
object
Dark regions of the image.
Example (HDevelop)
read_image (Image, 'letters') bin_threshold (Image, Seg) connection (Seg, Connected)
Module
Foundation