元編程參考文件

影像濾鏡

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
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
影像濾鏡
所屬包
影像處理