| 746 | } |
| 747 | |
| 748 | void mitk::Image::Initialize() |
| 749 | { |
| 750 | ImageDataItemPointerArray::iterator it, end; |
| 751 | for (it = m_Slices.begin(), end = m_Slices.end(); it != end; ++it) |
| 752 | { |
| 753 | (*it) = nullptr; |
| 754 | } |
| 755 | for (it = m_Volumes.begin(), end = m_Volumes.end(); it != end; ++it) |
| 756 | { |
| 757 | (*it) = nullptr; |
| 758 | } |
| 759 | for (it = m_Channels.begin(), end = m_Channels.end(); it != end; ++it) |
| 760 | { |
| 761 | (*it) = nullptr; |
| 762 | } |
| 763 | m_CompleteData = nullptr; |
| 764 | |
| 765 | if (m_ImageStatistics == nullptr) |
| 766 | { |
| 767 | m_ImageStatistics = new mitk::ImageStatisticsHolder(this); |
| 768 | } |
| 769 | |
| 770 | SetRequestedRegionToLargestPossibleRegion(); |
| 771 | } |
| 772 | |
| 773 | void mitk::Image::Initialize(const mitk::ImageDescriptor::Pointer inDesc) |
| 774 | { |
no test coverage detected