Medical Imaging Interaction Toolkit
2024.12.99-d991a09f
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Groups
Namespace List
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Variables
e
f
i
l
m
n
p
r
s
t
Typedefs
a
b
c
d
f
g
i
l
m
n
o
p
q
r
s
t
v
x
Enumerations
Enumerator
a
b
c
d
e
g
h
i
k
l
n
o
p
r
s
t
v
w
z
Class List
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
c
m
o
r
s
t
Related Functions
File List
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
m
o
p
q
r
s
t
u
v
x
Functions
_
e
h
m
o
q
s
u
Variables
Typedefs
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
i
m
o
p
q
r
s
u
v
x
Examples
Download
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
mitkSimpleFunctorPolicy.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 mitkSimpleFunctorPolicy_h
14
#define mitkSimpleFunctorPolicy_h
15
16
#include "itkIndex.h"
17
#include "
mitkSimpleFunctorBase.h
"
18
#include "
MitkModelFitExports.h
"
19
20
namespace
mitk
21
{
22
23
class
MITKMODELFIT_EXPORT
SimpleFunctorPolicy
24
{
25
public
:
26
typedef
std::vector<mitk::ScalarType>
InputPixelArrayType
;
27
typedef
std::vector<mitk::ScalarType>
OutputPixelArrayType
;
28
29
typedef
SimpleFunctorBase
FunctorType
;
30
typedef
SimpleFunctorBase::ConstPointer
FunctorConstPointer
;
31
32
typedef
itk::Index<3>
IndexType
;
33
34
SimpleFunctorPolicy
();
35
36
~
SimpleFunctorPolicy
();
37
38
unsigned
int
GetNumberOfOutputs()
const
;
39
40
void
SetFunctor(
const
mitk::SimpleFunctorBase
*functor);
41
42
bool
operator!=
(
const
SimpleFunctorPolicy
& other)
const
;
43
44
bool
operator==
(
const
SimpleFunctorPolicy
& other)
const
;
45
46
inline
OutputPixelArrayType
operator()
(
const
InputPixelArrayType
& value,
const
IndexType
&
/*currentIndex*/
)
const
47
{
48
if
(!m_Functor)
49
{
50
itkGenericExceptionMacro(<<
"Error. Cannot process operator(). Functor is Null."
);
51
}
52
53
OutputPixelArrayType
result = m_Functor->Compute(value);
54
55
return
result;
56
}
57
58
private
:
59
60
FunctorConstPointer m_Functor;
61
};
62
63
}
64
65
66
#endif
mitk::SimpleFunctorPolicy::IndexType
itk::Index< 3 > IndexType
Definition:
mitkSimpleFunctorPolicy.h:32
mitk::SimpleFunctorPolicy::FunctorConstPointer
SimpleFunctorBase::ConstPointer FunctorConstPointer
Definition:
mitkSimpleFunctorPolicy.h:30
mitk::SimpleFunctorPolicy::operator()
OutputPixelArrayType operator()(const InputPixelArrayType &value, const IndexType &) const
Definition:
mitkSimpleFunctorPolicy.h:46
mitk::SimpleFunctorPolicy::OutputPixelArrayType
std::vector< mitk::ScalarType > OutputPixelArrayType
Definition:
mitkSimpleFunctorPolicy.h:27
MitkModelFitExports.h
itk::SmartPointer< const Self >
MITKMODELFIT_EXPORT
#define MITKMODELFIT_EXPORT
Definition:
MitkModelFitExports.h:15
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::operator!=
MITKCORE_EXPORT bool operator!=(const InteractionEvent &a, const InteractionEvent &b)
mitk::SimpleFunctorPolicy::InputPixelArrayType
std::vector< mitk::ScalarType > InputPixelArrayType
Definition:
mitkSimpleFunctorPolicy.h:26
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
mitk::SimpleFunctorPolicy::FunctorType
SimpleFunctorBase FunctorType
Definition:
mitkSimpleFunctorPolicy.h:29
mitkSimpleFunctorBase.h
mitk::SimpleFunctorPolicy
Definition:
mitkSimpleFunctorPolicy.h:23
mitk::SimpleFunctorBase
Definition:
mitkSimpleFunctorBase.h:28
src
MITK
Modules
ModelFit
include
mitkSimpleFunctorPolicy.h
Generated on Sat Mar 22 2025 02:15:04 for Medical Imaging Interaction Toolkit by
1.8.17