元编程参考文档

图像滤镜

38 个节点

本页内容 38

自适应阈值

函数

Applies adaptive thresholding to luminance. Useful for document scans, uneven lighting, OCR preprocessing, and local black/white masks.

签名
自适应阈值 -> Pixel Image
    源: Pixel Image
    最大值: 数字
    块大小: 整数
    C: 数字
    方法: Adaptive Threshold Method
    反转: 真否
PixelImage AdaptiveThreshold(
    PixelImage source,
    double maxValue = 255,
    int blockSize = 11,
    double c = 2,
    ImageProcessingFilters.AdaptiveThresholdMethod method = AdaptiveThresholdMethod.Gaussian,
    bool invert = false)

参数

名称类型默认值说明
源Pixel Image—The image.
最大值数字255The level a pixel above its local level becomes.
块大小整数11The square, in pixels, whose mean each pixel is compared with; an even size is made odd, and 3 is the least.
C数字2Subtracted from the local mean before comparing: larger leaves fewer pixels white.
方法Adaptive Threshold Method高斯The plain or the Gaussian-weighted mean.
反转真否FalseSwaps black and white.

返回

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

双边滤波

函数

Applies bilateral filtering. Useful for painterly smoothing, skin smoothing, and denoising while preserving major edges.

签名
双边滤波 -> Pixel Image
    源: Pixel Image
    直径: 整数
    颜色标准差: 数字
    空间标准差: 数字
PixelImage BilateralFilter(
    PixelImage source,
    int diameter = 9,
    double sigmaColor = 75,
    double sigmaSpace = 75)

参数

名称类型默认值说明
源Pixel Image—The image.
直径整数9The neighbourhood's diameter in pixels.
颜色标准差数字75How different a neighbour's colour may be and still count: larger mixes more colours.
空间标准差数字75How far a neighbour may be and still count, in pixels.

返回

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

Canny 边缘检测

函数

Canny edge detection on luminance: a binary image, white on the one-pixel edges.

签名
Canny 边缘检测 -> Pixel Image
    源: Pixel Image
    低阈值: 数字
    高阈值: 数字
PixelImage CannyEdgeDetect(
    PixelImage source,
    double lowThreshold = 40,
    double highThreshold = 100)

参数

名称类型默认值说明
源Pixel Image—The image.
低阈值数字40A pixel whose gradient is above this is an edge if it touches one.
高阈值数字100A pixel whose gradient is above this is an edge.

返回

结果Pixel Image

备注

The gradient is the 3-by-3 Sobel's and its magnitude the sum of the absolute horizontal and vertical derivatives, so a hard black-to-white step measures up to 1020. A pixel is an edge where that magnitude is a local maximum across the edge and above High Threshold, or above Low Threshold and connected to an edge. There is no blur first: blur a noisy image before this.

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

限制对比度自适应直方图均衡

函数

Applies CLAHE contrast enhancement to luminance. Useful for local contrast improvement, uneven lighting correction, document enhancement, and medical/scientific image previews.

签名
限制对比度自适应直方图均衡 -> Pixel Image
    源: Pixel Image
    剪裁限制: 数字
    网格块宽度: 整数
    网格块高度: 整数
PixelImage CLAHE(
    PixelImage source,
    double clipLimit = 2,
    int tileGridWidth = 8,
    int tileGridHeight = 8)

参数

名称类型默认值说明
源Pixel Image—The image.
剪裁限制数字2How much a tile's histogram may peak before it is clipped: higher allows more contrast.
网格块宽度整数8The number of tiles across.
网格块高度整数8The number of tiles down.

返回

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

颜色空间转换

函数

Converts the image to another color representation. Useful for grayscale conversion or false-color visualization of HSV/Lab/YCrCb channels.

签名
颜色空间转换 -> Pixel Image
    源: Pixel Image
    颜色空间: Color Space
PixelImage ConvertColorSpace(
    PixelImage source,
    ImageProcessingFilters.ColorSpace colorSpace = ColorSpace.Grayscale)

参数

名称类型默认值说明
源Pixel Image—The image.
颜色空间Color Space灰度The representation shown; its three channels are drawn as blue, green and red.

返回

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

