Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/core/src/RenderingEngine/StackViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2452,6 +2452,12 @@ class StackViewport extends Viewport {
// or the size has changed), create a new one

const pixelArray = image.voxelManager.getScalarData();

if (this.modality === 'US') {
Copy link
Member

Choose a reason for hiding this comment

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

most likely formatting is wrong

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

why it passed CI

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is going to cause measurement failures. The right way to do it is to add aspect ratio information and incorporate that into the transform for canvas to world coordinates and vice-versa. The aspect ratio should be a camera property set by the vtk data. Probably having both a base aspect ratio and a displayed aspect ratio relative to the base ratio would be best.

Copy link
Member

Choose a reason for hiding this comment

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

@IbrahimCSAE can you confirm this example works in the other PR Bill has for calibration and US fixes

spacing[1] = 1
spacing[0] = 1
}

this._createVTKImageData({
origin,
direction,
Expand Down
Loading