darsia.detect_value#

detect_value(img, value, tolerance=0.01)[source]#

Detects a value in an image.

Parameters:
imgdarsia.ScalarImage

The image to detect the value in.

valuefloat

The value to detect.

tolerancefloat, optional

The tolerance for the value detection. Defaults to 0.1.

Returns:
darsia.VoxelArray

Pixels with the detected value.