comparison Framework/Volumes/ImageBuffer3D.cpp @ 158:a053ca7fa5c6 wasm

LinearAlgebra toolbox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Feb 2018 08:58:31 +0100
parents 58c545177c1c
children a12ca0f4aaaa
comparison
equal deleted inserted replaced
157:2309e8d86efe 158:a053ca7fa5c6
120 height_(height), 120 height_(height),
121 depth_(depth), 121 depth_(depth),
122 computeRange_(computeRange), 122 computeRange_(computeRange),
123 hasRange_(false) 123 hasRange_(false)
124 { 124 {
125 GeometryToolbox::AssignVector(voxelDimensions_, 1, 1, 1); 125 LinearAlgebra::AssignVector(voxelDimensions_, 1, 1, 1);
126 126
127 LOG(INFO) << "Created an image of " 127 LOG(INFO) << "Created an image of "
128 << (GetEstimatedMemorySize() / (1024ll * 1024ll)) << "MB"; 128 << (GetEstimatedMemorySize() / (1024ll * 1024ll)) << "MB";
129 } 129 }
130 130
151 { 151 {
152 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 152 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
153 } 153 }
154 154
155 { 155 {
156 GeometryToolbox::AssignVector(voxelDimensions_, x, y, z); 156 LinearAlgebra::AssignVector(voxelDimensions_, x, y, z);
157 } 157 }
158 } 158 }
159 159
160 160
161 Vector ImageBuffer3D::GetVoxelDimensions(VolumeProjection projection) const 161 Vector ImageBuffer3D::GetVoxelDimensions(VolumeProjection projection) const
166 case VolumeProjection_Axial: 166 case VolumeProjection_Axial:
167 result = voxelDimensions_; 167 result = voxelDimensions_;
168 break; 168 break;
169 169
170 case VolumeProjection_Coronal: 170 case VolumeProjection_Coronal:
171 GeometryToolbox::AssignVector(result, voxelDimensions_[0], voxelDimensions_[2], voxelDimensions_[1]); 171 LinearAlgebra::AssignVector(result, voxelDimensions_[0], voxelDimensions_[2], voxelDimensions_[1]);
172 break; 172 break;
173 173
174 case VolumeProjection_Sagittal: 174 case VolumeProjection_Sagittal:
175 GeometryToolbox::AssignVector(result, voxelDimensions_[1], voxelDimensions_[2], voxelDimensions_[0]); 175 LinearAlgebra::AssignVector(result, voxelDimensions_[1], voxelDimensions_[2], voxelDimensions_[0]);
176 break; 176 break;
177 177
178 default: 178 default:
179 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 179 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
180 } 180 }