MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkIGTLMessageToUSImageFilter.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found 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>
20#include <igtlImageMessage.h>
21
22namespace mitk
23{
24 class MITKUS_EXPORT IGTLMessageToUSImageFilter : public USImageSource
25 {
26 public:
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
OpenIGTLink message source.
mitkClassMacro(IGTLMessageToUSImageFilter, USImageSource)
This is an abstract superclass for delivering USImages. Each subclass must implement the method mitk:...
IGT Exceptions.