gen_region_histoT_gen_region_histoGenRegionHistoGenRegionHistogen_region_histo (算子)

名称

gen_region_histoT_gen_region_histoGenRegionHistoGenRegionHistogen_region_histo — 将直方图转换为区域。

签名

gen_region_histo( : Region : Histogram, Row, Column, Scale : )

Herror T_gen_region_histo(Hobject* Region, const Htuple Histogram, const Htuple Row, const Htuple Column, const Htuple Scale)

void GenRegionHisto(HObject* Region, const HTuple& Histogram, const HTuple& Row, const HTuple& Column, const HTuple& Scale)

void HRegion::GenRegionHisto(const HTuple& Histogram, Hlong Row, Hlong Column, Hlong Scale)

static void HOperatorSet.GenRegionHisto(out HObject region, HTuple histogram, HTuple row, HTuple column, HTuple scale)

void HRegion.GenRegionHisto(HTuple histogram, int row, int column, int scale)

def gen_region_histo(histogram: Sequence[int], row: int, column: int, scale: int) -> HObject

描述

gen_region_histogen_region_histoGenRegionHistoGenRegionHistoGenRegionHistogen_region_histo converts a histogram created with gray_histogray_histoGrayHistoGrayHistoGrayHistogray_histo, gray_histo_rangegray_histo_rangeGrayHistoRangeGrayHistoRangeGrayHistoRangegray_histo_range ,or tuple_histo_rangetuple_histo_rangeTupleHistoRangeTupleHistoRangeTupleHistoRangetuple_histo_range into a region. RowRowRowRowrowrow and ColumnColumnColumnColumncolumncolumn define the position of the center of the graphic. ScaleScaleScaleScalescalescale allows scaling of the graphic, whereby 1 means displaying all 256 values, 2 means displaying 128 values, 3 means displaying only 64 values, etc.

执行信息

参数

RegionRegionRegionRegionregionregion (输出对象)  region objectHRegionHObjectHRegionHobject *

Region containing the histogram.

HistogramHistogramHistogramHistogramhistogramhistogram (输入控制)  histogram-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Input histogram.

RowRowRowRowrowrow (输入控制)  point.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row coordinate of the center of the histogram.

默认值: 255

建议值: 100, 200, 255, 300, 400

值范围: 0 ≤ Row Row Row Row row row ≤ 511

ColumnColumnColumnColumncolumncolumn (输入控制)  point.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column coordinate of the center of the histogram.

默认值: 255

建议值: 100, 200, 255, 300, 400

值范围: 0 ≤ Column Column Column Column column column ≤ 511

ScaleScaleScaleScalescalescale (输入控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Scale factor for the histogram.

默认值: 1

建议值: 1, 2, 3, 4, 5, 6, 7

值范围: 1 ≤ Scale Scale Scale Scale scale scale ≤ 10 (lin)

最小增量: 1

建议增量: 1

结果

gen_region_histogen_region_histoGenRegionHistoGenRegionHistoGenRegionHistogen_region_histo 在所有参数正确时返回 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

gray_histogray_histoGrayHistoGrayHistoGrayHistogray_histo, gray_histo_rangegray_histo_rangeGrayHistoRangeGrayHistoRangeGrayHistoRangegray_histo_range, tuple_histo_rangetuple_histo_rangeTupleHistoRangeTupleHistoRangeTupleHistoRangetuple_histo_range

另见

disp_channeldisp_channelDispChannelDispChannelDispChanneldisp_channel

模块

基础