- // Interpolation
- if ( bbGetInputInterpolation() == "Linear" ) {
- typedef itk::LinearInterpolateImageFunction < ImageType, double > InterpolatorType;
- // We create an interpolator of the found type
- typename InterpolatorType::Pointer interpolator = InterpolatorType::New();
- filter->SetInterpolator( interpolator );
- }
- else if ( bbGetInputInterpolation() == "NearestNeighbor" ) {