Skip to content

Conversation

JamesAPetts
Copy link
Member

Switch to orienting the volume actor differently depending on its
acquisition direction, rather than filling up the volume differently.

Switch to orienting the volume actor differently depending on its
acquisition direction, rather than filling up the volume differently.
@JamesAPetts JamesAPetts requested a review from pieper November 1, 2019 13:39
@JamesAPetts
Copy link
Member Author

@pieper , whenever you get a chance, please let me know if this is alright. I've tested in OHIF and it produces the same results as the previous PR. Thanks :)

Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

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

Big smile.

imageData.setSpacing(xSpacing, ySpacing, zSpacing);
break;
}
imageData.setDirection(direction);
Copy link
Member

Choose a reason for hiding this comment

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

Ahhh, sooo much nicer!

mapper.getInputData().getDirection()
);
//if (!model.volumeMapper.getInputData && model.volumeMapper.getMapper) {
// mapper = model.volumeMapper.getMapper();
Copy link
Member

Choose a reason for hiding this comment

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

Do you still need to leave this dead code for some reason?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ooh good catch, I commented it out whilst refactoring but didn't delete it.

@JamesAPetts JamesAPetts merged commit 3f0eaec into OHIF:master Nov 1, 2019
@ohif-bot
Copy link
Member

ohif-bot commented Nov 1, 2019

🎉 This PR is included in version 0.3.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mix3d
Copy link
Contributor

mix3d commented Nov 10, 2019

@JamesAPetts I know this has already been merged, but the reason for the volumeCoordinate space was for volumes who's data was at oblique angles but you still wanted to set the Coronal to the volume's coronal orientation. Using the volume.direction(), if the values are strange, the same input view orientations will look different depending. Most often an issue with MRs (in our sample data, at least).

I solved that by actually forcing the data to the cartesian coordinates direction, then using the direction data to modify the camera angle only for the RAS compass labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants