首页 > 其他分享 >模版匹配——inspect_shape_model

模版匹配——inspect_shape_model

时间:2024-03-15 09:22:56浏览次数:14  
标签:aniso create inspect scaled shape model Contrast

inspect_shape_model creates a representation of a shape model. The operator is particularly useful in order to determine the parameters NumLevels and Contrast, which are used in create_shape_model, create_scaled_shape_model, or create_aniso_shape_model, quickly and conveniently. The representation of the model is created on multiple image pyramid levels, where the number of levels is determined by NumLevels.

inspect_shape_model创建形状模型的表示形式。该运算符对于快速方便地确定用于create_shape_model、create_scaled_shape_model或create_aniso_shape_model的参数 NumLevels 和 Contrast 特别有用。模型的表示是在多个图像金字塔级别上创建的,其中级别数由 NumLevel 确定。

In contrast to create_shape_model, create_scaled_shape_model, and create_aniso_shape_model, the model is only created for the rotation and scale of the object in the input image, i.e., 0° and 1. As output, inspect_shape_model creates an image object ModelImages containing the images of the individual levels of the image pyramid as well as a region in ModelRegions for each pyramid level that represents the model at the respective pyramid level. The individual objects can be accessed with select_obj. If the input image Image has one channel the representation of the model is created with the method that is used in create_shape_model, create_scaled_shape_model or create_aniso_shape_model for the metrics 'use_polarity', 'ignore_global_polarity', and 'ignore_local_polarity'.

与create_shape_model、create_scaled_shape_model和create_aniso_shape_model相比,模型仅针对输入图像中对象的旋转和比例(即 0° 和 1)创建。作为输出,inspect_shape_model创建一个图像对象 ModelImages,其中包含图像金字塔各个级别的图像,以及每个金字塔级别的 ModelRegions 中的一个区域,该区域表示相应金字塔级别的模型。可以使用select_obj访问单个对象。如果输入图像图像有一个通道,则使用create_shape_model、create_scaled_shape_model或create_aniso_shape_model中用于指标“use_polarity”、“ignore_global_polarity”和“ignore_local_polarity”的方法创建模型的表示。

If the input image has more than one channel the representation is created with the method that is used for the metric 'ignore_color_polarity'. As described for create_shape_model, create_scaled_shape_model, and create_aniso_shape_model, the number of pyramid levels should be chosen as large as possible, while taking into account that the model must be recognizable on the highest pyramid level and must have enough model points. The parameter Contrast should be chosen such that only the significant features of the template object are used for the model. Contrast can also contain a tuple with two values. In this case, the model is segmented using a method similar to the hysteresis threshold method used in edges_image. Here, the first element of the tuple determines the lower threshold, while the second element determines the upper threshold.

如果输入图像具有多个通道,则使用用于度量“ignore_color_polarity”的方法创建表示。如create_shape_model、create_scaled_shape_model和create_aniso_shape_model所述,应选择尽可能大的金字塔级别数,同时考虑到模型必须在最高金字塔级别上可识别,并且必须具有足够的模型点。应选择参数 Contrast,以便仅将模板对象的重要特征用于模型。对比度还可以包含具有两个值的元组。在这种情况下,使用类似于edges_image中使用的滞后阈值方法对模型进行分割。在这里,元组的第一个元素确定下限阈值,而第二个元素确定上限阈值。

For more information about the hysteresis threshold method, see hysteresis_threshold. Optionally, Contrast can contain a third value as the last element of the tuple. This value determines a threshold for the selection of significant model components based on the size of the components, i.e., components that have fewer points than the minimum size thus specified are suppressed. As the minimum size is applied on the extent of the components, the derived model contours can still be smaller than the specified minimum size. This threshold for the minimum size is divided by two for each successive pyramid level.

有关滞后阈值方法的详细信息,请参阅hysteresis_threshold。(可选)Contrast 可以包含第三个值作为元组的最后一个元素。此值确定根据组件大小选择重要模型组件的阈值,即,点数少于指定最小尺寸的组件将被抑制。由于最小尺寸应用于组件范围,因此派生的模型轮廓仍可能小于指定的最小尺寸。对于每个连续的金字塔级别,最小大小的阈值除以 2。

If small model components should be suppressed, but hysteresis thresholding should not be performed, nevertheless three values must be specified in Contrast. In this case, the first two values can simply be set to identical values. In its typical use, inspect_shape_model is called interactively multiple times with different parameters for NumLevels and Contrast, until a satisfactory model is obtained. After this, create_shape_model, create_scaled_shape_model, or create_aniso_shape_model are called with the parameters thus obtained.

