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

Method GenerateData

Modules/Segmentation/src/Algorithms/mitkSurfaceStampImageFilter.cpp:69–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void mitk::SurfaceStampImageFilter::GenerateData()
70{
71 mitk::Image::ConstPointer inputImage = this->GetInput();
72
73 if (inputImage.IsNull())
74 return;
75
76 mitk::Image::Pointer outputImage = this->GetOutput();
77 if (outputImage->IsInitialized() == false)
78 return;
79
80 if (m_Surface.IsNull())
81 return;
82
83 mitk::Image::RegionType outputRegion = outputImage->GetRequestedRegion();
84
85 int tstart = outputRegion.GetIndex(3);
86 int tmax = tstart + outputRegion.GetSize(3);
87
88 if (tmax > 0)
89 {
90 int t;
91 for (t = tstart; t < tmax; ++t)
92 {
93 this->SurfaceStamp(t);
94 }
95 }
96 else
97 {
98 this->SurfaceStamp(0);
99 }
100}
101
102void mitk::SurfaceStampImageFilter::SurfaceStamp(int time)
103{

Callers

nothing calls this directly

Calls 7

SurfaceStampMethod · 0.95
GetInputMethod · 0.45
IsNullMethod · 0.45
GetOutputMethod · 0.45
IsInitializedMethod · 0.45
GetIndexMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected