Finished work on usigned short checks for DRR images as well as better handling and logging of errors in Data Saving
This commit is contained in:
@ -2256,12 +2256,12 @@ vtkImageData* itkImageProcessor::GetProjection1VTK()
|
||||
//TODO
|
||||
}
|
||||
|
||||
// Rescale the intensity of the projection images to 0-32768 for output.
|
||||
// Rescale the intensity of the projection images from float to unsigned short for output.
|
||||
using RescaleFilterType = itk::RescaleIntensityImageFilter<InternalImageType, OutputImageType>;
|
||||
|
||||
RescaleFilterType::Pointer rescaler1 = RescaleFilterType::New();
|
||||
rescaler1->SetOutputMinimum(0);
|
||||
rescaler1->SetOutputMaximum(32768);
|
||||
rescaler1->SetOutputMaximum(USHRT_MAX);
|
||||
rescaler1->SetInput( imageDRT1In );
|
||||
rescaler1->Update();
|
||||
|
||||
@ -2387,12 +2387,12 @@ vtkImageData* itkImageProcessor::GetProjection2VTK()
|
||||
//TODO
|
||||
}
|
||||
|
||||
// Rescale the intensity of the projection images to 0-32768 for output.
|
||||
// Rescale the intensity of the projection images from float to unsigned short for output.
|
||||
using RescaleFilterType = itk::RescaleIntensityImageFilter<InternalImageType, OutputImageType>;
|
||||
|
||||
RescaleFilterType::Pointer rescaler2 = RescaleFilterType::New();
|
||||
rescaler2->SetOutputMinimum(0);
|
||||
rescaler2->SetOutputMaximum(32768);
|
||||
rescaler2->SetOutputMaximum(USHRT_MAX);
|
||||
rescaler2->SetInput( imageDRT2In );
|
||||
|
||||
rescaler2->Update();
|
||||
|
Reference in New Issue
Block a user