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
Container Registry
Model registry
Operate
Environments
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
Antoine Belvire
otb
Commits
517c8536
Commit
517c8536
authored
15 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
WRG: signed/unsigned comparison
parent
76ba84ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/BasicFilters/otbMeanShiftImageFilter.txx
+22
-14
22 additions, 14 deletions
Code/BasicFilters/otbMeanShiftImageFilter.txx
with
22 additions
and
14 deletions
Code/BasicFilters/otbMeanShiftImageFilter.txx
+
22
−
14
View file @
517c8536
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt 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.
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 __otbMeanShiftImageFilter_txx
#define __otbMeanShiftImageFilter_txx
...
...
@@ -225,7 +226,10 @@ MeanShiftImageFilter<TInputImage,TOutputImage,TLabeledOutput,TBufferConverter>
index+=inputPtr->GetNumberOfComponentsPerPixel();
}
edisonProcessor.DefineLInput(data,inputRequestedRegion.GetSize()[1],inputRequestedRegion.GetSize()[0],inputPtr->GetNumberOfComponentsPerPixel());
edisonProcessor.DefineLInput(data,
inputRequestedRegion.GetSize()[1],
inputRequestedRegion.GetSize()[0],
inputPtr->GetNumberOfComponentsPerPixel());
//define default kernel paramerters...
kernelType k[2] = {Uniform, Uniform};
...
...
@@ -311,7 +315,10 @@ MeanShiftImageFilter<TInputImage,TOutputImage,TLabeledOutput,TBufferConverter>
index+=outputPtr->GetNumberOfComponentsPerPixel();
}
edisonProcessor.DefineLInput(data,outputRequestedRegion.GetSize()[1],outputRequestedRegion.GetSize()[0],outputPtr->GetNumberOfComponentsPerPixel());
edisonProcessor.DefineLInput(data,
outputRequestedRegion.GetSize()[1],
outputRequestedRegion.GetSize()[0],
outputPtr->GetNumberOfComponentsPerPixel());
// define default kernel paramerters...
kernelType k[2] = {Uniform, Uniform};
...
...
@@ -377,11 +384,12 @@ MeanShiftImageFilter<TInputImage,TOutputImage,TLabeledOutput,TBufferConverter>
typename LabeledOutputType::IndexType boundIndex;
for (LabelType label = 0; label < numRegions; ++label)
for (LabelType label = 0;
static_cast<unsigned int>(
label
)
< numRegions; ++label)
{
OutputPixelType pixel;
TBufferConverter::FloatArrayToPixel(modes,static_cast<unsigned int>(label*clusteredOutputPtr->GetNumberOfComponentsPerPixel()),
pixel,clusteredOutputPtr->GetNumberOfComponentsPerPixel(),invScale);
TBufferConverter::FloatArrayToPixel(modes,
static_cast<unsigned int>(label*clusteredOutputPtr->GetNumberOfComponentsPerPixel()),
pixel,clusteredOutputPtr->GetNumberOfComponentsPerPixel(),invScale);
// Filling the modes map
m_Modes[label]=pixel;
regionIndeces = regionList->GetRegionIndeces(static_cast<int>(label));
...
...
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