@jax-data-science/sci-image-visualizer 0.2.9 → 0.2.10
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/esm2022/lib/contracts/instance-segmenter.contract.mjs +1 -1
- package/esm2022/lib/toolbar/segmentation/yolo-segmenter.service.mjs +6 -2
- package/fesm2022/jax-data-science-sci-image-visualizer.mjs +5 -1
- package/fesm2022/jax-data-science-sci-image-visualizer.mjs.map +1 -1
- package/lib/contracts/instance-segmenter.contract.d.ts +24 -0
- package/package.json +2 -2
|
@@ -71,6 +71,20 @@ export interface InstanceSegmentOptions {
|
|
|
71
71
|
simplifyTolerance?: number;
|
|
72
72
|
/** Drop instances whose outline area is below this, in square pixels. */
|
|
73
73
|
minArea?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Set false to detect boxes without assembling masks — substantially faster,
|
|
76
|
+
* since mask assembly dominates the cost of a run. Detections then carry a
|
|
77
|
+
* box and class but no outline, so nothing can be committed as a region.
|
|
78
|
+
*/
|
|
79
|
+
withMasks?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Abort an in-progress run.
|
|
82
|
+
*
|
|
83
|
+
* Cancellation is cooperative and checked at tile boundaries, so it takes
|
|
84
|
+
* effect within roughly one tile rather than instantly — a `session.run()`
|
|
85
|
+
* already in flight cannot be interrupted.
|
|
86
|
+
*/
|
|
87
|
+
signal?: AbortSignal;
|
|
74
88
|
}
|
|
75
89
|
/**
|
|
76
90
|
* Progress/status callbacks (all optional).
|
|
@@ -81,6 +95,16 @@ export interface InstanceSegmentOptions {
|
|
|
81
95
|
export interface InstanceSegmentProgress {
|
|
82
96
|
/** Model-download progress, 0..1 (first run only). */
|
|
83
97
|
onProgress?: (fraction: number) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Raw download byte counts, for hosts that render a size ("142 / 287 MB")
|
|
100
|
+
* rather than a bare percentage. `total` is null when the response carried no
|
|
101
|
+
* Content-Length.
|
|
102
|
+
*
|
|
103
|
+
* A fraction alone cannot be turned back into bytes, so a host given only
|
|
104
|
+
* {@link onProgress} has to invent the numbers — which reads as "0 MB / 0 MB"
|
|
105
|
+
* the moment it does.
|
|
106
|
+
*/
|
|
107
|
+
onBytes?: (loaded: number, total: number | null) => void;
|
|
84
108
|
/** Human-readable phase, e.g. 'Running inference (tile 3/8)…'. */
|
|
85
109
|
onStatus?: (status: string) => void;
|
|
86
110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jax-data-science/sci-image-visualizer",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "Browser-based scientific image visualization for Angular — gigapixel whole-slide (OpenSeadragon), 2D/3D (Plotly) and WebGPU (napari-js) rendering, with region/annotation editing and in-browser SAM segmentation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"openseadragon": "^6.0.2",
|
|
41
41
|
"plotly.js-dist-min": "^3.0.1",
|
|
42
42
|
"tslib": "^2.3.0",
|
|
43
|
-
"yolo-segdetect-js": "^0.1.
|
|
43
|
+
"yolo-segdetect-js": "^0.1.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@angular/animations": "^17.3.0",
|