Skip to content

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

Closed
Fedr wants to merge 4 commits intomasterfrom
dicom/ui-units
Closed

DICOM load: convert lengths from meters to current UI units#3740
Fedr wants to merge 4 commits intomasterfrom
dicom/ui-units

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
@Fedr
Copy link
Contributor Author

Fedr commented Feb 20, 2025

implemented differently by @andrewerf

@Fedr Fedr closed this Feb 20, 2025
@Fedr Fedr deleted the dicom/ui-units branch April 21, 2025 10:59
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