|
Fovia C++ In-Process API
|
Public Member Functions | |
| virtual signed int | AskInterface (const BGUID *piid, IRoot **ppr)=0 |
| virtual signed int | CalcVoiFromDim (CROP_BOX_PARAMS *cbp, VECTOR3L dim)=0 |
| virtual signed int | DecRef ()=0 |
| virtual signed int | IncRef ()=0 |
| virtual signed int | RepositionToCenter (IVolumeData *vd, signed int Width, signed int Height, signed int Depth, IVolumeData *CenteredVd)=0 |
| virtual signed int | ResampleToIsotropicSlices (IVolumeData *vd)=0 |
Public Member Functions inherited from IRoot | |
| template<class T > | |
| signed int | AskInterface (T **pp) |
Volume data manipulation functions.
|
pure virtual |
Calculates the volume of interest for a volume containing dim dimensions. The assumption is that 0,0,0 will be defined as the exact center of the data set.
| cbp | The structure to output the VOI information. |
| dim | The dimensions of the volume in question. |
|
pure virtual |
Decreases the reference count on this object by 1. If the reference count reaches 0, the object is deallocated.
Implements IRoot.
|
pure virtual |
Increases the reference count on this object by 1. You do not need to call this after an object is first created. It is 1 by default.
Implements IRoot.
|
pure virtual |
This function will place the smaller volume vd into a volume of size Width, Height, and Depth pointed to by CenteredVd. The buffers and information for the resultant volume is created by this function, so passing in a newly created IVolumeData is sufficient.
| vd | Input volume. |
| Width | Output volume width. |
| Height | Output volume height. |
| Depth | Output volume depth. |
| CenteredVd | Output volume. |
|
pure virtual |
This function will take a volume that may have missing slices or is unevenly spaced and resample the volume to have regularly. spaced slices.
If VOLUME_DATA_PARAMS::Spacing for z is 0, this function will attempt to choose the proper spacing by taking the median distance between slices in the volume. If VOLUME_DATA_PARAMS::Spacing for z is set, then that value is taken as the preferred slice spacing.
This function will NOT resample slices if they are placed the preferred slice spacing apart. It will only create new slices when necessary.
| vd | The volume data. The Spacing, Dimension, and ImagePositionPatient fields must be valid on this volume or the function will fail. If the function succeeds, ImagePositionPatient will be removed and all other parameters will be updated to the new specifications |
1.8.9.1