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;
void setDim(int index, int newDim)
double getSpacing() const
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
void setSpacing(double spacing)
void limitVoxelsKeepBounds(unsigned long maxVolumeSize)
void set_rMd(Transform3D rMd)
DoubleBoundingBox3D getExtent()
Eigen::Array3i getDim() const
void setDimKeepBoundsAlignSpacing(Eigen::Array3d bounds)
Eigen::Array3i getDim() const
unsigned long getMaxVolumeSize()
unsigned long getNumVoxels() const
Eigen::Array3d getBounds()
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
void constrainVolumeSize()
Eigen::Array3d getSpacing() const
void setMaxVolumeSize(double maxSize)
void changeToUniformSpacing()
unsigned long getVolumeSize() const
void setSpacingKeepDim(Eigen::Array3d spacing)
Namespace for all CustusX production code.