Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkExtractSliceFilter2.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 mitkExtractSliceFilter2_h
14
#define mitkExtractSliceFilter2_h
15
16
#include <
mitkImageToImageFilter.h
>
17
#include <
mitkPlaneGeometry.h
>
18
#include <
MitkCoreExports.h
>
19
20
namespace
mitk
21
{
40
class
MITKCORE_EXPORT
ExtractSliceFilter2
final :
public
ImageToImageFilter
41
{
42
public
:
43
enum
Interpolator
44
{
45
NearestNeighbor
,
46
Linear
,
47
Cubic
48
};
49
50
mitkClassMacro
(
ExtractSliceFilter2
,
ImageToImageFilter
);
51
52
itkFactorylessNewMacro(
Self
);
53
54
void
SetInput(
const
InputImageType
* image)
override
;
55
void
SetInput(
unsigned
int
index,
const
InputImageType
* image)
override
;
56
57
const
PlaneGeometry
* GetOutputGeometry()
const
;
58
void
SetOutputGeometry(
PlaneGeometry::Pointer
outputGeometry);
59
60
Interpolator
GetInterpolator()
const
;
61
void
SetInterpolator(
Interpolator
interpolator);
62
63
private
:
64
using
Superclass::SetInput;
65
66
ExtractSliceFilter2
();
67
~
ExtractSliceFilter2
()
override
;
68
69
void
AllocateOutputs()
override
;
70
// void BeforeThreadedGenerateData() override;
71
// void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId) override;
72
void
GenerateData()
override
;
73
void
VerifyInputInformation()
const override
;
74
75
struct
Impl;
76
Impl* m_Impl;
77
};
78
}
79
80
#endif
mitkImageToImageFilter.h
mitk::PlaneGeometry
Describes a two-dimensional, rectangular plane.
Definition:
mitkPlaneGeometry.h:78
mitk::Image
Image class for storing images.
Definition:
mitkImage.h:69
itk::SmartPointer< Self >
mitk::ExtractSliceFilter2
Extract an arbitrarily oriented 2-d image from a 3-d image.
Definition:
mitkExtractSliceFilter2.h:40
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::BaseDataSource
Superclass of all classes generating some kind of mitk::BaseData.
Definition:
mitkBaseDataSource.h:71
MitkCoreExports.h
mitk::ExtractSliceFilter2::Linear
@ Linear
Definition:
mitkExtractSliceFilter2.h:46
mitk::ExtractSliceFilter2::NearestNeighbor
@ NearestNeighbor
Definition:
mitkExtractSliceFilter2.h:45
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
mitk::ImageToImageFilter
Superclass of all classes having one or more Images as input and generating Images as output.
Definition:
mitkImageToImageFilter.h:25
mitk::ExtractSliceFilter2::Interpolator
Interpolator
Definition:
mitkExtractSliceFilter2.h:43
mitkPlaneGeometry.h
src
MITK
Modules
Core
include
mitkExtractSliceFilter2.h
Generated on Sat Nov 23 2024 02:13:12 for Medical Imaging Interaction Toolkit by
1.8.17