Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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_HEADER_INCLUDED_
14 #define MITKIGTLMessageToUSImageFilter_H_HEADER_INCLUDED_
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 {
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 // MITKIGTLMessageToUSImageFilter_H_HEADER_INCLUDED_
DataCollection - Class to facilitate loading/accessing structured data.
This is an abstract superclass for delivering USImages. Each subclass must implement the method mitk:...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
OpenIGTLink message source.
#define MITKUS_EXPORT
Definition: MitkUSExports.h:15