I want to scale the added volume imageData, but it doesn’t work
auto volume = MeshIO::read<ImageData>("../Ab.nrrd");
volume->scale(0.01, Geometry::TransformType::ApplyToData);
there is an error:
imstk::geometry::scale … is inaccessible
I want to scale the added volume imageData, but it doesn’t work
auto volume = MeshIO::read<ImageData>("../Ab.nrrd");
volume->scale(0.01, Geometry::TransformType::ApplyToData);
there is an error:
imstk::geometry::scale … is inaccessible
Try changing the voxel spacing instead.
volume->setSpacing(x,y,z);
thanks, it’s worked.
volume->setSpacing(Vec3d(0.5,0.5,0.5));
Just don’t do it after ImageReslice or it won’t work. never mind。