nonmax_suppression_ampnonmax_suppression_ampNonmaxSuppressionAmpNonmaxSuppressionAmpnonmax_suppression_amp (算子)

名称

nonmax_suppression_ampnonmax_suppression_ampNonmaxSuppressionAmpNonmaxSuppressionAmpnonmax_suppression_amp — 抑制边缘上的非最大点。

签名

nonmax_suppression_amp(ImgAmp : ImageResult : Mode : )

Herror nonmax_suppression_amp(const Hobject ImgAmp, Hobject* ImageResult, const char* Mode)

Herror T_nonmax_suppression_amp(const Hobject ImgAmp, Hobject* ImageResult, const Htuple Mode)

void NonmaxSuppressionAmp(const HObject& ImgAmp, HObject* ImageResult, const HTuple& Mode)

HImage HImage::NonmaxSuppressionAmp(const HString& Mode) const

HImage HImage::NonmaxSuppressionAmp(const char* Mode) const

HImage HImage::NonmaxSuppressionAmp(const wchar_t* Mode) const   ( Windows only)

static void HOperatorSet.NonmaxSuppressionAmp(HObject imgAmp, out HObject imageResult, HTuple mode)

HImage HImage.NonmaxSuppressionAmp(string mode)

def nonmax_suppression_amp(img_amp: HObject, mode: str) -> HObject

描述

nonmax_suppression_ampnonmax_suppression_ampNonmaxSuppressionAmpNonmaxSuppressionAmpNonmaxSuppressionAmpnonmax_suppression_amp suppresses all points in the regions of the image ImgAmpImgAmpImgAmpImgAmpimgAmpimg_amp whose gray values are not local (directed) maxima. In contrast to nonmax_suppression_dirnonmax_suppression_dirNonmaxSuppressionDirNonmaxSuppressionDirNonmaxSuppressionDirnonmax_suppression_dir, a direction image is not needed. Two modes of operation can be selected:

'hvnms'

A point is labeled as a local maximum if its gray value is larger than or equal to the gray values within a search space of pm 5 pixels, either horizontally or vertically. Non-maximum points are removed from the region, gray values remain unchanged.

'loc_max'

A point is labeled as a local maximum if its gray value is larger than or equal to the gray values of its eight neighbors.

执行信息

参数

ImgAmpImgAmpImgAmpImgAmpimgAmpimg_amp (输入对象)  singlechannelimage(-array) objectHImageHObjectHImageHobject (byte / uint2 / real)

Amplitude (gradient magnitude) image.

ImageResultImageResultImageResultImageResultimageResultimage_result (输出对象)  singlechannelimage(-array) objectHImageHObjectHImageHobject * (byte / uint2 / real)

Image with thinned edge regions.

ModeModeModeModemodemode (输入控制)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Select horizontal/vertical or undirected NMS.

默认值: 'hvnms' "hvnms" "hvnms" "hvnms" "hvnms" "hvnms"

值列表: 'hvnms'"hvnms""hvnms""hvnms""hvnms""hvnms", 'loc_max'"loc_max""loc_max""loc_max""loc_max""loc_max"

结果

nonmax_suppression_ampnonmax_suppression_ampNonmaxSuppressionAmpNonmaxSuppressionAmpNonmaxSuppressionAmpnonmax_suppression_amp 在所有参数正确时返回 2 ( H_MSG_TRUE )。 The behavior with respect to the input images and output regions can be determined by setting the values of the flags 'no_object_result'"no_object_result""no_object_result""no_object_result""no_object_result""no_object_result", 'empty_region_result'"empty_region_result""empty_region_result""empty_region_result""empty_region_result""empty_region_result", and 'store_empty_region'"store_empty_region""store_empty_region""store_empty_region""store_empty_region""store_empty_region" with set_systemset_systemSetSystemSetSystemSetSystemset_system。如有必要,则抛出异常。

可能的前趋

sobel_ampsobel_ampSobelAmpSobelAmpSobelAmpsobel_amp

可能的后继

thresholdthresholdThresholdThresholdThresholdthreshold, hysteresis_thresholdhysteresis_thresholdHysteresisThresholdHysteresisThresholdHysteresisThresholdhysteresis_threshold

替代

local_maxlocal_maxLocalMaxLocalMaxLocalMaxlocal_max, nonmax_suppression_dirnonmax_suppression_dirNonmaxSuppressionDirNonmaxSuppressionDirNonmaxSuppressionDirnonmax_suppression_dir

另见

skeletonskeletonSkeletonSkeletonSkeletonskeleton

参考文献

S.Lanser: “Detektion von Stufenkanten mittels rekursiver Filter nach Deriche”; Diplomarbeit; Technische Universität München, Institut für Informatik, Lehrstuhl Prof. Radig; 1991.
J.Canny: “Finding Edges and Lines in Images”; Report, AI-TR-720; M.I.T. Artificial Intelligence Lab., Cambridge, MA; 1983.

模块

基础