Neuroglancer Precomputed Segment Properties Format¶
A collection of property values may be associated with uint64 segment IDs (usually corresponding to a segmentation volume, meshes, and/or skeletons).
Currently only inline properties are supported, where the complete list of segment IDs and
associated property values is stored inline within the single info JSON file.
The properties are represented by a directory containing a single info JSON file.
info metadata file¶
The info file is JSON-formt text file, with the following schema:
- json PrecomputedSegmentProperties : object¶
Precomputed segment properties
- Optional members:¶
- inline : object¶
Inline properties and their values.
- Required members:¶
- ids : array of string¶
Segment IDs for which inline property values are specified.
IDs are specified as base-10 strings.
- properties : object¶
Supported inline properties.
- Required members:¶
-
-
type :
"label"|"description"|"string"|"tags"|"number"¶ Property type.
At most one property may have type
"label"(which is displayed in the UI next to the segment ID), at most one property may have type"description", and at most one property may have type"tags".
- values : array¶
Property value for each ID in
ids.If
typeis equal to"label","description", or"string", each element must be a string.If
typeis equal to"number", each element must be a number that will be converted to the specifieddata_type.If
typeis equal to"tags", each element must be an array of integers (in increasing order), where each number specifies a 0-based index into the"tags"array.
-
type :
- Optional members:¶
- description : string¶
Description of the property to display to the user.
Must not be present if
typeis"tags".
- tags : array of string¶
List of valid tag values.
Must be specified if, and only if,
typeis"tags". The specified tags must all be distinct, must not contain spaces, and do not include the initial"#"character. Tags are matched case-insensitively.