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
Julien Cabieces
otb
Commits
2cdc58f2
Commit
2cdc58f2
authored
12 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
ITK4: avoid ambiguity with itk patched SpecialCast
parent
ec073270
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
Code/IO/otbConvertPixelBuffer.txx
+4
-4
4 additions, 4 deletions
Code/IO/otbConvertPixelBuffer.txx
with
4 additions
and
4 deletions
Code/IO/otbConvertPixelBuffer.txx
+
4
−
4
View file @
2cdc58f2
...
...
@@ -598,7 +598,7 @@ ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>
template<typename InputType, typename OutputType>
OutputType
Special
Cast(const std::complex<InputType>& in, const OutputType& itkNotUsed(dummy))
Complex
Cast(const std::complex<InputType>& in, const OutputType& itkNotUsed(dummy))
{
typedef typename itk::NumericTraits<std::complex<InputType> >::RealType RealType;
typedef typename itk::NumericTraits<std::complex<InputType> >::ScalarRealType ScalarRealType;
...
...
@@ -610,7 +610,7 @@ SpecialCast(const std::complex<InputType>& in, const OutputType& itkNotUsed(dumm
template<typename InputType, typename OutputType>
std::complex<OutputType>
Special
Cast(const std::complex<InputType>& in, const std::complex<OutputType>& itkNotUsed(dummy))
Complex
Cast(const std::complex<InputType>& in, const std::complex<OutputType>& itkNotUsed(dummy))
{
typedef typename itk::NumericTraits<std::complex<InputType> >::RealType RealType;
typedef typename itk::NumericTraits<std::complex<InputType> >::ScalarRealType ScalarRealType;
...
...
@@ -635,7 +635,7 @@ ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>
while(inputData != endInput)
{
OutputConvertTraits::SetNthComponent(0, *outputData,
static_cast<OutputPixelType> (
Special
Cast(*inputData,dummy)));
static_cast<OutputPixelType> (
Complex
Cast(*inputData,dummy)));
inputData++;
outputData++;
}
...
...
@@ -777,7 +777,7 @@ ConvertPixelBuffer<InputPixelType, OutputPixelType, OutputConvertTraits>
for( size_t i=0; i< length; i++ )
{
OutputConvertTraits::SetNthComponent( 0, *outputData,
Special
Cast(*inputData, dummy));
Complex
Cast(*inputData, dummy));
++outputData;
++inputData;
}
...
...
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