Add n5_label_multiset codec for N5 legacy label multiset payload - #56
Draft
mkitti wants to merge 1 commit into
Draft
Add n5_label_multiset codec for N5 legacy label multiset payload#56mkitti wants to merge 1 commit into
mkitti wants to merge 1 commit into
Conversation
Defines an array-to-bytes codec that serializes label_multiset arrays using the N5 legacy binary format from imglib2-label-multisets (LabelUtils.serializeLabelMultisetTypes). Uses big-endian argMaxSize and listEntryOffsets with little-endian listData. Intended to be used as the inner array-to-bytes codec inside n5_varlen. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
You also need to define a zarr data type for this. |
Contributor
Author
|
The data type is in #55 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This is a draft PR pending review of #54 (
n5_varlen). Then5_label_multisetcodec is designed to be used as the inner array-to-bytes codec insiden5_varlenand depends on that codec being accepted first.Summary
Registers the
n5_label_multisetcodec, which serializeslabel_multisetarrays using the N5 legacy binary format produced by imglib2-label-multisets (LabelUtils.serializeLabelMultisetTypes()).Codec chain
n5_label_multisetis not used standalone. It lives insiden5_varlen's inner codec pipeline:{ "name": "n5_varlen", "configuration": { "codecs": [ {"name": "n5_label_multiset"}, {"name": "gzip", "configuration": {"level": 6}} ] } }n5_varlenhandles the N5 block header;n5_label_multisethandles the payload serialization.N5 legacy payload format
Related PRs
n5_varlencodec (prerequisite; please review first)label_multisetdata type and Zarr-native codecTest plan
n5_varlen) firstcodecs/n5_label_multiset/schema.jsonvalidates correctly🤖 Generated with Claude Code