Skip to content

Image Threshold

Version v1

Apply a threshold to an image. The image must be in grayscale.

Type identifier

Use the following identifier in step "type" field: roboflow_core/threshold@v1to add the block as as step in your workflow.

Properties

Name Type Description Refs
name str The unique name of this step..
threshold_type str Type of Edge Detection to perform..
thresh_value int Threshold value..
max_value int Maximum value for thresholding.

The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.

Available Connections

Check what blocks you can connect to Image Threshold in version v1.

The available connections depend on its binding kinds. Check what binding kinds Image Threshold in version v1 has.

Bindings
  • input

    • image (image): The input image for this step..
    • threshold_type (string): Type of Edge Detection to perform..
    • thresh_value (integer): Threshold value..
    • max_value (integer): Maximum value for thresholding.
  • output

    • image (image): Image in workflows.
Example JSON definition of step Image Threshold in version v1
{
    "name": "<your_step_name_here>",
    "type": "roboflow_core/threshold@v1",
    "image": "$inputs.image",
    "threshold_type": "binary",
    "thresh_value": 127,
    "max_value": 255
}