Number Range

This function block provides an easy visual slider to choose a numeric interval (minimum and maximum). It is useful for defining threshold ranges, bounding values, or supplying a pair of numbers to other blocks that accept ranges.

📥 Inputs

Minimum — optional numeric input that, when connected, sets the left limit of the slider.

Maximum — optional numeric input that, when connected, sets the right limit of the slider.

(These are input sockets. If left unconnected the slider values are used.)

📤 Outputs

Range — the currently selected min and max values as a pair (provided via the output socket). This output can be consumed by other blocks that accept a numeric range.

🕹️ Controls

Min - Max — a text label that displays the current selected range.

Range Slider — a horizontal two‑handle slider you can drag to change the minimum and maximum values visually.

(human-friendly controls shown on the block; connect inputs to override slider limits when needed)

⚙️ Running mechanism

  • The block continuously provides the currently selected range through the Range output.

  • If the Minimum or Maximum input sockets are connected, their values will set the slider limits dynamically. If they are not connected, the slider’s own limits are used.

  • Adjusting the Range Slider updates the Min - Max label immediately and changes the output pair.

  • The block is lightweight and designed to be used as a parameter provider for thresholds and comparisons in real time.

🎯 Features

  • Visual, easy-to-use two‑handle slider for selecting a numeric interval.

  • Inputs override the slider range for programmatic control.

  • Outputs a ready-to-use pair suitable for blocks that accept a range.

  • Immediate UI feedback via the visible label.

📝 Usage tips

  • Use this block whenever you need a convenient way to pick a numeric interval for thresholding, bounding, or filtering operations.

  • Connect Minimum or Maximum if you want another block to control slider limits (for example, a Number Input used for dynamic bounds).

  • Feed the Range output into comparison or thresholding blocks to apply the chosen interval.

💡 Tips and Tricks

  • Combine with Number Input to let a user or another block set one end of the range dynamically.

  • Use with logic comparison blocks like Greater and Smaller to test whether a value lies inside or outside the chosen range.

  • Drive image thresholding or color filters by connecting the Range output to blocks such as Image Threshold or HSV Filter when you need a lower/upper bound for pixel values.

  • For line-based analysis, use the selected range to limit the inspected region before feeding the image into Histogram On Line or other analysis blocks.

  • Use together with detection blocks like Find Object to restrict matching to specific size or coordinate ranges (e.g., filter results by object size or location).

(hints reference only blocks available in the system for easy combination)

🛠️ Troubleshooting

  • If the displayed range does not match expectations, check if Minimum or Maximum inputs are connected; those override the slider.

  • If downstream blocks appear unresponsive to range changes, ensure they accept a range type and are connected to the block’s Range output.

  • If you need a fixed range, leave input sockets unconnected and set the slider manually.

Last updated

Was this helpful?