我知道编辑这个网站吗?

CIP数学

此页面提供 CIP 脚本包的数学类别的用户文档

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

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

二元运算符

描述
the binary operators receive 2 inputs and produce one output applying the mathematical operation to the inputs. input can be a scalar or an image if one of the input is an image the operation is applied pixelwise. The output is an image is one of the input is an image or a scalar is both input are a number

签名 c = cip.add( a* , b* ) 将 a + b 赋值给 c c = cip.sub( a* , b* ) 将 a - b 属性赋予 c

c = cip.mul( a* , b* )分配一个.乙到丙

c = cip.div( a* , b* ) 将 a / b 属性赋予 c

c = cip.pow( a* , b* )将ab分配给c

c = cip.min( a* , b* ) 将 a 和 b 中的简单分配给 c

c = cip.max( a* , b* )将a和b中的拓扑分配给c 执行
The function implementation rely on ops map and math operation. Further more the pixelor scalar type is updated to avoid any clipping of the resulting number in the operation. for instance a division between 2 integer image will create a float image.

一元运算符

描述
the unary operator receive one input and produces one ouput, applying the specified operation to the input. Input can be an image or a scalar. output is of the same type as the input.

签名三角函数 b = cip.sin( a )计算三角正弦函数。 a 是弧度 b = cip.cos( a )计算三角余弦函数。 a 是弧度

b = cip.tan( a )计算三角正切函数。 a 是弧度

b = cip.asin( a )计算三角函数。 b 是弧度

b = cip.acos( a )计算三角反余弦函数。 b 是弧度

b = cip.atan( a )计算三角相似切函数。 b 是弧度 签名四舍五入 b = cip.floor( a ) 将 a 替换为最接近的整数,使得 abs(a)>abs(b) b = cip.ceil( a )将a替换为最接近的整数,使得abs(a)<abs(b)

b = cip.round( a )将a替换为最接近的整数 其他签名 b = cip.sqrt( a )计算a的平方根 b = cip.log( a ) 计算 a 的 neperian 对数

b = cip.exp( a )计算a的指数

b = cip.abs( a )计算a的绝对值

b = cip.sign( a ) 如果a>0,则替换1;如果a=0,则替换0;如果a<0,则替换-1 执行
The function implementation rely on ops map and java Math implementation. Further more the pixel or scalar type is updated to avoid any clipping of the resulting number in the operation. for instance the logarithm of an integer will be a float value.