comparison Framework/Volumes/VolumeReslicer.cpp @ 684:7719eb852dd5

new class: VolumeImageGeometry
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 16 May 2019 16:47:46 +0200
parents 3080ec4ec6b9
children c3bbb130abc4
comparison
equal deleted inserted replaced
683:dbc1d8bfc68a 684:7719eb852dd5
747 void VolumeReslicer::Apply(const ImageBuffer3D& source, 747 void VolumeReslicer::Apply(const ImageBuffer3D& source,
748 const CoordinateSystem3D& plane) 748 const CoordinateSystem3D& plane)
749 { 749 {
750 // Choose the default voxel size as the finest voxel dimension 750 // Choose the default voxel size as the finest voxel dimension
751 // of the source volumetric image 751 // of the source volumetric image
752 const OrthancStone::Vector dim = source.GetVoxelDimensions(OrthancStone::VolumeProjection_Axial); 752 const OrthancStone::Vector dim =
753 source.GetGeometry().GetVoxelDimensions(OrthancStone::VolumeProjection_Axial);
753 double voxelSize = dim[0]; 754 double voxelSize = dim[0];
754 755
755 if (dim[1] < voxelSize) 756 if (dim[1] < voxelSize)
756 { 757 {
757 voxelSize = dim[1]; 758 voxelSize = dim[1];