Skip to content

Commit

Permalink
chore(rebuild): Merge pull request #3 from joshmoore/add-label-proper…
Browse files Browse the repository at this point in the history
…ties-spec

Add label properties description to spec

SHA: f004687
Reason: push, by @joshmoore

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
joshmoore and github-actions[bot] committed Nov 30, 2020
1 parent 5127ff3 commit 2006160
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
4 changes: 2 additions & 2 deletions 0.1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@
</style>
<meta content="Bikeshed version c5172e83, updated Fri Nov 20 15:35:20 2020 -0800" name="generator">
<link href="https://ngff.openmicroscopy.org/0.1/" rel="canonical">
<meta content="37f0223549adb79315760608796fcdaba7ae1bc3" name="document-revision">
<meta content="f0046874b8bd74cfa8ebd4172a0e9ced00661f14" name="document-revision">
<style>/* style-autolinks */

.css.css, .property.property, .descriptor.descriptor {
Expand Down Expand Up @@ -1812,7 +1812,7 @@
<div class="head">
<img alt="OME logo (6 circles in a hexagon)" src="http://www.openmicroscopy.org/img/logos/ome-logomark.svg" style="float:right;width:42px;height:42px;">
<h1 class="p-name no-ref" id="title">Next-generation file formats (NGFF)</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Final Community Group Report, <time class="dt-updated" datetime="2020-11-27">27 November 2020</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Final Community Group Report, <time class="dt-updated" datetime="2020-11-30">30 November 2020</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
30 changes: 24 additions & 6 deletions latest/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@
</style>
<meta content="Bikeshed version c5172e83, updated Fri Nov 20 15:35:20 2020 -0800" name="generator">
<link href="https://ngff.openmicroscopy.org/latest/" rel="canonical">
<meta content="37f0223549adb79315760608796fcdaba7ae1bc3" name="document-revision">
<meta content="f0046874b8bd74cfa8ebd4172a0e9ced00661f14" name="document-revision">
<style>/* style-autolinks */

.css.css, .property.property, .descriptor.descriptor {
Expand Down Expand Up @@ -1812,7 +1812,7 @@
<div class="head">
<img alt="OME logo (6 circles in a hexagon)" src="http://www.openmicroscopy.org/img/logos/ome-logomark.svg" style="float:right;width:42px;height:42px;">
<h1 class="p-name no-ref" id="title">Next-generation file formats (NGFF)</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2020-11-27">27 November 2020</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2020-11-30">30 November 2020</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down Expand Up @@ -2106,6 +2106,11 @@ <h3 class="heading settled" data-level="3.4" id="label-md"><span class="secno">3
should ignore all except the _last_ entry.</p>
<p>Some implementations may represent overlapping labels by using a specially assigned
value, for example the highest integer available in the pixel range.</p>
<p>The <code>properties</code> key defines a list of JSON objects which also describes the unique
label values. Each entry in the list MUST contain the key "label-value" with the
pixel value for that label. Additionally, an arbitrary number of key-value pairs
MAY be present for each label value denoting associated metadata. Not all label
values must share the same key-value pairs within the properties list.</p>
<p>The <code>source</code> key is an optional dictionary which contains information on the
image the label is associated with. If included it MAY include a key <code>image</code> whose value is the relative path to a Zarr image group. The default value is
"../../" since most labels are stored under a subgroup named "labels/" (see
Expand All @@ -2123,11 +2128,24 @@ <h3 class="heading settled" data-level="3.4" id="label-md"><span class="secno">3
<c- f>"rgba"</c-><c- p>:</c-> <c- p>[</c-><c- mi>0</c-><c- p>,</c-> <c- mi>255</c-><c- p>,</c-> <c- mi>255</c-><c- p>,</c-> <c- mi>128</c-><c- p>]</c->
<c- p>},</c->
...
<c- p>],</c->
<c- f>"properties"</c-><c- p>:</c-> <c- p>[</c->
<c- p>{</c->
<c- f>"label-value"</c-><c- p>:</c-> <c- mi>1</c-><c- p>,</c->
<c- f>"area (pixels)"</c-><c- p>:</c-> <c- mi>1200</c-><c- p>,</c->
<c- f>"class"</c-><c- p>:</c-> <c- u>"foo"</c->

<c- p>},</c->
<c- p>{</c->
<c- f>"label-value"</c-><c- p>:</c-> <c- mi>4</c-><c- p>,</c->
<c- f>"area (pixels)"</c-><c- p>:</c-> <c- mi>1650</c->
<c- p>},</c->
...
<c- p>]</c->
<c- p>}</c->,
<c- u>"source"</c->: <c- p>{</c->
<c- f>"image"</c-><c- p>:</c-> <c- u>"../../"</c->
<c- p>}</c->
<c- p>}</c->,
<c- u>"source"</c->: <c- p>{</c->
<c- f>"image"</c-><c- p>:</c-> <c- u>"../../"</c->
<c- p>}</c->
]
</pre>
<h3 class="heading settled" data-level="3.5" id="plate-md"><span class="secno">3.5. </span><span class="content">"plate" metadata</span><a class="self-link" href="#plate-md"></a></h3>
Expand Down

0 comments on commit 2006160

Please sign in to comment.