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
90138f20
"README.md" did not exist on "546ed0498d45b8970390e5ddb691b76225bafc8a"
Commit
90138f20
authored
13 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
BUG: fix crash in QL generation when input image size is inferior to ShrinkFactor
parent
f3825f88
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/BasicFilters/otbStreamingShrinkImageFilter.cxx
+3
-0
3 additions, 0 deletions
Code/BasicFilters/otbStreamingShrinkImageFilter.cxx
Code/BasicFilters/otbStreamingShrinkImageFilter.txx
+1
-1
1 addition, 1 deletion
Code/BasicFilters/otbStreamingShrinkImageFilter.txx
with
4 additions
and
1 deletion
Code/BasicFilters/otbStreamingShrinkImageFilter.cxx
+
3
−
0
View file @
90138f20
...
...
@@ -42,6 +42,9 @@ StreamingShrinkImageRegionSplitter
m_SplitsPerDimension
[
0
]
=
(
regionSize
[
0
]
+
m_TileDimension
-
1
)
/
m_TileDimension
;
m_SplitsPerDimension
[
1
]
=
regionSize
[
1
]
/
m_TileSizeAlignment
;
if
(
m_SplitsPerDimension
[
1
]
==
0
)
m_SplitsPerDimension
[
1
]
=
1
;
unsigned
int
numPieces
=
1
;
for
(
unsigned
int
j
=
0
;
j
<
ImageDimension
;
++
j
)
{
...
...
This diff is collapsed.
Click to expand it.
Code/BasicFilters/otbStreamingShrinkImageFilter.txx
+
1
−
1
View file @
90138f20
...
...
@@ -133,7 +133,7 @@ PersistentShrinkImageFilter<TInputImage, TOutputImage>
for (unsigned int i = 0; i < OutputImageType::ImageDimension; ++i)
{
shrinkedOutputSpacing[i] = inputSpacing[i] * static_cast<double>(m_ShrinkFactor);
shrinkedOutputSize[i] = inputSize[i] / m_ShrinkFactor;
shrinkedOutputSize[i] = inputSize[i]
> m_ShrinkFactor ? inputSize[i]
/ m_ShrinkFactor
: 1
;
// TODO : don't know what to do here.
// dividing the input index by the shrink factor does not make a lot of sense...
...
...
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