shape_histo_pointT_shape_histo_pointShapeHistoPointShapeHistoPointshape_histo_point (算子)
名称
shape_histo_pointT_shape_histo_pointShapeHistoPointShapeHistoPointshape_histo_point — 确定沿所有阈值的特征直方图。
签名
void ShapeHistoPoint(const HObject& Region, const HObject& Image, const HTuple& Feature, const HTuple& Row, const HTuple& Column, HTuple* AbsoluteHisto, HTuple* RelativeHisto)
HTuple HRegion::ShapeHistoPoint(const HImage& Image, const HString& Feature, Hlong Row, Hlong Column, HTuple* RelativeHisto) const
HTuple HRegion::ShapeHistoPoint(const HImage& Image, const char* Feature, Hlong Row, Hlong Column, HTuple* RelativeHisto) const
HTuple HRegion::ShapeHistoPoint(const HImage& Image, const wchar_t* Feature, Hlong Row, Hlong Column, HTuple* RelativeHisto) const
(
Windows only)
static void HOperatorSet.ShapeHistoPoint(HObject region, HObject image, HTuple feature, HTuple row, HTuple column, out HTuple absoluteHisto, out HTuple relativeHisto)
HTuple HRegion.ShapeHistoPoint(HImage image, string feature, int row, int column, out HTuple relativeHisto)
def shape_histo_point(region: HObject, image: HObject, feature: str, row: int, column: int) -> Tuple[Sequence[Union[int, float]], Sequence[float]]
描述
Like shape_histo_allshape_histo_allShapeHistoAllShapeHistoAllShapeHistoAllshape_histo_all the operator
shape_histo_pointshape_histo_pointShapeHistoPointShapeHistoPointShapeHistoPointshape_histo_point carries out 255 threshold value operations
within RegionRegionRegionRegionregionregion with the gray values of ImageImageImageImageimageimage.
Contrary to shape_histo_allshape_histo_allShapeHistoAllShapeHistoAllShapeHistoAllshape_histo_all only the segmented region
containing the pixel (RowRowRowRowrowrow, ColumnColumnColumnColumncolumncolumn) is taken
into account here. The entry i in the histogram then corresponds
to the number of holes of this region segmented with the threshold
i (FeatureFeatureFeatureFeaturefeaturefeature = 'holes'"holes""holes""holes""holes""holes") or the feature value of
the region (FeatureFeatureFeatureFeaturefeaturefeature = 'convexity'"convexity""convexity""convexity""convexity""convexity",
'compactness'"compactness""compactness""compactness""compactness""compactness", 'ansisometry'"ansisometry""ansisometry""ansisometry""ansisometry""ansisometry"), respectively.
注意
Note that the operator shape_histo_pointshape_histo_pointShapeHistoPointShapeHistoPointShapeHistoPointshape_histo_point only considers
the given RegionRegionRegionRegionregionregion and ignores any previously set domain
of the input image ImageImageImageImageimageimage。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
RegionRegionRegionRegionregionregion (输入对象) region → objectHRegionHObjectHRegionHobject
Region in which the features are to be examined.
ImageImageImageImageimageimage (输入对象) singlechannelimage → objectHImageHObjectHImageHobject (byte)
灰度值图像。
FeatureFeatureFeatureFeaturefeaturefeature (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Feature to be examined.
默认值:
'convexity'
"convexity"
"convexity"
"convexity"
"convexity"
"convexity"
值列表:
'anisometry'"anisometry""anisometry""anisometry""anisometry""anisometry", 'compactness'"compactness""compactness""compactness""compactness""compactness", 'convexity'"convexity""convexity""convexity""convexity""convexity", 'holes'"holes""holes""holes""holes""holes"
RowRowRowRowrowrow (输入控制) point.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row of the pixel which the region must contain.
默认值:
256
建议值:
10, 50, 100, 200, 300, 400
ColumnColumnColumnColumncolumncolumn (输入控制) point.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column of the pixel which the region must contain.
默认值:
256
建议值:
10, 50, 100, 200, 300, 400
AbsoluteHistoAbsoluteHistoAbsoluteHistoAbsoluteHistoabsoluteHistoabsolute_histo (输出控制) histogram-array → HTupleSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Absolute distribution of the feature.
RelativeHistoRelativeHistoRelativeHistoRelativeHistorelativeHistorelative_histo (输出控制) histogram-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Relative distribution of the feature.
结果
算子 shape_histo_pointshape_histo_pointShapeHistoPointShapeHistoPointShapeHistoPointshape_histo_point 返回值 2 (
H_MSG_TRUE)
if an
image with defined gray values is entered.当输入为空(无可用输入图像)时可设置行为通过算子 set_system(::'no_object_result',<Result>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>),
the behavior in case of empty region is set via
set_system(::'empty_region_result',<Result>:)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>)。如有必要,则抛出异常。
可能的前趋
get_mbuttonget_mbuttonGetMbuttonGetMbuttonGetMbuttonget_mbutton,
area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center
可能的后继
histo_to_threshhisto_to_threshHistoToThreshHistoToThreshHistoToThreshhisto_to_thresh,
thresholdthresholdThresholdThresholdThresholdthreshold,
gen_region_histogen_region_histoGenRegionHistoGenRegionHistoGenRegionHistogen_region_histo
替代
shape_histo_allshape_histo_allShapeHistoAllShapeHistoAllShapeHistoAllshape_histo_all
另见
connectionconnectionConnectionConnectionConnectionconnection,
connect_and_holesconnect_and_holesConnectAndHolesConnectAndHolesConnectAndHolesconnect_and_holes,
convexityconvexityConvexityConvexityConvexityconvexity,
compactnesscompactnessCompactnessCompactnessCompactnesscompactness
模块
基础