Commit 26d915e
authored
Summary:
This adds LabelLayer, which combines both LabelImageLayer and LabelImageSeriesLayer to a single layer using the same chunk-streaming infrastructure as ImageLayer. Much of the code in src/layers/label_layer.ts is either copied or from or very similar to the existing ImageLayer (formerly ChunkedImageLayer).
This also allows removing the now-unused ImageSeriesLoader and a bunch more now-unused loading code, including the "Region" type. I think there may be room for a type like this (for example for describing a global "crop") in the future, but I don't think we need to maintain it until we need it.
After consolidating the layers, I also combined the two label examples into one.
1 parent ba5cb2a commit 26d915e
14 files changed
Lines changed: 432 additions & 931 deletions
File tree
- examples
- image_labels_overlay_with_value_picking
- image_series_labels_overlay
- src
- data
- ome_zarr
- layers
- utilities
- test
Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 0 additions & 141 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
54 | 66 | | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
59 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
60 | 75 | | |
61 | 76 | | |
62 | 77 | | |
| |||
68 | 83 | | |
69 | 84 | | |
70 | 85 | | |
71 | | - | |
72 | | - | |
| 86 | + | |
| 87 | + | |
73 | 88 | | |
74 | 89 | | |
75 | 90 | | |
| |||
0 commit comments