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

DICOM load: convert lengths from meters to current UI units #3740

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Fedr
Copy link
Contributor

@Fedr Fedr commented Nov 24, 2024

No description provided.

@Fedr Fedr requested a review from Grantim November 24, 2024 08:08
@Fedr Fedr marked this pull request as draft November 24, 2024 10:22
@Fedr
Copy link
Contributor Author

Fedr commented Nov 24, 2024

We need symmetric changes in voxels save as well

Fedr added 2 commits December 12, 2024 19:07
# Conflicts:
#	source/MRCommonPlugins/ViewerButtons/MRIOFilesMenuItems.cpp
@Fedr Fedr marked this pull request as ready for review December 12, 2024 16:36
Comment on lines +339 to 342
float scaleFactor = 1;
if ( auto uiLengthUnit = UnitSettings::getUiLengthUnit() )
scaleFactor = getUnitInfo( LengthUnit::meters ).conversionFactor / getUnitInfo( *uiLengthUnit ).conversionFactor;
for ( auto & res : loadRes )
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't it be applied in

auto loadRes = VoxelsLoad::loadDicomsFolderTreeAsVdb( directory, 4, ProgressBar::callBackSetProgress );
``
in 331 line?

@Fedr Fedr marked this pull request as draft December 12, 2024 16:49
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