Skip to content

update instance segmentation visualisation#57

Open
Marei33 wants to merge 8 commits into
devfrom
visualisation
Open

update instance segmentation visualisation#57
Marei33 wants to merge 8 commits into
devfrom
visualisation

Conversation

@Marei33

@Marei33 Marei33 commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Visualization changes:

  • Added a new LABEL colormap and logic in plot_three_slices to display label images with distinct colors using label2rgb, improving interpretability of segmentation outputs. (matchmaker/utils/vis.py, matchmaker/prealignment.py, matchmaker/raw_to_n5.py)
  • Standardized plot output locations by saving all registration and displacement field images inside a plots/ subdirectory, improving output file organization. (matchmaker/cpd_nonrigid_registration.py)

Other:

  • Removed explicit conda environment specifications from all Snakemake workflow rules
  • Removed unused imports and cleaned up whitespace in various files. (matchmaker/raw_to_n5.py, matchmaker/cpd_nonrigid_registration.py)

@Marei33 Marei33 requested a review from Buglakova June 25, 2026 09:27
@Marei33 Marei33 changed the base branch from main to dev June 25, 2026 09:28
@Marei33

Marei33 commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

merge #56 first

Marei33 added a commit that referenced this pull request Jun 26, 2026
Optuna GridSampler-based grid search over CPD non-rigid registration
parameters (w, beta, lmd, maxiter), evaluated by mean Landmark
Registration Error (LRE) between corresponding landmarks.

- matchmaker/cpd_parameter_tuning/: optimization, landmark embedding,
  dataset-specific beta-range suggestion, defaults and README
- workflows/cpd_optimization.smk: input_to_n5 -> add_landmarks ->
  prealignment_with_lm -> rigid_alignment_with_lm -> optimize_cpd
- examples/cpd_optimization_config.yaml: example config (nest
  axis_orientation under prealignment to match the workflow/registration
  config convention)
- matchmaker/utils/vis.py: add plot_landmark_qc and a title param for
  visualize_displacement_field (used by the tuning trial plots)
- environment.yml: enable optuna

Stacked on the visualisation branch (#57), which provides the PINK/CYAN
colormaps that add_landmarks imports. Target branch: dev.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant