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

Method Initialize

Modules/Core/src/DataManagement/mitkImageDescriptor.cpp:47–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void mitk::ImageDescriptor::Initialize(const ImageDescriptor::Pointer refDescriptor, unsigned int channel)
48{
49 // initialize the members holding dimension information
50 this->m_NumberOfChannels = refDescriptor->GetNumberOfChannels();
51 this->m_NumberOfDimensions = refDescriptor->GetNumberOfDimensions();
52 const unsigned int *refDims = refDescriptor->GetDimensions();
53
54 // copy the dimension information
55 for (unsigned int i = 0; i < this->m_NumberOfDimensions; i++)
56 {
57 this->m_Dimensions[i] = refDims[i];
58 }
59
60 // get the channel descriptor and store them and so the name of the channel
61 mitk::ChannelDescriptor desc = refDescriptor->GetChannelDescriptor(channel);
62 this->m_ChannelDesc.push_back(desc);
63 this->m_ChannelNames.push_back(refDescriptor->GetChannelName(channel));
64}
65
66void mitk::ImageDescriptor::Initialize(const unsigned int *dims, const unsigned int dim)
67{

Callers

nothing calls this directly

Calls 3

GetDimensionsMethod · 0.80
GetChannelDescriptorMethod · 0.80
GetChannelNameMethod · 0.80

Tested by

no test coverage detected