Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkMaskAndCutRoiImageFilter.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
#ifndef mitkMaskAndCutRoiImageFilter_h
13
#define mitkMaskAndCutRoiImageFilter_h
14
15
#include "
MitkAlgorithmsExtExports.h
"
16
#include "
mitkImageToImageFilter.h
"
17
18
#include "itkRegionOfInterestImageFilter.h"
19
#include "
mitkAutoCropImageFilter.h
"
20
#include "
mitkBoundingObject.h
"
21
#include "
mitkDataNode.h
"
22
#include "
mitkMaskImageFilter.h
"
23
24
namespace
mitk
25
{
35
class
MITKALGORITHMSEXT_EXPORT
MaskAndCutRoiImageFilter
:
public
ImageToImageFilter
36
{
37
typedef
itk::Image<short, 3> ItkImageType;
38
typedef
itk::Image<unsigned char, 3> ItkMaskType;
39
typedef
itk::ImageRegion<3> RegionType;
40
typedef
itk::RegionOfInterestImageFilter<ItkImageType, ItkImageType> ROIFilterType;
41
42
public
:
43
mitkClassMacro
(
MaskAndCutRoiImageFilter
,
ImageToImageFilter
);
44
itkFactorylessNewMacro(
Self
);
45
itkCloneMacro(
Self
);
46
47
void
SetRegionOfInterest(
mitk::BaseData
*roi);
48
// void SetRegionOfInterest(Image::Pointer image);
49
// void SetRegionOfInterest(BoundingObject::Pointer boundingObject);
50
// void SetRegionOfInterestByNode(mitk::DataNode::Pointer node);
51
52
// temporary fix for bug #
53
mitk::Image::Pointer
GetOutput();
54
55
protected
:
56
MaskAndCutRoiImageFilter
();
57
~
MaskAndCutRoiImageFilter
()
override
;
58
59
void
GenerateData()
override
;
60
61
ROIFilterType::Pointer
m_RoiFilter
;
62
mitk::AutoCropImageFilter::Pointer
m_CropFilter
;
63
mitk::MaskImageFilter::Pointer
m_MaskFilter
;
64
65
// needed for temporary fix
66
mitk::Image::Pointer
m_outputImage
;
67
68
};
// class
69
70
}
// namespace
71
72
#endif
mitk::MaskAndCutRoiImageFilter
Cuts a region of interest (ROI) out of an image.
Definition:
mitkMaskAndCutRoiImageFilter.h:35
mitkImageToImageFilter.h
itk::SmartPointer< Self >
MitkAlgorithmsExtExports.h
MITKALGORITHMSEXT_EXPORT
#define MITKALGORITHMSEXT_EXPORT
Definition:
MitkAlgorithmsExtExports.h:15
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::MaskAndCutRoiImageFilter::m_outputImage
mitk::Image::Pointer m_outputImage
Definition:
mitkMaskAndCutRoiImageFilter.h:66
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition:
mitkBaseDataSource.h:71
mitkAutoCropImageFilter.h
mitk::MaskAndCutRoiImageFilter::m_CropFilter
mitk::AutoCropImageFilter::Pointer m_CropFilter
Definition:
mitkMaskAndCutRoiImageFilter.h:62
mitk::BaseData
Base of all data objects.
Definition:
mitkBaseData.h:42
mitk::MaskAndCutRoiImageFilter::m_MaskFilter
mitk::MaskImageFilter::Pointer m_MaskFilter
Definition:
mitkMaskAndCutRoiImageFilter.h:63
mitkDataNode.h
mitkBoundingObject.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
mitk::MaskAndCutRoiImageFilter::m_RoiFilter
ROIFilterType::Pointer m_RoiFilter
Definition:
mitkMaskAndCutRoiImageFilter.h:61
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition:
mitkImageToImageFilter.h:25
mitkMaskImageFilter.h
src
MITK
Modules
AlgorithmsExt
include
mitkMaskAndCutRoiImageFilter.h
Generated on Mon Dec 23 2024 02:13:20 for Medical Imaging Interaction Toolkit by
1.8.17