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
6ccc3a89
Commit
6ccc3a89
authored
15 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Plain Diff
MRG
parents
7326cdcf
512242d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Visualization/otbImageLayer.h
+1
-5
1 addition, 5 deletions
Code/Visualization/otbImageLayer.h
Code/Visualization/otbImageLayer.txx
+4
-4
4 additions, 4 deletions
Code/Visualization/otbImageLayer.txx
with
5 additions
and
9 deletions
Code/Visualization/otbImageLayer.h
+
1
−
5
View file @
6ccc3a89
...
...
@@ -254,11 +254,7 @@ private:
/** General info about the image*/
std
::
string
m_PlaceName
;
//FIXME the call should be done by a more general method outside of the layer
std
::
string
m_CountryName
;
//which would also handle the dependance
//to curl
/** Max list sample size */
unsigned
int
m_MaxListSampleSize
;
std
::
string
m_CountryName
;
//which would also handle the dependance to curl
};
// end class
}
// end namespace otb
...
...
This diff is collapsed.
Click to expand it.
Code/Visualization/otbImageLayer.txx
+
4
−
4
View file @
6ccc3a89
...
...
@@ -18,7 +18,7 @@
#ifndef __otbImageLayer_txx
#define __otbImageLayer_txx
#include "itkImageR
andomNonRepeating
ConstIterator
WithIndex
.h"
#include "itkImageR
egion
ConstIterator.h"
#include "otbMacro.h"
#include "otbI18n.h"
#include "itkTimeProbe.h"
...
...
@@ -37,7 +37,7 @@ template <class TImage, class TOutputImage>
ImageLayer<TImage,TOutputImage>
::ImageLayer() : m_Quicklook(), m_Image(), m_ListSample(), m_ListSampleProvided(false), m_RenderingFunction(),
m_QuicklookRenderingFilter(), m_ExtractRenderingFilter(), m_ScaledExtractRenderingFilter(),
m_ExtractFilter(), m_ScaledExtractFilter()
, m_MaxListSampleSize(2000)
m_ExtractFilter(), m_ScaledExtractFilter()
{
// Rendering filters
m_QuicklookRenderingFilter = RenderingFilterType::New();
...
...
@@ -214,7 +214,7 @@ ImageLayer<TImage,TOutputImage>
histogramSource->Update();
// Iterate on the image
itk::ImageR
andomNonRepeating
ConstIterator
WithIndex
<ImageType> it(histogramSource,histogramSource->GetBufferedRegion());
itk::ImageR
egion
ConstIterator<ImageType> it(histogramSource,histogramSource->GetBufferedRegion());
// declare a list to store the samples
m_ListSample->Clear();
...
...
@@ -224,7 +224,7 @@ ImageLayer<TImage,TOutputImage>
// Fill the samples list
it.GoToBegin();
while(!it.IsAtEnd()
&& m_ListSample->Size() < m_MaxListSampleSize
)
while(!it.IsAtEnd())
{
SampleType sample(sampleSize);
VisualizationPixelTraits::Convert( it.Get(), sample );
...
...
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