Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
ed90bd5f
Commit
ed90bd5f
authored
Feb 15, 2018
by
Antoine Regimbeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
REFAC: minor modification following Gitlab thread
parent
ab11c7e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
Modules/Filtering/ImageManipulation/include/otbClampImageFilter.h
...Filtering/ImageManipulation/include/otbClampImageFilter.h
+2
-2
Modules/Filtering/ImageManipulation/include/otbClampImageFilter.txx
...ltering/ImageManipulation/include/otbClampImageFilter.txx
+6
-3
No files found.
Modules/Filtering/ImageManipulation/include/otbClampImageFilter.h
View file @
ed90bd5f
...
@@ -105,13 +105,13 @@ protected:
...
@@ -105,13 +105,13 @@ protected:
void
PrintSelf
(
std
::
ostream
&
os
,
itk
::
Indent
indent
)
const
override
;
void
PrintSelf
(
std
::
ostream
&
os
,
itk
::
Indent
indent
)
const
override
;
void
GenerateOutputInformation
(
void
)
override
void
GenerateOutputInformation
(
void
)
override
{
{
Superclass
::
GenerateOutputInformation
();
Superclass
::
GenerateOutputInformation
();
unsigned
int
sizeIn
=
this
->
GetInput
()
->
GetNumberOfComponentsPerPixel
();
unsigned
int
sizeIn
=
this
->
GetInput
()
->
GetNumberOfComponentsPerPixel
();
this
->
GetFunctor
().
SetInputComponents
(
sizeIn
);
this
->
GetFunctor
().
SetInputComponents
(
sizeIn
);
this
->
GetOutput
()
->
SetNumberOfComponentsPerPixel
(
this
->
GetOutput
()
->
SetNumberOfComponentsPerPixel
(
this
->
GetFunctor
().
GetOutputSize
()
);
this
->
GetFunctor
().
GetOutputSize
()
);
}
}
private:
private:
ClampImageFilter
(
const
Self
&
)
=
delete
;
ClampImageFilter
(
const
Self
&
)
=
delete
;
...
...
Modules/Filtering/ImageManipulation/include/otbClampImageFilter.txx
View file @
ed90bd5f
...
@@ -61,9 +61,12 @@ void
...
@@ -61,9 +61,12 @@ void
ClampImageFilter<TInputImage, TOutputImage>
ClampImageFilter<TInputImage, TOutputImage>
::SetUpper(OutputPixelValueType val)
::SetUpper(OutputPixelValueType val)
{
{
m_Upper = val;
if ( m_Upper != val )
this->GetFunctor().SetHighest( m_Upper );
{
this->Modified();
m_Upper = val;
this->GetFunctor().SetHighest( m_Upper );
this->Modified();
}
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
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