Skip to content

Conversation

@constantinpape
Copy link
Contributor

No description provided.

segmentation[filter_mask] = 0

# segmentation, _, _ = relabel_sequential(segmentation)
segmentation, _, _ = relabel_sequential(segmentation)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this is the culprit why IHC ids and synapse IDs don't match. We still need to be careful here though, if the max ID exceeds 65,... than we run out of uint16 IDs, which may happen for SGNs and is why I included this.

Maybe the best option is to remove the sequential relabeling here, and to raise a warning if we have larger values than the uint16 max id, as this won't lead to a big issue, just some ID clashes.

@schilling40 schilling40 merged commit e615d60 into master Jul 28, 2025
6 checks passed
@schilling40 schilling40 deleted the export-updates branch July 28, 2025 14:01
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.

3 participants