MCPcopy Create free account
hub / github.com/MITK/MITK / ProcessTimeStepRenormalized

Function ProcessTimeStepRenormalized

Modules/PET/src/mitkSUVImageFilter.cpp:844–861  ·  view source on GitHub ↗

Pre-normalized path: one scalar multiply per voxel.

Source from the content-addressed store, hash-verified

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 {

Callers 1

GenerateDataMethod · 0.85

Calls 8

SetVolumeMethod · 0.80
NewFunction · 0.50
SetFunctorMethod · 0.45
SetInputMethod · 0.45
UpdateMethod · 0.45
GetOutputMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected