Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkUSImageSource.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITKUSImageSource_H_HEADER_INCLUDED_
18 #define MITKUSImageSource_H_HEADER_INCLUDED_
19 
20 // ITK
21 #include <itkProcessObject.h>
22 #include <itkFastMutexLock.h>
23 
24 // MITK
25 #include <MitkUSExports.h>
26 #include <mitkCommon.h>
30 
31 // OpenCV
32 #include "cv.h"
33 
34 namespace mitk {
44  class MITKUS_EXPORT USImageSource : public itk::Object
45  {
46  public:
47  static const char* IMAGE_PROPERTY_IDENTIFIER;
48 
50 
51  itkGetMacro(ImageFilter, mitk::BasicCombinationOpenCVImageFilter::Pointer);
52 
53  void PushFilter(AbstractOpenCVImageFilter::Pointer filter);
54  bool RemoveFilter(AbstractOpenCVImageFilter::Pointer filter);
55  bool GetIsFilterInThePipeline(AbstractOpenCVImageFilter::Pointer filter);
56 
64  mitk::Image::Pointer GetNextImage();
65 
66  protected:
67  USImageSource();
68  virtual ~USImageSource();
77  virtual void GetNextRawImage(cv::Mat&);
78 
83  virtual void GetNextRawImage(mitk::Image::Pointer&) = 0;
84 
93 
94  private:
99 
100  int m_CurrentImageId;
101 
102  itk::FastMutexLock::Pointer m_ImageFilterMutex;
103  };
104 } // namespace mitk
105 #endif /* MITKUSImageSource_H_HEADER_INCLUDED_ */
itk::SmartPointer< Self > Pointer
mitk::OpenCVToMitkImageFilter::Pointer m_OpenCVToMitkFilter
Used to convert from OpenCV Images to MITK Images.
DataCollection - Class to facilitate loading/accessing structured data.
This is an abstract superclass for delivering USImages. Each subclass must implement the method mitk:...
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
mitk::ImageToOpenCVImageFilter::Pointer m_MitkToOpenCVFilter
Used to convert from MITK Images to OpenCV Images.
static const char * IMAGE_PROPERTY_IDENTIFIER