细节增强

函数

Enhances local detail and contrast. Useful for HDR-like detail pop, texture enhancement, and sharpening-like visual effects.

签名
细节增强 -> Pixel Image
    源: Pixel Image
    空间标准差: 低精度数字
    范围标准差: 低精度数字
PixelImage DetailEnhance(
    PixelImage source,
    float sigmaS = 10f,
    float sigmaR = 0.15f)

参数

名称类型默认值说明
源Pixel Image—The image.
空间标准差低精度数字10The scale of what counts as detail, from 0 to 200.
范围标准差低精度数字0.15How much lightness difference still counts as detail, from 0 to 1.

返回

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

膨胀

函数

Dilates bright regions. Useful for thickening masks, connecting broken lines, and expanding detected regions.

签名
膨胀 -> Pixel Image
    源: Pixel Image
    核大小: 整数
    迭代次数: 整数
PixelImage Dilate(
    PixelImage source,
    int kernelSize = 3,
    int iterations = 1)

参数

名称类型默认值说明
源Pixel Image—The image.
核大小整数3The square's width in pixels; an even size is made odd.
迭代次数整数1How many times to dilate.

返回

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

定向梯度涂抹

函数

Height map should drive the direction. One-sided directional smudge.

签名
定向梯度涂抹 -> Pixel Image
    源: Pixel Image
    高度图: I Pixel Image Sampler
    强度: 低精度数字
    向下坡涂抹: 真否
    样本: 整数
PixelImage DirectionalGradientSmudge(
    PixelImage source,
    IPixelImageSampler heightMap,
    float intensity,
    bool smudgeDownhill,
    int samples = 8)

参数

名称类型默认值说明
源Pixel Image—
高度图I Pixel Image Sampler—A heightmap that drives the direction of smudge.
强度低精度数字—
向下坡涂抹真否—True to sample opposite the gradient (high into low / white into black), false to sample along the gradient (low into high / black into white).
样本整数8

返回

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

保边滤波

函数

Edge-preserving smoothing. Useful for simplifying textures while keeping strong object boundaries.

签名
保边滤波 -> Pixel Image
    源: Pixel Image
    方法: Edge Preserving Method
    空间标准差: 低精度数字
    范围标准差: 低精度数字
PixelImage EdgePreservingFilter(
    PixelImage source,
    ImageProcessingFilters.EdgePreservingMethod method = EdgePreservingMethod.Recursive,
    float sigmaS = 60f,
    float sigmaR = 0.4f)

参数

名称类型默认值说明
源Pixel Image—The image.
方法Edge Preserving Method递归滤波Recursive filtering, or normalised convolution.
空间标准差低精度数字60The smoothing's reach, from 0 to 200.
范围标准差低精度数字0.4How much colour difference still smooths, from 0 to 1.

返回

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

浮雕

函数

此节点没有文档说明。

签名
浮雕(源: Pixel Image) -> Pixel Image
PixelImage Emboss(PixelImage source)

参数

名称类型默认值说明
源Pixel Image—

返回

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

直方图均衡

函数

Applies global histogram equalization to luminance. Useful for improving contrast in flat grayscale images and preprocessing threshold/edge detection.

签名
直方图均衡(源: Pixel Image) -> Pixel Image
PixelImage EqualizeHistogram(PixelImage source)

参数

名称类型默认值说明
源Pixel Image—The image.

返回

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

腐蚀

函数

Erodes bright regions. Useful for shrinking masks, removing tiny white specks, and separating touching blobs.

签名
腐蚀 -> Pixel Image
    源: Pixel Image
    核大小: 整数
    迭代次数: 整数
PixelImage Erode(
    PixelImage source,
    int kernelSize = 3,
    int iterations = 1)

参数

名称类型默认值说明
源Pixel Image—The image.
核大小整数3The square's width in pixels; an even size is made odd.
迭代次数整数1How many times to erode.

返回

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

查找轮廓

函数

Finds contours from a thresholded luminance image and draws them over the source. Useful for blob outlines, shape extraction previews, and segmentation debugging.

签名
查找轮廓 -> Pixel Image
    源: Pixel Image
    阈值: 数字
    检索方式: Contour Retrieval
    厚度: 整数
