Skip to content

vc_render_tifxyz: provide voxel size scale to ome-zarr#804

Open
jrudolph wants to merge 3 commits intomainfrom
vc-render-add-voxel-size
Open

vc_render_tifxyz: provide voxel size scale to ome-zarr#804
jrudolph wants to merge 3 commits intomainfrom
vc-render-add-voxel-size

Conversation

@jrudolph
Copy link
Copy Markdown
Member

@jrudolph jrudolph commented Apr 1, 2026

Supersedes #737

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
scrollprize-org Ignored Ignored Preview Apr 2, 2026 8:17am

Request Review

@giorgioangel
Copy link
Copy Markdown
Member

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: afaebb666f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

double s = std::pow(2.0, l);
const double sz = 1.0;
const double sYX = baseVoxelSize * std::pow(2.0, l);
const double sZ = baseVoxelSize;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include slice-step in multiscale Z spacing

writeZarrAttrs now writes physical OME-Zarr scales, but it hardcodes sZ to baseVoxelSize and ignores the actual rendered slice spacing. When vc_render_tifxyz is run with --slice-step > 1, consecutive output slices are farther apart than one source voxel, so this metadata underreports Z spacing and yields incorrect physical distances/aspect ratios in downstream consumers. Because sliceStep is already passed into writeZarrAttrs, the Z scale should incorporate it (while remaining constant across pyramid levels if Z is preserved).

Useful? React with 👍 / 👎.

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