Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkIGTLMessageToUSImageFilter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkIGTLMessageToUSImageFilter_h
14 #define mitkIGTLMessageToUSImageFilter_h
15 
16 #include <mitkCommon.h>
17 #include <MitkUSExports.h>
18 #include <mitkUSImageSource.h>
19 #include <mitkIGTLMessageSource.h>
20 #include <igtlImageMessage.h>
21 
22 namespace mitk
23 {
24  class MITKUS_EXPORT IGTLMessageToUSImageFilter : public USImageSource
25  {
26  public:
28  itkFactorylessNewMacro(Self);
29  itkCloneMacro(Self);
30 
39  void SetNumberOfExpectedOutputs(unsigned int numOutputs);
40 
48  void ConnectTo(mitk::IGTLMessageSource* UpstreamFilter);
49 
50  protected:
52 
53  using Superclass::GetNextRawImage;
54 
60  void GetNextRawImage(std::vector<mitk::Image::Pointer>& imgVector) override;
61 
62  private:
63  mitk::IGTLMessageSource* m_upstream;
64  mitk::Image::Pointer m_previousImage;
73  template <typename TPixel>
74  void Initiate(mitk::Image::Pointer& img, igtl::ImageMessage* msg, bool big_endian);
75  };
76 } // namespace mitk
77 
78 #endif
mitkIGTLMessageSource.h
itk::SmartPointer< Self >
mitk::IGTLMessageSource
OpenIGTLink message source.
Definition: mitkIGTLMessageSource.h:41
mitk::IGTLMessageToUSImageFilter
Definition: mitkIGTLMessageToUSImageFilter.h:24
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::USImageSource
This is an abstract superclass for delivering USImages. Each subclass must implement the method mitk:...
Definition: mitkUSImageSource.h:38
mitkCommon.h
mitkUSImageSource.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36