Pre-normalized path: one scalar multiply per voxel.
| 842 | { |
| 843 | // Pre-normalized path: one scalar multiply per voxel. |
| 844 | void ProcessTimeStepRenormalized(const mitk::Image* stepIn, |
| 845 | mitk::Image* dst, |
| 846 | mitk::TimeStepType dstStep, |
| 847 | double factor) |
| 848 | { |
| 849 | ImageT::Pointer itkIn; |
| 850 | mitk::CastToItkImage(stepIn, itkIn); |
| 851 | |
| 852 | using FilterT = itk::UnaryFunctorImageFilter<ImageT, ImageT, SUVRenormalizationFunctor>; |
| 853 | auto filter = FilterT::New(); |
| 854 | filter->SetFunctor(SUVRenormalizationFunctor(factor)); |
| 855 | filter->SetInput(itkIn); |
| 856 | filter->Update(); |
| 857 | |
| 858 | auto suvSlab = mitk::ImportItkImage(filter->GetOutput()); |
| 859 | mitk::ImageReadAccessor acc(suvSlab); |
| 860 | dst->SetVolume(acc.GetData(), dstStep); |
| 861 | } |
| 862 | |
| 863 | const char* OutputUnitsValue(mitk::SUVVariant target) |
| 864 | { |
no test coverage detected