|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
20 mMaxVolumeSize(32*1000),
28 mInputSpacing(inputSpacing), mMaxVolumeSize(maxVolumeSize), mValid(false)
30 mImage.
setSpacingKeepDim(Eigen::Array3d(inputSpacing, inputSpacing, inputSpacing));
35 if(mImage.
getDim().minCoeff() <= 1)
50 this->suggestSpacingKeepBounds(spacing);
60 double newSpacing = mImage.
getBounds()[index] / (newDim);
71 this->suggestSpacingKeepBounds(mInputSpacing);
76 void OutputVolumeParams::suggestSpacingKeepBounds(
double spacing)
78 Eigen::Array3d bounds = mImage.
getBounds();
85 mMaxVolumeSize = maxSize;
90 return mMaxVolumeSize;
112 return mInputSpacing;
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,...
unsigned long getNumVoxels() const
Namespace for all CustusX production code.
Eigen::Array3d getSpacing() const
void setSpacing(double spacing)
unsigned long getMaxVolumeSize()
void setDim(int index, int newDim)
Eigen::Array3d getBounds()
void setSpacingKeepDim(Eigen::Array3d spacing)
Eigen::Array3i getDim() const
void set_rMd(Transform3D rMd)
DoubleBoundingBox3D getExtent()
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
void constrainVolumeSize()
void changeToUniformSpacing()
void setMaxVolumeSize(double maxSize)
unsigned long getVolumeSize() const
double getSpacing() const
void setDimKeepBoundsAlignSpacing(Eigen::Array3d bounds)
void limitVoxelsKeepBounds(unsigned long maxVolumeSize)
Eigen::Array3i getDim() const