我知道编辑这个网站吗?

在线清洗参数

One can found additional information on the function parameters (type, optional/required, positional/named) on the 参数文档页面。

要访问另一类 CIP 功能:格式, 筛选, 数学, 部分, 评估, 实验性的.

类型

  • 图像:任何图像类型:IJ1 ImagePlus、IJ2 Dataset、IJ2 ImgPlus、ImgLib2 Img、ImgLib2 RandomAccessInterval (RAI)、实现 RAI 并添加一层的元数据(单位、像素大小、轴名称)的 CIP 。图像输出始终是 CIP 图像。如果需要,转换器允许返回 IJ1 或 IJ2 格式。
  • 地区:IJ1 Roi、ImgLib2 IterableRegion 或实现 IterableRegion 和元数据薄层的 CIP 区域中的任何类型。
  • 桌子:将字符串映射到对象的字典,最有可能是字符串或标量,但也可能是区域或图像
  • 标量:脚本语言中可用的评分(或评分列表)。
  • 字符串:脚本语言中可用的字符串或字符串列表
  • 逻辑:布尔值(即 true 或 false 值)。


必要和可选参数

在CIP中每个功能都有必须提供的必要参数以便该函数运行。该参数由一个指示* in the documentation.

每个函数都有一些可以跳过的可选参数 if you don't need them. If an optionnal parameters is not provided it will be replaced by a sensible default value described in the documentation

There are different ways of skiping an optionnal parameters:

  • 如果它们位于签名的末尾,您可以将它们删除,该函数将使用它们的默认值运行。
    out = cip.gauss(myImage, myRadius,myBoundary)甚至
    输出 = cip.gauss(myImage, myRadius)
  • if they are in the middle of the signature you can either
    • 将它们替换为脚本语言的空值。
      cip.gauss(myImage, myRadius, None, myPixelSize)其中 None 是 Jython 中的空值
    • 删除参数并使用命名参数作为您需要的剩余参数
      cip.gauss(myImage, myRadius, 'pixelsize', myPixelSize)这可能更容易阅读。


位置和命名参数

There are 2 ways to pass the parameters to a CIP function:

  • 通过传递与文档中提供的样本签名的位置和顺序相同。如果我们以高斯函数为例,只使用所需的参数,它会编写如下:
    输出 = 高斯(输入 , myRadius )
  • 通过提交字符串/值
    输出=高斯(输入,“半径”,myRadius)甚至
    输出 = 高斯('半径', myRadius, 'inputImage', in )