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

Method SetSliceItem

Modules/Core/src/Algorithms/mitkSubImageSelector.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void mitk::SubImageSelector::SetSliceItem(mitk::Image::ImageDataItemPointer dataItem, int s, int t, int n)
56{
57 mitk::Image::Pointer output = this->GetOutput();
58 if (output->IsValidSlice(s, t, n) == false)
59 return;
60 int pos;
61 pos = output->GetSliceIndex(s, t, n);
62 output->m_Slices[pos] = dataItem;
63}
64
65mitk::SubImageSelector::SubImageSelector()
66{

Callers 1

GenerateDataMethod · 0.80

Calls 3

GetOutputMethod · 0.45
IsValidSliceMethod · 0.45
GetSliceIndexMethod · 0.45

Tested by

no test coverage detected