Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CAMP
campvis-public
Commits
9f09c18a
Commit
9f09c18a
authored
Jul 07, 2014
by
Oliver Zettining
Committed by
Cristina Precup
Jul 18, 2014
Browse files
format segmentation files - Cristina Precup
parent
f924ccfd
Changes
2
Show whitespace changes
Inline
Side-by-side
modules/itk/processors/itksegmentation.cpp
View file @
9f09c18a
...
...
@@ -30,10 +30,7 @@
#include
"modules/itk/core/genericimagerepresentationitk.h"
#include
<itkIntTypes.h>
#include
<itkGradientMagnitudeImageFilter.h>
#include
<itkWatershedImageFilter.h>
#include
<itkCastImageFilter.h>
#include
<itkConnectedThresholdImageFilter.h>
#include
<itkMaskImageFilter.h>
...
...
@@ -45,7 +42,7 @@
/**
* Executes the specified segmentation on the data.
* \param MA_baseType base type of input image
* \param MA_returnType base type of ouput image
* \param MA_returnType base type of ou
t
put image
* \param MA_numChannels number of channels of input image
* \param MA_dimensionality dimensionality of images
* \param MD_filterBody additional stuff to execute between filter definition and execution
...
...
@@ -73,8 +70,6 @@
} \
}
#define DISPATCH_ITK_SEGMENTATION_BRD(MA_WTP, MA_baseType, MA_returnType, MA_dimensionality, MA_filterType, MD_filterBody) \
tgtAssert(MA_WTP._numChannels == 1, "ItkSegmentation only supports single-channel images.") \
PERFORM_ITK_SEGMENTATION(MA_baseType, MA_returnType, 1, MA_dimensionality, MA_filterType, MD_filterBody)
...
...
@@ -106,11 +101,10 @@
tgtAssert(false, "Should not reach this - wrong base type in WeaklyTypedPointer!"); \
} \
/**
* Dispatches the execution for the ITK filter \a MA_filterType for the image \a MA_localRep.
* \param MA_localRep local representation of the image to apply the filter to
* \param MA_filterType type name
i
f the ITK filter to use (within itk:: namespace)
* \param MA_filterType type name
o
f the ITK filter to use (within itk:: namespace)
* \param MD_filterBody additional stuff to execute between filter definition and execution
*/
#define DISPATCH_ITK_SEGMENTATION(MA_localRep, MA_filterType, MD_filterBody) \
...
...
modules/itk/processors/itksegmentation.h
View file @
9f09c18a
...
...
@@ -38,7 +38,7 @@
namespace
campvis
{
/**
* Performs
watershed image filter
on input image using ITK.
* Performs
segmentation
on input image using ITK.
*/
class
ItkSegmentation
:
public
AbstractProcessor
{
public:
...
...
@@ -62,7 +62,7 @@ namespace campvis {
virtual
ProcessorState
getProcessorState
()
const
{
return
AbstractProcessor
::
TESTING
;
};
DataNameProperty
p_sourceImageID
;
///< ID for input volume
DataNameProperty
p_targetImageID
;
///< ID for
output gradien
t volume
DataNameProperty
p_targetImageID
;
///< ID for
segmented outpu
t volume
GenericOptionProperty
<
std
::
string
>
p_segmentationType
;
///< Segmentation type
...
...
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