mod_parallels_xldmod_parallels_xldModParallelsXldModParallelsXldmod_parallels_xld (算子)

名称

mod_parallels_xldmod_parallels_xldModParallelsXldModParallelsXldmod_parallels_xld — 提取包围均匀区域的平行 XLD 多边形。

签名

mod_parallels_xld(Parallels, Image : ModParallels, ExtParallels : Quality, MinGray, MaxGray, MaxStandard : )

Herror mod_parallels_xld(const Hobject Parallels, const Hobject Image, Hobject* ModParallels, Hobject* ExtParallels, double Quality, const Hlong MinGray, const Hlong MaxGray, double MaxStandard)

Herror T_mod_parallels_xld(const Hobject Parallels, const Hobject Image, Hobject* ModParallels, Hobject* ExtParallels, const Htuple Quality, const Htuple MinGray, const Htuple MaxGray, const Htuple MaxStandard)

void ModParallelsXld(const HObject& Parallels, const HObject& Image, HObject* ModParallels, HObject* ExtParallels, const HTuple& Quality, const HTuple& MinGray, const HTuple& MaxGray, const HTuple& MaxStandard)

HXLDModPara HXLDPara::ModParallelsXld(const HImage& Image, HXLDExtPara* ExtParallels, const HTuple& Quality, Hlong MinGray, Hlong MaxGray, const HTuple& MaxStandard) const

HXLDModPara HXLDPara::ModParallelsXld(const HImage& Image, HXLDExtPara* ExtParallels, double Quality, Hlong MinGray, Hlong MaxGray, double MaxStandard) const

static void HOperatorSet.ModParallelsXld(HObject parallels, HObject image, out HObject modParallels, out HObject extParallels, HTuple quality, HTuple minGray, HTuple maxGray, HTuple maxStandard)

HXLDModPara HXLDPara.ModParallelsXld(HImage image, out HXLDExtPara extParallels, HTuple quality, int minGray, int maxGray, HTuple maxStandard)

HXLDModPara HXLDPara.ModParallelsXld(HImage image, out HXLDExtPara extParallels, double quality, int minGray, int maxGray, double maxStandard)

def mod_parallels_xld(parallels: HObject, image: HObject, quality: Union[float, int], min_gray: int, max_gray: int, max_standard: Union[float, int]) -> Tuple[HObject, HObject]

描述

mod_parallels_xldmod_parallels_xldModParallelsXldModParallelsXldModParallelsXldmod_parallels_xld selects XLD parallels enclosing homogeneous areas from the input parallels ParallelsParallelsParallelsParallelsparallelsparallels. The parameter ImageImageImageImageimageimage contains the corresponding gray value image.

Only parallels having a quality factor larger than QualityQualityQualityQualityqualityquality are examined. The algorithm performs parallel cross sections one pixel apart, and parallel to the line segments in the area of overlap between two parallel line segments.

In the first iteration, the mean gray value for each of the lines in the cross section is calculated. In the second iteration, the standard deviations of the gray values along each line are computed.

If the mean gray value of an area between parallels lies in the interval [MinGrayMinGrayMinGrayMinGrayminGraymin_gray,MaxGrayMaxGrayMaxGrayMaxGraymaxGraymax_gray], and if the mean of all standard deviations is smaller than the upper threshold MaxStandardMaxStandardMaxStandardMaxStandardmaxStandardmax_standard, the corresponding parallels are returned as modified parallels in ModParallelsModParallelsModParallelsModParallelsmodParallelsmod_parallels

In a second step, all polygon segments adjacent to parallels bordering homogeneous areas are checked for homogeneity. To do so, a rectangle having the width of the last area enclosed by a modified parallel is constructed, and checked for homogeneity using the algorithm described above. This process is continued as long as there are adjacent polygon segments. The polygons thus found are returned as extended parallels in ExtParallelsExtParallelsExtParallelsExtParallelsextParallelsext_parallels

执行信息

参数

ParallelsParallelsParallelsParallelsparallelsparallels (输入对象)  xld_para-array objectHXLDParaHObjectHXLDParaHobject

Input XLD parallels.

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

Corresponding gray value image.

ModParallelsModParallelsModParallelsModParallelsmodParallelsmod_parallels (输出对象)  xld_mod_para-array objectHXLDModParaHObjectHXLDModParaHobject *

Modified XLD parallels.

ExtParallelsExtParallelsExtParallelsExtParallelsextParallelsext_parallels (输出对象)  xld_ext_para-array objectHXLDExtParaHObjectHXLDExtParaHobject *

Extended XLD parallels.

QualityQualityQualityQualityqualityquality (输入控制)  number HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Minimum quality factor (measure of parallelism).

默认值: 0.4

建议值: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6

限制: 0.0 <= Quality && Quality <= 1.0

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

Minimum mean gray value.

默认值: 160

建议值: 80, 100, 120, 140, 160, 180

限制: 0 <= MinGray && MinGray <= 255

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

Maximum mean gray value.

默认值: 220

建议值: 140, 160, 180, 200, 220, 240

限制: 0 <= MaxGray && MaxGray <= 255 && MaxGray >= MinGray

MaxStandardMaxStandardMaxStandardMaxStandardmaxStandardmax_standard (输入控制)  number HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Maximum allowed standard deviation.

默认值: 10.0

建议值: 5.0, 10.0, 15.0, 20.0

限制: MaxStandard >= 0.0

可能的前趋

gen_parallels_xldgen_parallels_xldGenParallelsXldGenParallelsXldGenParallelsXldgen_parallels_xld

可能的后继

max_parallels_xldmax_parallels_xldMaxParallelsXldMaxParallelsXldMaxParallelsXldmax_parallels_xld

另见

info_parallels_xldinfo_parallels_xldInfoParallelsXldInfoParallelsXldInfoParallelsXldinfo_parallels_xld

模块

基础