gen_image_gray_rampgen_image_gray_rampGenImageGrayRampGenImageGrayRampgen_image_gray_ramp (算子)

名称

gen_image_gray_rampgen_image_gray_rampGenImageGrayRampGenImageGrayRampgen_image_gray_ramp — 创建灰度值渐变。

签名

gen_image_gray_ramp( : ImageGrayRamp : Alpha, Beta, Mean, Row, Column, Width, Height : )

Herror gen_image_gray_ramp(Hobject* ImageGrayRamp, double Alpha, double Beta, double Mean, const Hlong Row, const Hlong Column, const Hlong Width, const Hlong Height)

Herror T_gen_image_gray_ramp(Hobject* ImageGrayRamp, const Htuple Alpha, const Htuple Beta, const Htuple Mean, const Htuple Row, const Htuple Column, const Htuple Width, const Htuple Height)

void GenImageGrayRamp(HObject* ImageGrayRamp, const HTuple& Alpha, const HTuple& Beta, const HTuple& Mean, const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height)

void HImage::GenImageGrayRamp(double Alpha, double Beta, double Mean, Hlong Row, Hlong Column, Hlong Width, Hlong Height)

static void HOperatorSet.GenImageGrayRamp(out HObject imageGrayRamp, HTuple alpha, HTuple beta, HTuple mean, HTuple row, HTuple column, HTuple width, HTuple height)

void HImage.GenImageGrayRamp(double alpha, double beta, double mean, int row, int column, int width, int height)

def gen_image_gray_ramp(alpha: float, beta: float, mean: float, row: int, column: int, width: int, height: int) -> HObject

描述

算子 gen_image_gray_rampgen_image_gray_rampGenImageGrayRampGenImageGrayRampGenImageGrayRampgen_image_gray_ramp creates a gray value ramp according to the following equation: ImageGrayRampImageGrayRampImageGrayRampImageGrayRampimageGrayRampimage_gray_ramp(r,c) = AlphaAlphaAlphaAlphaalphaalpha(r-RowRowRowRowrowrow) + BetaBetaBetaBetabetabeta(c-ColumnColumnColumnColumncolumncolumn) + MeanMeanMeanMeanmeanmean The size of the image is determined by WidthWidthWidthWidthwidthwidth and HeightHeightHeightHeightheightheight The gray values are of the type 'byte'"byte""byte""byte""byte""byte". Gray values outside the valid area are clipped.

执行信息

参数

ImageGrayRampImageGrayRampImageGrayRampImageGrayRampimageGrayRampimage_gray_ramp (输出对象)  image objectHImageHObjectHImageHobject * (byte)

Created image with new image matrix.

AlphaAlphaAlphaAlphaalphaalpha (输入控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Gradient in line direction.

默认值: 1.0

建议值: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0

最小增量: 0.000001

建议增量: -0.005

BetaBetaBetaBetabetabeta (输入控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Gradient in column direction.

默认值: 1.0

建议值: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0

最小增量: 0.000001

建议增量: -0.005

MeanMeanMeanMeanmeanmean (输入控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Mean gray value.

默认值: 128

建议值: 0.0, 20.0, 40.0, 60.0, 80.0, 100.0, 120.0, 140.0, 160.0, 180.0, 200.0, 220.0, 255.0

最小增量: 1

建议增量: 10

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

Line index of reference point.

默认值: 256

建议值: 128, 256, 512, 1024

最小增量: 1

建议增量: 10

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

Column index of reference point.

默认值: 256

建议值: 128, 256, 512, 1024

最小增量: 1

建议增量: 10

WidthWidthWidthWidthwidthwidth (输入控制)  extent.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of image.

默认值: 512

建议值: 128, 256, 512, 1024

值范围: 1 ≤ Width Width Width Width width width (lin)

最小增量: 1

建议增量: 10

HeightHeightHeightHeightheightheight (输入控制)  extent.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of image.

默认值: 512

建议值: 128, 256, 512, 1024

值范围: 1 ≤ Height Height Height Height height height (lin)

最小增量: 1

建议增量: 10

结果

If the parameter values are correct gen_image_gray_rampgen_image_gray_rampGenImageGrayRampGenImageGrayRampGenImageGrayRampgen_image_gray_ramp 返回值 2 ( H_MSG_TRUE )。否则将抛出异常。

可能的前趋

moments_gray_planemoments_gray_planeMomentsGrayPlaneMomentsGrayPlaneMomentsGrayPlanemoments_gray_plane

可能的后继

paint_regionpaint_regionPaintRegionPaintRegionPaintRegionpaint_region, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1GetImagePointer1get_image_pointer1, copy_objcopy_objCopyObjCopyObjCopyObjcopy_obj

替代

gen_image1gen_image1GenImage1GenImage1GenImage1gen_image1

另见

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, paint_graypaint_grayPaintGrayPaintGrayPaintGraypaint_gray, gen_image_constgen_image_constGenImageConstGenImageConstGenImageConstgen_image_const

模块

基础