此页面提供 CIP 脚本包格式类别的用户文档。
One can found additional information on the function parameters (type, optional/required, positional/named) on the 参数文档页面。
要访问另一类 CIP 功能:格式, 筛选, 数学, 部分, 评估, 实验性的.
创建
描述
this function allows to create image specifying their size, value, pixel type and name.
签名
outputImage = cip.create( size*, value, type, name)
将创建一个大小范围的图像,并使用指定的值、像素类型和名称进行初始化。
outputImage = cip.create( inputImage*, value, type, name)
将创建一个与 inputImage 大小相同的图像,并使用指定的值、像素类型和名称进行初始化。
输入
inputImage* :一个图像,其大小将用于创建图像进程
size* :指定要创建的图像尺寸的标量列表
value :值一个标量,该值用于初始化新图像
type :{‘bit’, ‘uint8’, ‘int8’, ‘uint16’, ‘int16’, ‘uint32’, ‘int32’, ‘uint64’, ‘int64’, ‘漂浮’, ‘double’}中的字符串,定义输出的像素类型。也可以使用“short”、“ushort”或“unsignedshort”等面额。
name :用于新图像名称的字符串。
输出
outputImage :具有指定大小、值、像素类型和名称的图像。
执行
the function wraps the ops img function in the namespace create
# 复制
描述
The function duplicate an input image or a crop if the input image
签名
outputImage = cip.duplicate( inputImage*, origin, size, method)
将在指定边界内复制输入图像。
输入
inputImage* :要复制的图像
origin :指定要复制区域的原点的标量列表。如果未提供,则使用输入图像原点
size :指定要复制的区域范围的标量列表。如果未提供,则为每个维度选择最大值减去原点
method :{‘deep’, ‘浅的’} 中的字符串,指定输出是否复制数据或引用输入数据。
输出
outputImage* :复制的图像
例子
img2 = cip.duplicate( img1 , 'origin', [300,200], 'size', [150,150] )

执行
the shallow copy is done with Views.offsetInterval in ImgLib2 and the deep copy is done with the ops function copy().rai().
切片
描述
This function reduce input image dimensionality by duplicating a region of the same size as the input except along a selected dimension where the input is duplicated only at a particular position.
签名
outputImage = cip.slice( inputImage*, dimension, position, method)
将沿指定维度在指定位置复制输入。
输入
inputImage* :要处理的图像
维度 :指定要切片的维度的标量或标量列表
位置 :与维度大小相同的标量或标量列表,指示沿指定维度复制的位置。
method :{‘deep’, ‘浅的’} 中的字符串,指定输出是否复制数据或引用输入数据。
输出
outputImage* :复制的图像。单个维度被删除,因此图像维度实际上小于输入维度。
例子
img2 = cip.slice( img1 , 'dimension', 2, 'position', 0 )

执行
The shallow copy is done with Views.offsetInterval in ImgLib2 and the deep copy also apply the ops function copy().rai().
# 项目
描述
This function reduce input image dimensionality by applying an operation to all the pixel along user specified dimension(s). sum, max and ,min operation are currently implemented.
签名
valMap, argMap = cip.project( inputImage*, dimension, method, output)
使用指定方法沿指定维度创建投影图像。
输入
inputImage* :要处理的图像
dimensions :指定要切片的维度的标量或标量列表
位置 :与维度大小相同的标量或标量列表,指示沿指定维度复制的位置。
output :{‘投影’, ‘argument’, ‘both’} 中的字符串,指定输出应该是投影图像、投影的参数还是两者。如果参数构造不适用,则参数具有切片数量的值。
输出
valMap :投影图像。单个维度被删除,因此图像维度实际上小于输入维度。
argMap :投影的参数。即对于最大投影,例如像素值处的位置沿投影维度是最大的。
例子
img2 = cip.project( img1 , 'dimension',2 )

执行
The projection is implemented as part of CIP.
连接
待实施