Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
0d1fbf9a
Commit
0d1fbf9a
authored
14 years ago
by
Sébastien Dinot
Browse files
Options
Downloads
Patches
Plain Diff
Original copyright header restored.
parent
55504a50
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Utilities/InsightJournal/itkBinaryNotImageFilter.h
+34
-17
34 additions, 17 deletions
Utilities/InsightJournal/itkBinaryNotImageFilter.h
with
34 additions
and
17 deletions
Utilities/InsightJournal/itkBinaryNotImageFilter.h
+
34
−
17
View file @
0d1fbf9a
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile: itkBinaryImageToStatisticsLabelMapFilter.h,v $
Language: C++
Date: $Date: 2006/03/28 19:59:05 $
Version: $Revision: 1.6 $
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __itkBinaryNotImageFilter_h
#define __itkBinaryNotImageFilter_h
...
...
@@ -7,15 +24,15 @@
namespace
itk
{
/** \class BinaryNotImageFilter
* \brief Implements the BinaryNot logical operator pixel-wise between two images.
*
* This class is parametrized over the types of the two
* input images and the type of the output image.
* This class is parametrized over the types of the two
* input images and the type of the output image.
* Numeric conversions (castings) are done by the C++ defaults.
*
*
*
* The total operation over one pixel will be
*
* output_pixel = static_cast<PixelType>( input1_pixel != input2_pixel )
...
...
@@ -24,8 +41,8 @@ namespace itk
*
* \ingroup IntensityImageFilters Multithreaded
*/
namespace
Functor
{
namespace
Functor
{
template
<
class
TPixel
>
class
BinaryNot
{
...
...
@@ -52,7 +69,7 @@ public:
TPixel
m_ForegroundValue
;
TPixel
m_BackgroundValue
;
};
};
}
template
<
class
TImage
>
...
...
@@ -65,11 +82,11 @@ UnaryFunctorImageFilter<TImage, TImage,
{
public:
/** Standard class typedefs. */
typedef
BinaryNotImageFilter
Self
;
typedef
BinaryNotImageFilter
Self
;
typedef
UnaryFunctorImageFilter
<
TImage
,
TImage
,
Functor
::
BinaryNot
<
typename
TImage
::
PixelType
>
>
Superclass
;
typedef
SmartPointer
<
Self
>
Pointer
;
typedef
SmartPointer
<
const
Self
>
ConstPointer
;
typedef
SmartPointer
<
Self
>
Pointer
;
typedef
SmartPointer
<
const
Self
>
ConstPointer
;
/** Method for creation through the object factory. */
itkNewMacro
(
Self
);
...
...
@@ -95,7 +112,7 @@ public:
/** Get the value used as "background". Defaults to
* NumericTraits<PixelType>::NonpositiveMin(). */
itkGetConstMacro
(
BackgroundValue
,
PixelType
);
protected:
BinaryNotImageFilter
()
...
...
@@ -112,12 +129,12 @@ protected:
typedef
typename
NumericTraits
<
PixelType
>::
PrintType
PixelPrintType
;
os
<<
indent
<<
"ForegroundValue: "
<<
static_cast
<
PixelPrintType
>
(
m_ForegroundValue
)
os
<<
indent
<<
"ForegroundValue: "
<<
static_cast
<
PixelPrintType
>
(
m_ForegroundValue
)
<<
std
::
endl
;
os
<<
indent
<<
"BackgroundValue: "
<<
static_cast
<
PixelPrintType
>
(
m_BackgroundValue
)
os
<<
indent
<<
"BackgroundValue: "
<<
static_cast
<
PixelPrintType
>
(
m_BackgroundValue
)
<<
std
::
endl
;
}
...
...
@@ -134,7 +151,7 @@ private:
PixelType
m_ForegroundValue
;
PixelType
m_BackgroundValue
;
};
}
// end namespace itk
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment