@thi.ng/pixel-convolve 1.1.26 → 1.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -22
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
-
<!-- Please see: https://
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/pixel-convolve)
|
|
6
6
|

|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> This is one of 214 standalone projects, maintained as part
|
|
11
|
-
> of the [@thi.ng/umbrella](https://
|
|
11
|
+
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
14
|
-
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
-
>
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
+
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
|
|
16
|
+
> Thank you! ❤️
|
|
16
17
|
|
|
17
18
|
- [About](#about)
|
|
18
19
|
- [Strided convolution & pooling](#strided-convolution--pooling)
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
|
|
28
29
|
## About
|
|
29
30
|
|
|
30
|
-
Extensible bitmap image convolution, kernel presets, normal map & image pyramid generation. This is a support package for [@thi.ng/pixel](https://
|
|
31
|
+
Extensible bitmap image convolution, kernel presets, normal map & image pyramid generation. This is a support package for [@thi.ng/pixel](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/pixel).
|
|
31
32
|
|
|
32
33
|
This package contains functionality which was previously part of and has been
|
|
33
34
|
extracted from the [@thi.ng/pixel](https://thi.ng/pixel) package.
|
|
@@ -112,10 +113,10 @@ unsigned values when the image is converted into an integer format.
|
|
|
112
113
|
|
|
113
114
|
| Step | Scale = 1 | Scale = 2 | Scale = 4 | Scale = 8 |
|
|
114
115
|
|------|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|
|
|
115
|
-
| 0 |  |  |  |  |
|
|
117
|
+
| 1 |  |  |  |  |
|
|
118
|
+
| 2 |  |  |  |  |
|
|
119
|
+
| 3 |  |  |  |  |
|
|
119
120
|
|
|
120
121
|
```ts tangle:export/readme-normalmap.ts
|
|
121
122
|
import { ARGB8888, FLOAT_GRAY, floatBufferFromImage, imageFromURL } from "@thi.ng/pixel";
|
|
@@ -140,7 +141,7 @@ const nmapARGB = nmap.as(ARGB8888);
|
|
|
140
141
|
|
|
141
142
|
**STABLE** - used in production
|
|
142
143
|
|
|
143
|
-
[Search or submit any issues for this package](https://
|
|
144
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bpixel-convolve%5D)
|
|
144
145
|
|
|
145
146
|
## Installation
|
|
146
147
|
|
|
@@ -172,25 +173,25 @@ Package sizes (brotli'd, pre-treeshake): ESM: 2.29 KB
|
|
|
172
173
|
|
|
173
174
|
## Dependencies
|
|
174
175
|
|
|
175
|
-
- [@thi.ng/api](https://
|
|
176
|
-
- [@thi.ng/checks](https://
|
|
177
|
-
- [@thi.ng/errors](https://
|
|
178
|
-
- [@thi.ng/math](https://
|
|
179
|
-
- [@thi.ng/pixel](https://
|
|
176
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
177
|
+
- [@thi.ng/checks](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/checks)
|
|
178
|
+
- [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
|
|
179
|
+
- [@thi.ng/math](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/math)
|
|
180
|
+
- [@thi.ng/pixel](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/pixel)
|
|
180
181
|
|
|
181
182
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
182
183
|
|
|
183
184
|
## Usage examples
|
|
184
185
|
|
|
185
186
|
Three projects in this repo's
|
|
186
|
-
[/examples](https://
|
|
187
|
+
[/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
|
|
187
188
|
directory are using this package:
|
|
188
189
|
|
|
189
|
-
| Screenshot | Description | Live demo | Source
|
|
190
|
-
|
|
191
|
-
| <img src="https://
|
|
192
|
-
| <img src="https://
|
|
193
|
-
| <img src="https://
|
|
190
|
+
| Screenshot | Description | Live demo | Source |
|
|
191
|
+
|:--------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------|:---------------------------------------------------------|:----------------------------------------------------------------------------------------------|
|
|
192
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/adaptive-threshold.png" width="240"/> | Interactive image processing (adaptive threshold) | [Demo](https://demo.thi.ng/umbrella/adaptive-threshold/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/adaptive-threshold) |
|
|
193
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/geom-terrain-viz.jpg" width="240"/> | 2.5D hidden line visualization of digital elevation files (DEM) | [Demo](https://demo.thi.ng/umbrella/geom-terrain-viz/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/geom-terrain-viz) |
|
|
194
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/pixel-normal-map.jpg" width="240"/> | Normal map creation/conversion basics | [Demo](https://demo.thi.ng/umbrella/pixel-normal-map/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/pixel-normal-map) |
|
|
194
195
|
|
|
195
196
|
## API
|
|
196
197
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/pixel-convolve",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.28",
|
|
4
4
|
"description": "Extensible bitmap image convolution, kernel presets, normal map & image pyramid generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://codeberg.org/thi.ng/umbrella.git",
|
|
12
12
|
"directory": "packages/pixel-convolve"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/pixel-convolve",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/checks": "^3.8.
|
|
45
|
-
"@thi.ng/errors": "^2.6.
|
|
46
|
-
"@thi.ng/math": "^5.15.
|
|
47
|
-
"@thi.ng/pixel": "^7.5.
|
|
43
|
+
"@thi.ng/api": "^8.12.19",
|
|
44
|
+
"@thi.ng/checks": "^3.8.9",
|
|
45
|
+
"@thi.ng/errors": "^2.6.8",
|
|
46
|
+
"@thi.ng/math": "^5.15.8",
|
|
47
|
+
"@thi.ng/pixel": "^7.5.28"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"esbuild": "^0.
|
|
51
|
-
"typedoc": "^0.28.
|
|
50
|
+
"esbuild": "^0.28.0",
|
|
51
|
+
"typedoc": "^0.28.18",
|
|
52
52
|
"typescript": "^5.9.3"
|
|
53
53
|
},
|
|
54
54
|
"keywords": [
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"parent": "@thi.ng/pixel",
|
|
105
105
|
"year": 2021
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "a780d4a5f6f5fc595c9d28527686f63534927d32"
|
|
108
108
|
}
|