728x90
vtkImageSlice Interpolation 지정하기
vtkImageSlice는 vtkImageActor 와 vtkImageStack으로 자식 클래스를 갖는다.
또한 ImageSlice는 ImageProperty를 갖는데 여기에서 interpolation 을 지정할 수 있다.
Interpolation type은 아래와 같이 정의되어 있고 default는 Linear interpolation 이다.
#define VTK_NEAREST_INTERPOLATION 0
#define VTK_LINEAR_INTERPOLATION 1
#define VTK_CUBIC_INTERPOLATION 2
Interpolation type 지정하기
imageSlice.GetProperty().SetInterpolationType(0);
vtkImageActor에서는 interpolation on/off 할 수 있는 별도의 interface를 제공한다.
imageActor.InterpolateOn();
imageActor.InterpolateOff();
Nearest Interpolation
Linear Interpolation
Interpolation 계산 차이
728x90
728x90