plane_deviationplane_deviationPlaneDeviationPlaneDeviationplane_deviation (算子)

名称

plane_deviationplane_deviationPlaneDeviationPlaneDeviationplane_deviation — 计算灰度值与近似图像平面的偏差。

签名

plane_deviation(Regions, Image : : : Deviation)

Herror plane_deviation(const Hobject Regions, const Hobject Image, double* Deviation)

Herror T_plane_deviation(const Hobject Regions, const Hobject Image, Htuple* Deviation)

void PlaneDeviation(const HObject& Regions, const HObject& Image, HTuple* Deviation)

HTuple HImage::PlaneDeviation(const HRegion& Regions) const

HTuple HRegion::PlaneDeviation(const HImage& Image) const

static void HOperatorSet.PlaneDeviation(HObject regions, HObject image, out HTuple deviation)

HTuple HImage.PlaneDeviation(HRegion regions)

HTuple HRegion.PlaneDeviation(HImage image)

def plane_deviation(regions: HObject, image: HObject) -> Sequence[float]

def plane_deviation_s(regions: HObject, image: HObject) -> float

描述

算子 plane_deviationplane_deviationPlaneDeviationPlaneDeviationPlaneDeviationplane_deviation calculates the deviation of the gray values in ImageImageImageImageimageimage from the approximation of the gray values through a plane. Contrary to the standard deviation in case of intensityintensityIntensityIntensityIntensityintensity slanted gray value planes also receive the value zero. The gray value plane is calculated according to gen_image_gray_rampgen_image_gray_rampGenImageGrayRampGenImageGrayRampGenImageGrayRampgen_image_gray_ramp。If F is the area of the region, , , and the parameters of the image plane, and (r',c') the center of the region, DeviationDeviationDeviationDeviationdeviationdeviation is defined by:

注意

Note that the operator plane_deviationplane_deviationPlaneDeviationPlaneDeviationPlaneDeviationplane_deviation only considers the given RegionsRegionsRegionsRegionsregionsregions and ignores any previously set domain of the input image ImageImageImageImageimageimage. It should be noted that the calculation of DeviationDeviationDeviationDeviationdeviationdeviation does not follow the usual definition. It is defined to return the value 0.0 for an image with only one pixel.

执行信息

参数

RegionsRegionsRegionsRegionsregionsregions (输入对象)  region(-array) objectHRegionHObjectHRegionHobject

Regions, of which the plane deviation is to be calculated.

ImageImageImageImageimageimage (输入对象)  singlechannelimage objectHImageHObjectHImageHobject (byte / cyclic)

灰度值图像。

DeviationDeviationDeviationDeviationdeviationdeviation (输出控制)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Deviation of the gray values within a region.

复杂度

If F is the area of the region the runtime complexity amounts to O(F).

结果

算子 plane_deviationplane_deviationPlaneDeviationPlaneDeviationPlaneDeviationplane_deviation 返回值 2 ( H_MSG_TRUE) if ImageImageImageImageimageimage is of the type 'byte'"byte""byte""byte""byte""byte".当输入为空(无可用输入图像)时可设置行为通过算子 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>)。如有必要,则抛出异常。

替代

intensityintensityIntensityIntensityIntensityintensity, gen_image_gray_rampgen_image_gray_rampGenImageGrayRampGenImageGrayRampGenImageGrayRampgen_image_gray_ramp, sub_imagesub_imageSubImageSubImageSubImagesub_image

另见

moments_gray_planemoments_gray_planeMomentsGrayPlaneMomentsGrayPlaneMomentsGrayPlanemoments_gray_plane

模块

基础