@jax-data-science/sci-image-visualizer 0.2.15 → 0.2.16
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/index.mjs +2 -2
- package/esm2022/lib/models/region.mjs +3 -3
- package/esm2022/lib/toolbar/segmentation/yolo-detect-tool.service.mjs +11 -4
- package/fesm2022/jax-data-science-sci-image-visualizer.mjs +13 -6
- package/fesm2022/jax-data-science-sci-image-visualizer.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/lib/models/region.d.ts +11 -0
- package/lib/toolbar/segmentation/yolo-detect-tool.service.d.ts +2 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export * from './lib/contracts/cell-segmenter.contract';
|
|
|
24
24
|
export { CellposeSegmenterService } from './lib/toolbar/segmentation/cellpose-segmenter.service';
|
|
25
25
|
export * from './lib/contracts/instance-segmenter.contract';
|
|
26
26
|
export { YoloSegmenterService } from './lib/toolbar/segmentation/yolo-segmenter.service';
|
|
27
|
-
export { YoloDetectToolService } from './lib/toolbar/segmentation/yolo-detect-tool.service';
|
|
27
|
+
export { YoloDetectToolService, YOLO_REGION_SOURCE } from './lib/toolbar/segmentation/yolo-detect-tool.service';
|
|
28
28
|
export { ProcessingImage } from './lib/processing/processing-image';
|
|
29
29
|
export { cropImage, CropImageOptions } from './lib/processing/image-crop';
|
|
30
30
|
export { ImageConverterService } from './lib/processing/image-converter.service';
|
package/lib/models/region.d.ts
CHANGED
|
@@ -13,6 +13,17 @@ export declare class Region {
|
|
|
13
13
|
* intensity tool, sampled into the inset) from annotation regions (owned by
|
|
14
14
|
* the Region Editor). Both backends (Plotly, OSD) honour it. */
|
|
15
15
|
kind?: 'profile';
|
|
16
|
+
/**
|
|
17
|
+
* Which automated tool produced this region, e.g. `'yolo'`. Absent on
|
|
18
|
+
* anything the user drew.
|
|
19
|
+
*
|
|
20
|
+
* Lets a tool replace its *own* previous output on a re-run without touching
|
|
21
|
+
* hand-drawn work or another tool's results — which matters while tuning
|
|
22
|
+
* parameters, where every run would otherwise pile onto the last. Identity
|
|
23
|
+
* comparison is not a substitute: regions may be re-minted as they pass
|
|
24
|
+
* through the store, so the marker has to travel with the data.
|
|
25
|
+
*/
|
|
26
|
+
source?: string;
|
|
16
27
|
color?: string;
|
|
17
28
|
label?: string;
|
|
18
29
|
/** True when the user set this region's colour explicitly (Region Editor Color
|
|
@@ -18,6 +18,8 @@ import * as i0 from "@angular/core";
|
|
|
18
18
|
* Exposes the same `status$` / `busy$` / `progress$` surface as the cellpose
|
|
19
19
|
* tool so the host's shared segmentation toast drives it unchanged.
|
|
20
20
|
*/
|
|
21
|
+
/** Marks regions this tool produced, so a re-run can replace only its own. */
|
|
22
|
+
export declare const YOLO_REGION_SOURCE = "yolo";
|
|
21
23
|
export declare class YoloDetectToolService {
|
|
22
24
|
/** Server-side crop, so detection can run at the model's scale rather than
|
|
23
25
|
* the viewer's. Optional: without it the tool falls back to the displayed
|
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.16",
|
|
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",
|