Skip to content

Make image label key mandatory for label images#89

Open
dstansby wants to merge 3 commits intoome:mainfrom
dstansby:image-label-must
Open

Make image label key mandatory for label images#89
dstansby wants to merge 3 commits intoome:mainfrom
dstansby:image-label-must

Conversation

@dstansby
Copy link
Copy Markdown
Contributor

Fixes ome/ngff#339 - see discussion on that thread for motivation.

@github-actions
Copy link
Copy Markdown

Automated Review URLs

@jo-mueller
Copy link
Copy Markdown
Contributor

Potential duplicate/follow-up to ome/ngff#170

@jo-mueller
Copy link
Copy Markdown
Contributor

@dstansby sorry that I haven't reacted here earlier. I'm a bit uncertain about approving this (or not) because I'm not sure about the implications. I.e., I know why this is helpful, but it would also be useful to know why the requirement was weakened from a MUST to a SHOULD in the first place. I.e., if there's a reason that we're not aware of that led to changing this, it would be good to know so we don't repeat potential mistakes of the past 😬

@dstansby
Copy link
Copy Markdown
Contributor Author

As far as I can see the change was made in ome/ngff#165. The only discussion of the image-label key being mandatory or not there was a single comment at ome/ngff#165 (comment), which was not picked up or discussed any further. I'm therefore not really sure what the context/motviation was for making this change in the first place - perhaps @virginiascarlett and @bogovicj have throughts as the authors of ome/ngff#165?

@jo-mueller
Copy link
Copy Markdown
Contributor

jo-mueller commented Mar 31, 2026

Looking at previous version, the statement was usually phrased like this:

Groups containing the image-label dictionary represent an image segmentation in which each unique pixel value represents a separate segmented object.

Which to me reads more like a MUST than a SHOULD but it would be nice if others could weigh in here a bit (discussion for next techdev meeting?)

@dstansby
Copy link
Copy Markdown
Contributor Author

👍 to discuss at a meeting, but since that's not a public meeting I thnk folks should read and add their thoughts to ome/ngff#339 so all the context and discussion is in one place instead of fragmented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to distinguish image and labels-image groups in 0.5

2 participants