Skip to content

feat: add basic support for projections#42

Draft
lubianat wants to merge 3 commits into
BioNGFF:mainfrom
lubianat:volume_projections
Draft

feat: add basic support for projections#42
lubianat wants to merge 3 commits into
BioNGFF:mainfrom
lubianat:volume_projections

Conversation

@lubianat

@lubianat lubianat commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

a step towards #41, simpler than true volumetric rendering

note: some support of Claude Opus 4.8; code reviewed manually

the API is like:

img.render({
    projection: "max", 
    projectionAxis: "x", 
    maxVoxels: 8_000_000 // optional, defaults to 64_000_000
})}

chunks are projected individually, so LUTs, autoBoost and similar should work normally

steps:

  • create draft
  • test manually (different scenarios)
  • add tests
  • update documentation

sample (in index.html):

grafik

edit: comparison with the current default renderings:

grafik grafik

@will-moore

Copy link
Copy Markdown
Collaborator

Thanks for the PR, I'll look in detail next week...

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