#include <mitkVolumeResizeFilter.h>
Inherits mitkVolumeToVolumeFilter.
Inheritance diagram for mitkVolumeResizeFilter:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
void | SetZoomSize (int const xzoomsize, int const yzoomsize, int const zzoomsize) |
void | SetZoomRate (float const xzoomrate, float const yzoomrate, float const zzoomrate) |
mitkVolumeResizeFilter is a concrete filter class which inherits from volume to volume filter to zoom the specified volume. This filter needs a volume input and generates a volume output. So you should first input a volume using public member function SetInput(), then you should set zoom parameters using SetZoomSize(const int, const int, const int)(represents demanded width,height and image number respectively) or SetZoomRate(const float, const float, const float) (represents zoom rate of demanded width, height and image number respectively, if the corresponding parameter value is bigger than 1.0, it means "zoom in", and if the corresponding parameter value is smaller than 1.0,it means "zoom out". Two examples using mitkVolumeResizeFilter are given below.
Example 1: If you want to zoom volume using SetZoomSize() the code snippet is:
mitkVolumeResizeFilter *filter = new mitkVolumeResizeFilter; filter->SetInput(inVolume); filter->SetZoomSize(targetwidth,targetheight,targetimagenumber); if (filter->Run()) { mitkVolume * outVolume = filter->GetOutput(); Using outVolume... }
mitkVolumeResizeFilter *filter = new mitkVolumeResizeFilter; filter->SetInput(inVolume); filter->SetZoomRate(widthzoomrate,heightzoomrate,imagenumberzoomrate); if (filter->Run()) { mitkVolume * outVolume = filter->GetOutput(); Using outVolume... }
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkVolumeToVolumeFilter. |
|
Call SetProperty() to set property of the target volume(the output volume) with the specified zoom rate in each direction which is demanded by user.
|
|
Call SetProperty() to set property of the target volume(the output volume) with the specified width,height and image numbers which is demanded by user.
|