Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
mitkImageMaskGenerator.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 mitkImageMaskGenerator_h
14
#define mitkImageMaskGenerator_h
15
16
#include <
mitkImage.h
>
17
#include <
MitkImageStatisticsExports.h
>
18
#include <
mitkMaskGenerator.h
>
19
#include <itkObject.h>
20
#include <itkSmartPointer.h>
21
22
namespace
mitk
23
{
24
class
MITKIMAGESTATISTICS_EXPORT
ImageMaskGenerator
:
public
MaskGenerator
25
{
26
public
:
28
typedef
ImageMaskGenerator
Self
;
29
typedef
MaskGenerator
Superclass
;
30
typedef
itk::SmartPointer< Self >
Pointer
;
31
typedef
itk::SmartPointer< const Self >
ConstPointer
;
32
34
itkNewMacro(
Self
);
35
itkTypeMacro(BinaryImageMaskGenerator,
MaskGenerator
);
36
37
mitk::Image::ConstPointer
GetMask()
override
;
38
39
void
SetTimeStep(
unsigned
int
timeStep)
override
;
40
41
void
SetImageMask(
const
mitk::Image
* maskImage);
42
43
protected
:
44
ImageMaskGenerator
():
Superclass
(){
45
m_InternalMaskUpdateTime = 0;
46
m_InternalMask =
mitk::Image::New
();
47
}
48
49
private
:
50
bool
IsUpdateRequired()
const
;
51
void
UpdateInternalMask();
52
53
mitk::Image::ConstPointer
m_InternalMaskImage;
54
mitk::Image::ConstPointer
m_InternalMask;
55
unsigned
long
m_InternalMaskUpdateTime;
56
57
};
58
59
60
}
61
62
#endif
mitkImage.h
mitk::Image::New
static Pointer New()
mitk::ImageMaskGenerator
Definition:
mitkImageMaskGenerator.h:24
mitk::Image
Image class for storing images.
Definition:
mitkImage.h:69
itk::SmartPointer< Self >
mitk::ImageMaskGenerator::Superclass
MaskGenerator Superclass
Definition:
mitkImageMaskGenerator.h:29
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
RenderingTests.dox:1
mitkMaskGenerator.h
MITKIMAGESTATISTICS_EXPORT
#define MITKIMAGESTATISTICS_EXPORT
Definition:
MitkImageStatisticsExports.h:15
mitk::ImageMaskGenerator::Pointer
itk::SmartPointer< Self > Pointer
Definition:
mitkImageMaskGenerator.h:30
mitk::ImageMaskGenerator::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition:
mitkImageMaskGenerator.h:31
mitk::ImageMaskGenerator::Self
ImageMaskGenerator Self
Definition:
mitkImageMaskGenerator.h:28
MitkImageStatisticsExports.h
mitk::MaskGenerator
Base Class for all Mask Generators. Mask generators are classes that provide functionality for the cr...
Definition:
mitkMaskGenerator.h:30
mitk::ImageMaskGenerator::ImageMaskGenerator
ImageMaskGenerator()
Definition:
mitkImageMaskGenerator.h:44
src
MITK
Modules
ImageStatistics
mitkImageMaskGenerator.h
Generated on Wed May 17 2023 16:26:07 for Medical Imaging Interaction Toolkit by
1.8.17