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

Method LoadLogoImageFromPath

Modules/Annotation/src/mitkLogoAnnotation.cpp:92–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void 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
112void mitk::LogoAnnotation::SetLogoImage(vtkSmartPointer<vtkImageData> logo)
113{

Callers 2

RenderMbiLogoMethod · 0.80
RenderLogoMethod · 0.80

Calls 11

GetLogoImagePathMethod · 0.95
LoadFunction · 0.85
ModifiedFunction · 0.85
GetPointerMethod · 0.80
frontMethod · 0.80
IsNotNullMethod · 0.80
DeepCopyMethod · 0.80
sizeMethod · 0.45
GetVtkImageDataMethod · 0.45
UpdateMethod · 0.45
GetOutputMethod · 0.45

Tested by 2

RenderMbiLogoMethod · 0.64
RenderLogoMethod · 0.64