Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
The container registry cleanup task is now completed and the registry can be used normally.
Open sidebar
CAMP
campvis-public
Commits
6e1d1a67
Commit
6e1d1a67
authored
Mar 13, 2014
by
Oliver Zettinig
Browse files
Bugfixing to ensure compiling
parent
d10117b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/itk/processors/itkimagefilter.cpp
View file @
6e1d1a67
...
...
@@ -61,8 +61,8 @@
{
\
GenericImageRepresentationItk
<
MA_baseType
,
MA_numChannels
,
MA_dimensionality
>::
ScopedRepresentation
itkRep
(
data
,
p_sourceImageID
.
getValue
());
\
if
(
itkRep
!=
0
)
{
\
typedef
typename
GenericImageRepresentationItk
<
MA_baseType
,
MA_numChannels
,
MA_dimensionality
>::
ItkImageType
InputImageType
;
\
typedef
typename
GenericImageRepresentationItk
<
MA_returnType
,
MA_numChannels
,
MA_dimensionality
>::
ItkImageType
OutputImageType
;
\
typedef
GenericImageRepresentationItk
<
MA_baseType
,
MA_numChannels
,
MA_dimensionality
>::
ItkImageType
InputImageType
;
\
typedef
GenericImageRepresentationItk
<
MA_returnType
,
MA_numChannels
,
MA_dimensionality
>::
ItkImageType
OutputImageType
;
\
itk
::
MA_filterType
<
InputImageType
,
OutputImageType
>::
Pointer
filter
=
itk
::
MA_filterType
<
InputImageType
,
OutputImageType
>::
New
();
\
\
MD_filterBody
\
...
...
@@ -73,7 +73,6 @@
}
\
}
// Multi-channel images not supported by most ITK processors...
/**
* Executes the specified filter on the data specified filter (in-place filter)
* \param MA_baseType base type of input and output image
...
...
@@ -97,17 +96,15 @@
}
\
}
// Multi-channel images not supported by most ITK processors...
#define DISPATCH_ITK_FILTER_BRD(MA_WTP, MA_baseType, MA_returnType, MA_dimensionality, MA_filterType, MD_filterBody) \
tgtAssert
(
MA_WTP
.
_numChannels
==
1
,
"ItkImageFilter only supports single-channel images."
)
\
PERFORM_ITK_FILTER_SPECIFIC
(
MA_baseType
,
MA_returnType
,
1
,
MA_dimensionality
,
MA_filterType
,
MD_filterBody
)
#define DISPATCH_ITK_FILTER_INPLACE_BD(MA_WTP, MA_baseType, MA_dimensionality, MA_filterType, MD_filterBody) \
switch
(
MA_WTP
.
_numChannels
)
{
\
case
1
:
PERFORM_ITK_FILTER_SPECIFIC_INPLACE
(
MA_baseType
,
1
,
MA_dimensionality
,
MA_filterType
,
MD_filterBody
)
break
;
\
case
2
:
PERFORM_ITK_FILTER_SPECIFIC_INPLACE
(
MA_baseType
,
1
,
MA_dimensionality
,
MA_filterType
,
MD_filterBody
)
break
;
\
case
3
:
PERFORM_ITK_FILTER_SPECIFIC_INPLACE
(
MA_baseType
,
1
,
MA_dimensionality
,
MA_filterType
,
MD_filterBody
)
break
;
\
case
4
:
PERFORM_ITK_FILTER_SPECIFIC_INPLACE
(
MA_baseType
,
1
,
MA_dimensionality
,
MA_filterType
,
MD_filterBody
)
break
;
\
}
tgtAssert
(
MA_WTP
.
_numChannels
==
1
,
"ItkImageFilter only supports single-channel images."
)
\
PERFORM_ITK_FILTER_SPECIFIC_INPLACE
(
MA_baseType
,
1
,
MA_dimensionality
,
MA_filterType
,
MD_filterBody
)
#define DISPATCH_ITK_FILTER_RD(MA_WTP, MA_returnType, MA_dimensionality, MA_filterType, MD_filterBody) \
switch
(
MA_WTP
.
_baseType
)
{
\
...
...
@@ -234,9 +231,9 @@
do
{
\
WeaklyTypedPointer
wtp
=
MA_localRep
->
getWeaklyTypedPointer
();
\
switch
(
MA_localRep
->
getDimensionality
())
{
\
case
1
:
DISPATCH_ITK_FILTER_INPLACE_D
(
wtp
,
1
,
MA_filterType
,
MD_filterBody
)
break
;
\
case
2
:
DISPATCH_ITK_FILTER_INPLACE_D
(
wtp
,
2
,
MA_filterType
,
MD_filterBody
)
break
;
\
case
3
:
DISPATCH_ITK_FILTER_INPLACE_D
(
wtp
,
3
,
MA_filterType
,
MD_filterBody
)
break
;
\
default:
tgtAssert
(
false
,
"Unsupported dimensionality!"
);
break
;
\
}
\
}
while
(
0
)
...
...
modules/itk/processors/itkimagefilter.h
View file @
6e1d1a67
...
...
@@ -22,7 +22,6 @@
//
// ================================================================================================
#ifndef ITKIMAGEFILTER_H__
#define ITKIMAGEFILTER_H__
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment