.. _thresholdperiodic: thresholdperiodic ***************** **Syntax:** :code:`thresholdperiodic(image, period start, period end, min, max)` Threshols a range from the image where pixel values are from periodic range (e.g. angle). Sets to one all pixels whose value is in ]min, max] mod period, and sets all other pixels to zero. If threshold range is larger than period, sets all pixels to 1. If threshold range start is larger than or equal to threshold range end, sets all pixels to 0. This command can be used in the distributed processing mode. Use :ref:`distribute` command to change processing mode from local to distributed. Arguments --------- image [input & output] ~~~~~~~~~~~~~~~~~~~~~~ **Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image Image to process. period start [input] ~~~~~~~~~~~~~~~~~~~~ **Data type:** real Minimum of the period of pixel values. period end [input] ~~~~~~~~~~~~~~~~~~ **Data type:** real Maximum of the period of pixel values. min [input] ~~~~~~~~~~~ **Data type:** real Minimum of the threshold range. max [input] ~~~~~~~~~~~ **Data type:** real Maximum of the threshold range.