Skip to content

monotonyMonotonyMonotonymonotonymonotony🔗

Short description🔗

monotonyMonotonyMonotonymonotonymonotony — Calculating the monotony operation.

Signature🔗

monotony( image Image, out image ImageMonotony )void Monotony( const HObject& Image, HObject* ImageMonotony )static void HOperatorSet.Monotony( HObject image, out HObject imageMonotony )def monotony( image: HObject ) -> HObject

Herror monotony( const Hobject Image, Hobject* ImageMonotony )

Herror T_monotony( const Hobject Image, Hobject* ImageMonotony )

HImage HImage::Monotony( ) const

HImage HImage.Monotony( )

Description🔗

The operator monotonyMonotony calculates the monotony operator. Thereby the points which are strictly smaller than the current gray value will be counted in the 8 neighborhood. This number will be entered into the output imaged.

If there is a strict maximum, the value 8 is returned; in case of a minimum or a plateau, the value 0 will be returned. A ridge or a slope will return the corresponding intermediate values.

The monotony operator is often used to prepare matching operations as it is invariant with regard to lightness modifications.

Attention🔗

Note that filter operators may return unexpected results if an image with a reduced domain is used as input. Please refer to the chapter Filters.

Execution information🔗

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 channel level.

  • Automatically parallelized on domain level.

Parameters🔗

Imageimageimage (input_object) (multichannel-)image(-array) → object (byte / int2 / uint2)HObject (byte / int2 / uint2)HImage (byte / int2 / uint2)HObject (byte / int2 / uint2)Hobject (byte / int2 / uint2)

Input image.

ImageMonotonyimageMonotonyimage_monotony (output_object) (multichannel-)image(-array) → object (byte / int2 / uint2)HObject (byte / int2 / uint2)HImage (byte / int2 / uint2)HObject (byte / int2 / uint2)Hobject * (byte / int2 / uint2)

Result of the monotony operator.

Number of elements: ImageMonotony == Image

Example🔗

(C)

/* searching the strict maximums */
gauss_filter(Image,&Gauss,5)\;
monotony(Gauss,&Monotony)\;
threshold(Monotony,Maxima,8.0,8.0)\;

Combinations with other operators🔗

Combinations

Possible predecessors

binomial_filterBinomialFilter, gauss_filterGaussFilter, median_imageMedianImage, mean_imageMeanImage, smooth_imageSmoothImage, invert_imageInvertImage

Possible successors

thresholdThreshold, exhaustive_matchExhaustiveMatch, disp_imageDispImage

Alternatives

local_maxLocalMax, topographic_sketchTopographicSketch, corner_responseCornerResponse

Module🔗

Foundation