typedef signed short InputPixelType;
typedef unsigned char OutputPixelType;
typedef itk::Image<InputPixelType, 3> InputImageType;
typedef itk::Image<OutputPixelType, 3> OutputImageType;
using RescaleFilterType =
itk::RescaleIntensityImageFilter<InputImageType, OutputImageType>;
RescaleFilterType::Pointer rescaler = RescaleFilterType::New();
rescaler->SetOutputMinimum(0);
rescaler->SetOutputMaximum(255);
rescaler->SetInput(filter->GetOutput());
rescaler->Update();
when i convert the 3D data from signed short to unsigned char, it consume too much time and compute, how I can to speed it.?