| 45 | } |
| 46 | |
| 47 | void 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 | |
| 66 | void mitk::ImageDescriptor::Initialize(const unsigned int *dims, const unsigned int dim) |
| 67 | { |
nothing calls this directly
no test coverage detected