PixelImage FindContours(
    PixelImage source,
    double threshold = 128,
    ImageProcessingFilters.ContourRetrieval retrieval = ContourRetrieval.External,
    int thickness = 2)

参数

名称类型默认值说明
源Pixel Image—The image.
阈值数字128Pixels brighter than this, 0 to 255, form the regions whose borders are found.
检索方式Contour Retrieval仅外轮廓Only the outermost borders, or all of them.
厚度整数2The drawn line's width in pixels.

返回

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

Floyd-Steinberg 抖动

函数

此节点没有文档说明。

签名
Floyd-Steinberg 抖动(源: Pixel Image) -> Pixel Image
PixelImage FloydSteinbergDither(PixelImage source)

参数

名称类型默认值说明
源Pixel Image—

返回

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

高斯模糊

函数

Applies Gaussian blur. Useful for soft focus, denoising before edge detection, glow bases, and reducing small texture detail.

签名
高斯模糊 -> Pixel Image
    源: Pixel Image
    核大小: 整数
    标准差: 数字
PixelImage GaussianBlur(
    PixelImage source,
    int kernelSize = 5,
    double sigma = 0)

参数

名称类型默认值说明
源Pixel Image—The image.
核大小整数5The kernel's width in pixels; an even size is made odd.
标准差数字0The Gaussian's spread in pixels; 0 derives it from the kernel size.

返回

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

梯度涂抹

函数

Height map should drive the direction

签名
梯度涂抹 -> Pixel Image
    源: Pixel Image
    高度图: I Pixel Image Sampler
    强度: 低精度数字
    样本: 整数
PixelImage GradientSmudge(
    PixelImage source,
    IPixelImageSampler heightMap,
    float intensity,
    int samples = 8)

参数

名称类型默认值说明
源Pixel Image—
高度图I Pixel Image Sampler—A heightmap that drives the direction of smudge.
强度低精度数字—
样本整数8

返回

结果Pixel Image

备注

Experimental; Not performing well yet.
Works like Blur Slope in Adobe Substance Painter.

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

半色调滤镜

函数

Applies a monochrome halftone effect using circular dots.
Darker source areas produce larger black dots on a white background.

签名
半色调滤镜 -> Pixel Image
    源: Pixel Image
    单元大小: 整数
    角度(度): 数字
PixelImage HalftoneFilter(
    PixelImage source,
    int cellSize = 8,
    double angleDegrees = 45)

参数

名称类型默认值说明
源Pixel Image—
单元大小整数8
角度(度)数字45

返回

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

高清缩放

函数

Speedy detail preserving upscale through resampling with Lanczos-4. No generated details.

签名
高清缩放(源: Pixel Image, 宽度: 整数, 高度: 整数) -> Pixel Image
PixelImage HDScale(PixelImage source, int width, int height)

参数

名称类型默认值说明
源Pixel Image—The image.
宽度整数—The result's width in pixels.
高度整数—The result's height in pixels.

返回

结果Pixel Image

备注

Useful for high-quality HD enlargement.

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

高清缩放以适应

函数

Upscales the image to fit within the target size using Lanczos-4 resampling while preserving aspect ratio.

签名
高清缩放以适应 -> Pixel Image
    源: Pixel Image
    最大宽度: 整数
    最大高度: 整数
    允许缩小: 真否
PixelImage HDScaleFit(
    PixelImage source,
    int maxWidth = 1920,
    int maxHeight = 1080,
    bool allowDownscale = false)

参数

名称类型默认值说明
源Pixel Image—The image.
最大宽度整数1920The widest the result may be, in pixels.
最大高度整数1080The tallest the result may be, in pixels.
允许缩小真否FalseWhether an image already larger than the box is made smaller to fit it.

返回

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

霍夫圆检测

函数

Detects circles with the gradient Hough transform and draws them over the source. Useful for round object detection, UI target detection, wheels, coins, cells, and circular feature previews.

签名
霍夫圆检测 -> Pixel Image
    源: Pixel Image
    累加器分辨率比: 数字
    最小距离: 数字
    参数 1: 数字
    参数 2: 数字
    最小半径: 整数
    最大半径: 整数
    厚度: 整数
PixelImage HoughCircles(
    PixelImage source,
    double dp = 1,
    double minDist = 40,
    double param1 = 100,
    double param2 = 30,
    int minRadius = 0,
    int maxRadius = 0,
    int thickness = 2)

参数

名称类型默认值说明
源Pixel Image—The image.
累加器分辨率比数字1The accumulator's coarseness: 1 is the image's resolution, 2 half of it.
最小距离数字40The least distance between two circles' centres, in pixels.
参数 1数字100The edge detector's high threshold (the low is half of it).
参数 2数字30How many votes a centre needs: smaller finds more circles, some false.
最小半径整数0The smallest radius, in pixels.
最大半径整数0The largest radius, in pixels; 0 for the image's size.
厚度整数2The drawn circle's width in pixels.

返回

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

霍夫线段检测

函数

Detects line segments with the probabilistic Hough transform on Canny edges and draws them over the source. Useful for lane lines, document edges, grids, architecture, and geometric analysis previews.

签名
霍夫线段检测 -> Pixel Image
    源: Pixel Image
    Canny 低阈值: 数字
    Canny 高阈值: 数字
    距离分辨率: 数字
    角度分辨率(度): 数字
    阈值: 整数
    最小线段长度: 数字
    最大线段间隙: 数字
    厚度: 整数
PixelImage HoughLines(
    PixelImage source,
    double cannyLowThreshold = 40,
    double cannyHighThreshold = 100,
    double rho = 1,
    double thetaDegrees = 1,
    int threshold = 50,
    double minLineLength = 50,
    double maxLineGap = 10,
    int thickness = 2)

参数

名称类型默认值说明
源Pixel Image—The image.
Canny 低阈值数字40The edge detector's low threshold (see Canny).
Canny 高阈值数字100The edge detector's high threshold.
距离分辨率数字1The distance resolution of the accumulator, in pixels.
角度分辨率(度)数字1The angle resolution of the accumulator, in degrees.
阈值整数50How many edge points must vote for a line.
最小线段长度数字50The shortest segment kept, in pixels.
最大线段间隙数字10The widest gap a segment may bridge, in pixels.
厚度整数2The drawn line's width in pixels.

返回

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

拉普拉斯算子

函数

Applies Laplacian edge detection to luminance. Useful for high-pass edge effects and quick structure visualization.

签名
拉普拉斯算子 -> Pixel Image
    源: Pixel Image
    核大小: 整数
    缩放: 数字
    增量: 数字
PixelImage Laplacian(
    PixelImage source,
    int kernelSize = 3,
    double scale = 1,
    double delta = 0)

参数

名称类型默认值说明
源Pixel Image—The image.
核大小整数31 or 3 for the 3-by-3 Laplacians, 5 to 31 for second Sobel derivatives; an even size is made odd.
缩放数字1Multiplies the response.
增量数字0Added to the response before its absolute value is taken.

返回

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

中值模糊

函数

Applies median blur. Useful for removing salt-and-pepper noise while preserving stronger edges better than Gaussian blur.

签名
中值模糊(源: Pixel Image, 核大小: 整数) -> Pixel Image
PixelImage MedianBlur(PixelImage source, int kernelSize = 5)

参数

名称类型默认值说明
源Pixel Image—The image.
核大小整数5The square's width in pixels; an even size is made odd.

返回

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

形态学运算

函数

Applies a morphology operation. Useful for mask cleanup, closing gaps, opening noise, extracting highlights, and structural image effects.

签名
形态学运算 -> Pixel Image
    源: Pixel Image
    运算: Morphology Operation
    核大小: 整数
    迭代次数: 整数
PixelImage Morphology(
    PixelImage source,
    ImageProcessingFilters.MorphologyOperation operation = MorphologyOperation.Close,
    int kernelSize = 3,
    int iterations = 1)

参数

名称类型默认值说明
源Pixel Image—The image.
运算Morphology Operation闭运算Open, close, gradient, top hat or black hat.
核大小整数3The square's width in pixels; an even size is made odd.
迭代次数整数1How many times each erosion and dilation is applied.

返回

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

形态学梯度

函数

Applies morphology gradient. Useful for outline extraction, mask boundaries, and a bold edge-like visual effect.

签名
形态学梯度 -> Pixel Image
    源: Pixel Image
    核大小: 整数
    迭代次数: 整数
PixelImage MorphologyGradient(
    PixelImage source,
    int kernelSize = 3,
    int iterations = 1)

参数

名称类型默认值说明
源Pixel Image—The image.
核大小整数3The square's width in pixels; an even size is made odd.
迭代次数整数1How many times each erosion and dilation is applied.

返回

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

涂色

函数

此节点没有文档说明。

签名
涂色 -> Pixel Image
    顶部: Pixel Image
    位置: Vector2
    底部: Pixel Image
    底部蒙版: I Pixel Image Sampler
PixelImage Paint(
    PixelImage top,
    Vector2 position,
    PixelImage bottom,
    IPixelImageSampler bottomMask)

参数

名称类型默认值说明
顶部Pixel Image—
位置Vector2—
底部Pixel Image—
底部蒙版I Pixel Image Sampler—

返回

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

铅笔素描效果

函数

Produces a pencil-sketch effect. Useful for grayscale sketch previews, artistic filters, and line-art-like rendering.

签名
铅笔素描效果 -> Pixel Image
    源: Pixel Image
    颜色: 真否
    空间标准差: 低精度数字
    范围标准差: 低精度数字
    阴影系数: 低精度数字
PixelImage PencilSketch(
    PixelImage source,
    bool color = false,
    float sigmaS = 60f,
    float sigmaR = 0.07f,
    float shadeFactor = 0.02f)

参数

名称类型默认值说明
源Pixel Image—The source image to process.
颜色真否FalseIf true, returns the color sketch result; otherwise returns the grayscale sketch result.
空间标准差低精度数字60Controls the size of the neighborhood used for smoothing. Larger values produce broader, smoother sketch regions.
范围标准差低精度数字0.07Controls how strongly color or intensity differences are preserved during smoothing. Smaller values preserve sharper edges.
阴影系数低精度数字0.02Controls the amount of shading in the sketch. Smaller values generally produce darker, more pronounced shading.

返回

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

像素化

函数

此节点没有文档说明。

签名
像素化(源: Pixel Image, 块大小: 整数) -> Pixel Image
PixelImage Pixelate(PixelImage source, int blockSize = 8)

参数

名称类型默认值说明
源Pixel Image—
块大小整数8

返回

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

Scharr 算子

函数

Applies Scharr edge detection to luminance. Useful for stronger 3x3 directional gradients than Sobel.

签名
Scharr 算子 -> Pixel Image
    源: Pixel Image
    X 方向导数阶数: 整数
    Y 方向导数阶数: 整数
    缩放: 数字
    增量: 数字
PixelImage Scharr(
    PixelImage source,
    int dx = 1,
    int dy = 0,
    double scale = 1,
    double delta = 0)

参数

名称类型默认值说明
源Pixel Image—The image.
X 方向导数阶数整数11 for the derivative across (vertical edges), 0 otherwise.
Y 方向导数阶数整数01 for the derivative down (horizontal edges), 0 otherwise.
缩放数字1Multiplies the response.
增量数字0Added to the response before its absolute value is taken.

返回

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

复古褐色

函数

此节点没有文档说明。

签名
复古褐色(源: Pixel Image) -> Pixel Image
PixelImage Sepia(PixelImage source)

参数

名称类型默认值说明
源Pixel Image—

返回

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

Sobel 算子

函数

Applies Sobel edge detection to luminance. Useful for directional gradients, edge maps, bump-like effects, and preprocessing.

签名
Sobel 算子 -> Pixel Image
    源: Pixel Image
    X 方向导数阶数: 整数
    Y 方向导数阶数: 整数
    核大小: 整数
    缩放: 数字
    增量: 数字
PixelImage Sobel(
    PixelImage source,
    int dx = 1,
    int dy = 0,
    int kernelSize = 3,
    double scale = 1,
    double delta = 0)

参数

名称类型默认值说明
源Pixel Image—The image.
X 方向导数阶数整数1The order of the derivative across: 1 for vertical edges.
Y 方向导数阶数整数0The order of the derivative down: 1 for horizontal edges.
核大小整数31, 3, 5 or 7 up to 31; an even size is made odd.
缩放数字1Multiplies the response.
增量数字0Added to the response before its absolute value is taken.

返回

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

Sobel 边缘检测

函数

此节点没有文档说明。

签名
Sobel 边缘检测(源: Pixel Image) -> Pixel Image
PixelImage SobelEdgeDetect(PixelImage source)

参数

名称类型默认值说明
源Pixel Image—

返回

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

风格化

函数

Stylization: painterly, cartoon-like abstraction that smooths low-contrast regions and darkens strong structure.

签名
风格化 -> Pixel Image
    源: Pixel Image
    空间标准差: 低精度数字
    范围标准差: 低精度数字
PixelImage Stylization(
    PixelImage source,
    float sigmaS = 60f,
    float sigmaR = 0.45f)

参数

名称类型默认值说明
源Pixel Image—The image.
空间标准差低精度数字60The smoothing's reach, from 0 to 200.
范围标准差低精度数字0.45How much colour difference still smooths, from 0 to 1: larger flattens more.

返回

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

阈值化

函数

Applies simple thresholding to luminance. Useful for masks, hard black/white conversion, document cleanup, and segmentation preprocessing.

签名
阈值化 -> Pixel Image
    源: Pixel Image
    阈值: 数字
    最大值: 数字
    模式: Threshold Mode
PixelImage Threshold(
    PixelImage source,
    double threshold = 128,
    double maxValue = 255,
    ImageProcessingFilters.ThresholdMode mode = ThresholdMode.Binary)

参数

名称类型默认值说明
源Pixel Image—The image.
阈值数字128The level compared against, 0 to 255; the Otsu modes choose their own.
最大值数字255The level a pixel above the threshold becomes in the binary modes.
模式Threshold Mode二值化How a level maps against the threshold.

返回

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

转为距离场

函数

此节点没有文档说明。

签名
转为距离场 -> Grayscale16BitImage
    图像: Grayscale16BitImage
    最大距离(像素): 整数
Grayscale16BitImage ToDistanceField(
    Grayscale16BitImage image,
    int maxDistanceInPixel)

参数

名称类型默认值说明
图像Grayscale16BitImage—
最大距离(像素)整数—

返回

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

暗角

函数

此节点没有文档说明。

签名
暗角(源: Pixel Image, 强度: 数字) -> Pixel Image
PixelImage Vignette(PixelImage source, double strength = 0.5)

参数

名称类型默认值说明
源Pixel Image—
强度数字0.5

返回

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

仿射变换

函数

Applies affine rotation around image center. Useful for rotation, scale, slight geometric distortion, and preview transforms.

签名
仿射变换 -> Pixel Image
    源: Pixel Image
    角度(度): 数字
    缩放: 数字
    X 平移: 数字
    Y 平移: 数字
PixelImage WarpAffine(
    PixelImage source,
    double angleDegrees = 0,
    double scale = 1,
    double translateX = 0,
    double translateY = 0)

参数

名称类型默认值说明
源Pixel Image—The image.
角度(度)数字0The rotation in degrees, counter-clockwise.
缩放数字1The scale about the centre.
X 平移数字0Pixels moved right after rotating.
Y 平移数字0Pixels moved down after rotating.

返回

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

透视变换

函数

Applies perspective warp from four source corners to four destination corners. Useful for document correction, keystone effects, quadrilateral remapping, and perspective distortion.

签名
透视变换 -> Pixel Image
    源: Pixel Image
    源点: Vector2 数组
    目标点: Vector2 数组
    输出宽度: 整数
    输出高度: 整数
PixelImage WarpPerspective(
    PixelImage source,
    Vector2[] sourcePoints,
    Vector2[] destinationPoints,
    int outputWidth,
    int outputHeight)

参数

名称类型默认值说明
源Pixel Image—The image.
源点Vector2 数组—Four points in the source, in pixels.
目标点Vector2 数组—Where each of the four lands in the result, in the same order.
输出宽度整数—The result's width in pixels.
输出高度整数—The result's height in pixels.

返回

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