runmat 0.4.5-dev.3 → 0.4.5-dev.4
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/artifacts/stdlib.snapshot +0 -0
- package/dist/fs/default.d.ts.map +1 -1
- package/dist/fs/default.js +11 -0
- package/dist/fs/default.js.map +1 -1
- package/dist/fs/indexeddb.d.ts.map +1 -1
- package/dist/fs/indexeddb.js +106 -46
- package/dist/fs/indexeddb.js.map +1 -1
- package/dist/generated/builtin-examples-catalog.d.ts.map +1 -1
- package/dist/generated/builtin-examples-catalog.js +1 -1
- package/dist/generated/builtin-examples-catalog.js.map +1 -1
- package/dist/generated/builtins/imshow.d.ts +4 -0
- package/dist/generated/builtins/imshow.d.ts.map +1 -0
- package/dist/generated/builtins/imshow.js +104 -0
- package/dist/generated/builtins/imshow.js.map +1 -0
- package/dist/generated/builtins-manifest.d.ts.map +1 -1
- package/dist/generated/builtins-manifest.js +21 -0
- package/dist/generated/builtins-manifest.js.map +1 -1
- package/dist/lsp/runmat_lsp.d.ts +2 -2
- package/dist/lsp/runmat_lsp.js +4 -4
- package/dist/lsp/runmat_lsp_bg.wasm +0 -0
- package/dist/lsp/runmat_lsp_bg.wasm.d.ts +2 -2
- package/dist/pkg-web/runmat_wasm_web.d.ts +3 -3
- package/dist/pkg-web/runmat_wasm_web.js +7 -7
- package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
- package/dist/pkg-web/runmat_wasm_web_bg.wasm.d.ts +3 -3
- package/dist/runtime/stdlib.snapshot +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imshow.d.ts","sourceRoot":"","sources":["../../../src/generated/builtins/imshow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,UAmGjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// @generated by scripts/generate-builtins.cjs
|
|
2
|
+
// Do not edit by hand.
|
|
3
|
+
const builtinDoc = {
|
|
4
|
+
"title": "imshow",
|
|
5
|
+
"category": "plotting",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"imshow",
|
|
8
|
+
"image display",
|
|
9
|
+
"grayscale image",
|
|
10
|
+
"binary image",
|
|
11
|
+
"rgb image",
|
|
12
|
+
"matlab imshow"
|
|
13
|
+
],
|
|
14
|
+
"summary": "Display grayscale, binary, truecolor, or file-backed images.",
|
|
15
|
+
"gpu_support": {
|
|
16
|
+
"elementwise": false,
|
|
17
|
+
"reduction": false,
|
|
18
|
+
"precisions": [],
|
|
19
|
+
"broadcasting": "none",
|
|
20
|
+
"notes": "`imshow` is a plotting sink and does not advertise precision-specialized GPU kernels. Grayscale gpuArray inputs may use the image/surface rendering path; filename decoding and truecolor normalization run on the host."
|
|
21
|
+
},
|
|
22
|
+
"fusion": {
|
|
23
|
+
"elementwise": false,
|
|
24
|
+
"reduction": false,
|
|
25
|
+
"max_inputs": 2,
|
|
26
|
+
"constants": "inline"
|
|
27
|
+
},
|
|
28
|
+
"requires_feature": null,
|
|
29
|
+
"tested": {
|
|
30
|
+
"unit": "builtins::plotting::imshow::tests"
|
|
31
|
+
},
|
|
32
|
+
"description": "`imshow` displays image data using MATLAB-familiar defaults. Numeric and logical 2-D arrays render as grayscale images, MxNx3 and MxNx4 arrays render as truecolor images, and filename inputs are decoded through RunMat's filesystem layer before display.",
|
|
33
|
+
"behaviors": [
|
|
34
|
+
"`imshow(I)` displays 2-D numeric data with grayscale limits `[0, 1]`, matching MATLAB double-image defaults.",
|
|
35
|
+
"`imshow(BW)` displays logical image data as black and white using `[0, 1]` limits.",
|
|
36
|
+
"`imshow(RGB)` displays MxNx3 truecolor data directly.",
|
|
37
|
+
"`imshow(RGBA)` displays MxNx4 truecolor data with alpha.",
|
|
38
|
+
"`imshow(I, [low high])` displays grayscale image data using an explicit display range.",
|
|
39
|
+
"`imshow(I, [])` auto-scales grayscale image data from finite minimum to finite maximum.",
|
|
40
|
+
"`imshow(filename)` reads and decodes an image file, then displays it as truecolor data."
|
|
41
|
+
],
|
|
42
|
+
"examples": [
|
|
43
|
+
{
|
|
44
|
+
"description": "Display a simple grayscale image",
|
|
45
|
+
"input": "row = 100;\ncol = 100;\nrsm = ones(row, col);\nimshow(rsm);"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"description": "Auto-scale a matrix for display",
|
|
49
|
+
"input": "A = peaks(128);\nimshow(A, []);"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"description": "Display truecolor RGB data",
|
|
53
|
+
"input": "R = ones(64, 64);\nG = zeros(64, 64);\nB = zeros(64, 64);\nRGB = cat(3, R, G, B);\nimshow(RGB);"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"description": "Display an image file",
|
|
57
|
+
"input": "imshow(\"photo.png\");"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"faqs": [
|
|
61
|
+
{
|
|
62
|
+
"question": "What display range does imshow use for doubles?",
|
|
63
|
+
"answer": "`imshow(I)` uses `[0, 1]` for floating-point grayscale data. Use `imshow(I, [])` when you want RunMat to scale the visible range from the data minimum to maximum."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"question": "Does imshow support uint8 and uint16 image defaults?",
|
|
67
|
+
"answer": "File-backed images decode with byte pixel semantics. User-created integer image arrays currently depend on RunMat's broader numeric-class metadata model, so exact MATLAB class-dependent defaults for dense uint8/uint16 tensors are tracked separately."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"question": "How is imshow different from imagesc?",
|
|
71
|
+
"answer": "`imshow` is for image display and uses grayscale or truecolor image defaults. `imagesc` is for scaled matrix visualization and maps data through the active colormap."
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"links": [
|
|
75
|
+
{
|
|
76
|
+
"label": "image",
|
|
77
|
+
"url": "./image"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"label": "imagesc",
|
|
81
|
+
"url": "./imagesc"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"label": "colormap",
|
|
85
|
+
"url": "./colormap"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"label": "axis",
|
|
89
|
+
"url": "./axis"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"source": {
|
|
93
|
+
"label": "`crates/runmat-runtime/src/builtins/plotting/ops/imshow.rs`",
|
|
94
|
+
"url": "https://github.com/runmat-org/runmat/blob/main/crates/runmat-runtime/src/builtins/plotting/ops/imshow.rs"
|
|
95
|
+
},
|
|
96
|
+
"key": "imshow",
|
|
97
|
+
"slug": "imshow",
|
|
98
|
+
"aliases": [],
|
|
99
|
+
"categoryPath": [
|
|
100
|
+
"plotting"
|
|
101
|
+
]
|
|
102
|
+
};
|
|
103
|
+
export default builtinDoc;
|
|
104
|
+
//# sourceMappingURL=imshow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imshow.js","sourceRoot":"","sources":["../../../src/generated/builtins/imshow.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,uBAAuB;AAIvB,MAAM,UAAU,GAAe;IAC7B,OAAO,EAAE,QAAQ;IACjB,UAAU,EAAE,UAAU;IACtB,UAAU,EAAE;QACV,QAAQ;QACR,eAAe;QACf,iBAAiB;QACjB,cAAc;QACd,WAAW;QACX,eAAe;KAChB;IACD,SAAS,EAAE,8DAA8D;IACzE,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,MAAM;QACtB,OAAO,EAAE,0NAA0N;KACpO;IACD,QAAQ,EAAE;QACR,aAAa,EAAE,KAAK;QACpB,WAAW,EAAE,KAAK;QAClB,YAAY,EAAE,CAAC;QACf,WAAW,EAAE,QAAQ;KACtB;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":3,"file":"builtins-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/builtins-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"builtins-manifest.d.ts","sourceRoot":"","sources":["../../src/generated/builtins-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,eAAO,MAAM,eAAe,EAAE,oBAAoB,EAy5OjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAwX9D,CAAC;AAEF,eAAO,MAAM,4BAA4B,sEAC0C,CAAC"}
|
|
@@ -3117,6 +3117,26 @@ export const builtinManifest = [
|
|
|
3117
3117
|
"summary": "Filter images or N-D arrays with correlation/convolution kernels and configurable padding.",
|
|
3118
3118
|
"exampleCount": 5
|
|
3119
3119
|
},
|
|
3120
|
+
{
|
|
3121
|
+
"key": "imshow",
|
|
3122
|
+
"title": "imshow",
|
|
3123
|
+
"slug": "imshow",
|
|
3124
|
+
"aliases": [],
|
|
3125
|
+
"category": "plotting",
|
|
3126
|
+
"categoryPath": [
|
|
3127
|
+
"plotting"
|
|
3128
|
+
],
|
|
3129
|
+
"keywords": [
|
|
3130
|
+
"imshow",
|
|
3131
|
+
"image display",
|
|
3132
|
+
"grayscale image",
|
|
3133
|
+
"binary image",
|
|
3134
|
+
"rgb image",
|
|
3135
|
+
"matlab imshow"
|
|
3136
|
+
],
|
|
3137
|
+
"summary": "Display grayscale, binary, truecolor, or file-backed images.",
|
|
3138
|
+
"exampleCount": 4
|
|
3139
|
+
},
|
|
3120
3140
|
{
|
|
3121
3141
|
"key": "ind2sub",
|
|
3122
3142
|
"title": "ind2sub",
|
|
@@ -7713,6 +7733,7 @@ export const builtinDocLoaders = {
|
|
|
7713
7733
|
"image": () => import("./builtins/image.js").then((mod) => mod.default),
|
|
7714
7734
|
"imagesc": () => import("./builtins/imagesc.js").then((mod) => mod.default),
|
|
7715
7735
|
"imfilter": () => import("./builtins/imfilter.js").then((mod) => mod.default),
|
|
7736
|
+
"imshow": () => import("./builtins/imshow.js").then((mod) => mod.default),
|
|
7716
7737
|
"ind2sub": () => import("./builtins/ind2sub.js").then((mod) => mod.default),
|
|
7717
7738
|
"input": () => import("./builtins/input.js").then((mod) => mod.default),
|
|
7718
7739
|
"interp1": () => import("./builtins/interp1.js").then((mod) => mod.default),
|