| 90 | } |
| 91 | |
| 92 | void mitk::LogoAnnotation::LoadLogoImageFromPath() |
| 93 | { |
| 94 | auto imageNodeVector = mitk::IOUtil::Load(this->GetLogoImagePath()); |
| 95 | |
| 96 | if (imageNodeVector.size() == 1) |
| 97 | { |
| 98 | mitk::Image::Pointer image = dynamic_cast<mitk::Image *>(imageNodeVector.front().GetPointer()); |
| 99 | |
| 100 | if (image.IsNotNull()) |
| 101 | { |
| 102 | vtkNew<vtkImageFlip> flip; |
| 103 | flip->SetInputData(image->GetVtkImageData()); |
| 104 | flip->SetFilteredAxis(1); |
| 105 | flip->Update(); |
| 106 | m_UpdatedLogoImage->DeepCopy(flip->GetOutput()); |
| 107 | Modified(); |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | void mitk::LogoAnnotation::SetLogoImage(vtkSmartPointer<vtkImageData> logo) |
| 113 | { |