如果应抑制小型模型分量,但不应执行滞后阈值,则必须在对比度中指定三个值。在这种情况下,可以简单地将前两个值设置为相同的值。在其典型用法中,inspect_shape_model 会使用 NumLevels 和 Contrast 的不同参数多次交互调用,直到获得令人满意的模型。在此之后,使用由此获得的参数调用create_shape_model、create_scaled_shape_model或create_aniso_shape_model。

标签:aniso,create,inspect,scaled,shape,model,Contrast
From: https://www.cnblogs.com/echo-efun/p/18074471

相关文章

  • [基础] Stable Diffusion, High-Resolution Image Synthesis with Latent Diffusion M
    名称StableDiffusion,High-ResolutionImageSynthesiswithLatentDiffusionModelsTL;DR这篇文章介绍了一种名为潜在扩散模型(LatentDiffusionModels,LDMs)的新型高分辨率图像合成方法。LDMs通过在预训练的自编码器的潜在空间中应用扩散模型,实现了在有限计算资源下训练高......
  • UVM - 6 (Transaction Modeling)
    内容uvm_sequence_item是transaction的基类可以使用uvm_sequence_item和uvm_transaction对数据进行建模什么是事务(transaction)?总线协议可以认为是一个事务UVM数据流testcase一般不产生数据,通常进行configsequencer会产生激励给到driver,传递的就是transaction......
  • 模板匹配——determine_shape_model_params
    determine_shape_model_params—Determinetheparametersofashapemodel.模版匹配参数确定 determine_shape_model_paramsdeterminescertainparametersofashapemodelautomaticallyfromthemodelimageTemplate.Theparameterstobedeterminedcanbesp......
  • 模板匹配——create_shape_model
    Theoperatorcreate_shape_modelpreparesatemplate,whichispassedintheimageTemplate,asashapemodelusedformatching.TheROIofthemodelispassedasthedomainofTemplate.运算符create_shape_model准备一个模板,该模板在图像模板中传递,作为用于匹配的......
  • 模板匹配——set_shape_model_clutter
    通过设置杂波,来准确定位要检测对象;如下图中未设置杂波情况下,匹配结果如(3);如图(4)设置杂波后,匹配结果如图(5)**Createashapemodel.*创建一个模型read_image(ImageModel,'/bga_gap/bga_gap_01.png')gen_circle(ROI,753.869,551.624,28.4027)reduce_domain(Image......
  • R语言【paleoTS】——compareModels:比较模型适合于古生物学时间序列
    Package paleoTS version0.5.3Description获取模型拟合函数的输出,并将模型拟合信息(对数似然、AICc等)编译成一个方便的表。UsagecompareModels(...,silent=FALSE,sort=FALSE)Arguments参数【...】:任意数量的模型拟合(as.paletsfit)对象。参数【silent】......
  • 模版匹配——set_shape_model_param
    1.'min_contrast'最小对比度SetstheminimumcontrastoftheobjectinthesearchimagesfortheshapemodelModelID.Thereby,thevalueof'min_contrast'thatwasoriginallyset,e.g.withcreate_shape_model,isoverwrittenfortheshape......
  • ListModelSerializer模块 LL
    自定义反序列化字段#一些只参与反序列化的字段,但是不是与数据库关联的#在序列化类中规定,并在校验字段时从校验的参数字典中剔除classPublishModelSerializer(serializers.ModelSerializer):#自定义不入库的反序列化字段re_name=serializers.CharField(writ......
  • Practical Learned Lossless JPEG Recompression with Multi-Level Cross-Channel Ent
    目录简介模型DCTCoefficientsRearrangement将系数重排Cross-ColorEntropyModelMatrixContextModelMulti-LevelCross-ChannelEntropyModel创新点实验设置训练数据集:测试数据集:训练细节:结果简介JPEG是一种非常流行的压缩方法,然而最近关于图像压缩的研究主要集中在未压......
  • ModelSerializer组件 模型类序列化器 LL
    如果我们想要使用序列化器对应的是Django的模型类,DRF为我们提供了ModelSerializer模型类序列化器来帮助我们快速创建一个Serializer类。ModelSerializer与常规的Serializer相同,但提供了:基于模型类自动生成一系列字段基于模型类自动为Serializer生成validators,比如unique_toget......