| 134 | } |
| 135 | |
| 136 | vtkImageData *mitk::Image::GetVtkImageData(int t, int n) |
| 137 | { |
| 138 | if (m_Initialized == false) |
| 139 | { |
| 140 | if (GetSource().IsNull()) |
| 141 | return nullptr; |
| 142 | if (GetSource()->Updating() == false) |
| 143 | GetSource()->UpdateOutputInformation(); |
| 144 | } |
| 145 | ImageDataItemPointer volume = GetVolumeData(t, n); |
| 146 | return volume.GetPointer() == nullptr ? nullptr : volume->GetVtkImageAccessor(this)->GetVtkImageData(); |
| 147 | } |
| 148 | |
| 149 | const vtkImageData *mitk::Image::GetVtkImageData(int t, int n) const |
| 150 | { |