Skip to content

Conversation

@seankmartin
Copy link

No description provided.

@seankmartin seankmartin changed the title Feat/example linear registration Feature: example linear registration pipeline Jan 16, 2026
@seankmartin seankmartin requested a review from Copilot January 29, 2026 09:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements a feature to support linear registration workflows with custom clipping behavior for annotation layers across different coordinate spaces. The implementation adds a clipDimensionsWeight property that allows fine-grained control over which dimensions should be clipped during annotation rendering.

Changes:

  • Added clipDimensionsWeight tracking and state management across viewer components
  • Implemented Python bindings for clip_dimensions_weight in annotation layers and viewer state
  • Created a comprehensive example script demonstrating interactive linear registration using point annotations

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/layer_groups_layout.ts Added clipDimensionsWeight to common viewer state
src/layer_group_viewer.ts Added clipDimensionsWeight property and type import
src/layer/annotation/index.ts Added JSON key constant and state management for clipDimensionsWeight
src/data_panel_layout.ts Added clipDimensionsWeight to ViewerUIState interface and common state
src/annotation/renderlayer.ts Implemented clip dimension weight application in annotation projection parameters
src/annotation/annotation_layer_state.ts Created TrackableClipDimensionsWeight class for state management
python/neuroglancer/viewer_state.py Added Python bindings for clip_dimensions_weight and LinkedDisplayDimensions
python/neuroglancer/init.py Exported LinkedDisplayDimensions
python/examples/example_linear_registration.py Added comprehensive linear registration workflow example

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

wireFrame: viewer.wireFrame,
enableAdaptiveDownsampling: viewer.enableAdaptiveDownsampling,
visibleLayerRoles: viewer.visibleLayerRoles,
clipDimensionsWeight: viewer.clipDimensionsWeight,
Copy link
Author

Choose a reason for hiding this comment

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

not sure this needed on both the data panel layout and layer group viewer

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.

2 participants