Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View 2D: IJK slicing #137

Merged
merged 7 commits into from
Jun 13, 2024
Merged

View 2D: IJK slicing #137

merged 7 commits into from
Jun 13, 2024

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented May 21, 2024

  • Check 45 degree rotated image data
  • Check up direction for each axis.

Related issue #133

@PaulHax PaulHax changed the title WIP to IJK slicing View 2D: IJK slicing May 21, 2024
@@ -80,7 +80,7 @@ function inflate(bounds: Bounds, delta: number) {
}

// code modified from vtk.js/ImageData
const extentToBounds = (ex: Extent, indexToWorld: mat4) => {
const extentToBounds = (ex: Extent, indexToWorld: ReadonlyMat4) => {
Copy link
Member

Choose a reason for hiding this comment

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

ex -> extent

@@ -129,7 +129,8 @@ const extentToBounds = (ex: Extent, indexToWorld: mat4) => {
return bounds;
};

export const ensure3dDirection = (d: Float64Array): ReadonlyMat3 => {
// returns a copy
export const ensure3dDirection = (d: Float64Array): mat3 => {
Copy link
Member

Choose a reason for hiding this comment

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

d -> direction (?)

@PaulHax PaulHax marked this pull request as ready for review June 4, 2024 01:11
Comment on lines 186 to 187
type Maybe2dVec =
| [number, number]
Copy link
Member

Choose a reason for hiding this comment

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

Please add a longer description comment

@PaulHax PaulHax merged commit faa1b36 into InsightSoftwareConsortium:main Jun 13, 2024
2 checks passed
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.

None yet

2 participants