From 2771ff4b87623ef7305932ff6385beae5081c617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Mon, 8 Jan 2024 10:20:44 +0100 Subject: [PATCH] added graphic filter effects (matrix-kernel convolution tools) to the pixels library --- HISTORY.md | 6 +++++- libraries/pixel_module.xml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 91135847f0..c277552dd7 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,9 @@ # Snap! (BYOB) History ## in development: +* **New Features:** + * (better) matrix-kernel convolution support, automatic zero-padding + * new graphic filter effects tools in the pixels library * **Notable Changes:** * hyperized ITEM OF * tweaked hyperDyadic() to zip matching atoms based on comparing their dimensions backwards (as in NumPy) @@ -11,7 +14,8 @@ * fixed speech balloons inside ASK menus 2024-01-08 -* threads: tweaked hyperDyadic() to allow explicit dimension matching +* threads: tweaked hyperDyadic() to allow explicit dimension matching +* pixels library: added graphic filter effects (matrix-kernel convolutions) 2024-01-05 * objects: fixed speech balloons inside ASK menus diff --git a/libraries/pixel_module.xml b/libraries/pixel_module.xml index 0156888544..cf394bc3c5 100644 --- a/libraries/pixel_module.xml +++ b/libraries/pixel_module.xml @@ -1 +1 @@ -takes a snapshot with the webcam and reports it as a new costume, or zero if the user cancels
pt:$camera a imagem actual do vídeo
§_costumesMenu
§_costumesMenuthing
frame
\ No newline at end of file +takes a snapshot with the webcam and reports it as a new costume, or zero if the user cancels
pt:$camera a imagem actual do vídeo
§_costumesMenu
§_costumesMenuthing
frame
BlurBlur Sharpen Outline Emboss Edgecurrent§_costumesMenutruewh
BlurBlur Sharpen Outline Emboss Edgeoutlineembossedge0.06250.1250.06250.1250.250.1250.06250.1250.0625
reshape the kernel to match the input matrix's channels, if anyevery coordinate112for every padded pixel create a partial copy of the input, item-multiply it with the kernel and take its overall sum (∑)
\ No newline at end of file