元编程参考文档

纹理滤镜

8 个节点

本页内容 8

模糊

函数

A Gaussian blur: softens by averaging each pixel with its neighbours, nearer ones counting more. The cost does not grow with the radius.

签名
模糊(纹理: Texture, 半径: 数字) -> Texture
Texture Blur(Texture texture, double radius = 4)

参数

名称类型默认值说明
纹理Texture—The texture.
半径数字4The blur's size (its standard deviation), in pixels of a 1024-pixel texture.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理滤镜
所属包
图像处理

膨胀

函数

Grows bright areas: each pixel takes the highest value within the radius.

签名
膨胀(纹理: Texture, 半径: 数字) -> Texture
Texture Dilate(Texture texture, double radius = 2)

参数

名称类型默认值说明
纹理Texture—The texture.
半径数字2How far bright areas grow, in pixels of a 1024-pixel texture.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理滤镜
所属包
图像处理

方向模糊

函数

Smears the texture along one direction, as motion or a brush stroke would: brushed metal, rain streaks, wood grain from noise.

签名
方向模糊 -> Texture
    纹理: Texture
    角度: 数字
    长度: 数字
    单向: 真否
Texture DirectionalBlur(
    Texture texture,
    double angle = 0,
    double length = 16,
    bool oneSided = false)

参数

名称类型默认值说明
纹理Texture—The texture.
角度数字0The direction in degrees, 0 to the right, 90 down.
长度数字16How far the smear reaches each way, in pixels of a 1024-pixel texture.
单向真否FalseSmear only forward rather than both ways, so streaks start at a feature and trail from it.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理滤镜
所属包
图像处理

边缘检测

函数

Bright where values change quickly and dark where they are flat: outlines of shapes, the rims of a height.

签名
边缘检测(纹理: Texture, 宽度: 数字, 强度: 数字) -> Texture
Texture EdgeDetect(
    Texture texture,
    double width = 1,
    double strength = 4)

参数

名称类型默认值说明
纹理Texture—The texture.
宽度数字1How wide the drawn edges are, in pixels of a 1024-pixel texture.
强度数字4How bright an edge is for a given change.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理滤镜
所属包
图像处理

腐蚀

函数

Shrinks bright areas: each pixel takes the lowest value within the radius.

签名
腐蚀(纹理: Texture, 半径: 数字) -> Texture
Texture Erode(Texture texture, double radius = 2)

参数

名称类型默认值说明
纹理Texture—The texture.
半径数字2How far bright areas shrink, in pixels of a 1024-pixel texture.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理滤镜
所属包
图像处理

高通

函数

Keeps only the detail finer than the radius, around middle grey: removes the uneven lighting of a photograph so it tiles without visible patches, or isolates small bumps.

签名
高通(纹理: Texture, 半径: 数字) -> Texture
Texture HighPass(Texture texture, double radius = 16)

参数

名称类型默认值说明
纹理Texture—The texture.
半径数字16Detail larger than this is removed, in pixels of a 1024-pixel texture.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理滤镜
所属包
图像处理

非均匀模糊

函数

Blurs each pixel by a different amount, read from a map: white blurs fully to the maximum radius, black not at all. Softens some areas while leaving others crisp.

签名
非均匀模糊 -> Texture
    纹理: Texture
    程度: Texture
    最大半径: 数字
Texture NonUniformBlur(
    Texture texture,
    Texture amount,
    double maximumRadius = 8)

参数

名称类型默认值说明
纹理Texture—The texture.
程度Texture—How much to blur each pixel, 0 to 1.
最大半径数字8The radius where the amount is 1, in pixels of a 1024-pixel texture.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理滤镜
所属包
图像处理

锐化

函数

Sharpens by adding back the difference between the texture and a blur of it (an unsharp mask).

签名
锐化(纹理: Texture, 程度: 数字, 半径: 数字) -> Texture
Texture Sharpen(
    Texture texture,
    double amount = 1,
    double radius = 1.5)

参数

名称类型默认值说明
纹理Texture—The texture.
程度数字1How much of the difference is added.
半径数字1.5The size of the detail sharpened, in pixels of a 1024-pixel texture.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理滤镜
所属包
图像处理