Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NORMLIM_sigma0
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
s1-tiling
NORMLIM_sigma0
Commits
0661f6ff
Commit
0661f6ff
authored
2 years ago
by
Luc Hermitte
Browse files
Options
Downloads
Patches
Plain Diff
REFACT: Simplify and clean logs
parent
05c7e331
No related branches found
No related tags found
1 merge request
!1
Resolve "Adapt DiapOTB SARCartesianMeanEstimation to keep shadows"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/otbSARDEMPolygonsAnalysisImageFilter2.hxx
+9
-8
9 additions, 8 deletions
include/otbSARDEMPolygonsAnalysisImageFilter2.hxx
with
9 additions
and
8 deletions
include/otbSARDEMPolygonsAnalysisImageFilter2.hxx
+
9
−
8
View file @
0661f6ff
...
...
@@ -311,8 +311,8 @@ SARDEMPolygonsAnalysisImageFilter< TImageIn, TImageOut, TImageDEM, TImageSAR, TF
// Origin, Spacing and Size (SAR image geometry) in function of ML factors
ImageOutSizeType
outputSize
;
outputSize
[
0
]
=
std
::
max
<
ImageOutSizeValueType
>
(
static_cast
<
ImageOutSizeValueType
>
(
std
::
floor
(
(
double
)
m_NbColSAR
/
(
double
)
m_MLRan
)
)
,
1
);
outputSize
[
1
]
=
std
::
max
<
ImageOutSizeValueType
>
(
static_cast
<
ImageOutSizeValueType
>
(
std
::
floor
(
(
double
)
m_NbLinesSAR
/
(
double
)
m_MLAzi
)
)
,
1
);
outputSize
[
0
]
=
std
::
max
<
ImageOutSizeValueType
>
(
std
::
floor
(
(
double
)
m_NbColSAR
/
m_MLRan
),
1
);
outputSize
[
1
]
=
std
::
max
<
ImageOutSizeValueType
>
(
std
::
floor
(
(
double
)
m_NbLinesSAR
/
m_MLAzi
),
1
);
ImageOutPointType
outOrigin
=
m_SarImagePtr
->
GetOrigin
();
ImageOutSpacingType
outSP
=
m_SarImagePtr
->
GetSignedSpacing
();
...
...
@@ -1017,8 +1017,8 @@ SARDEMPolygonsAnalysisImageFilter< TImageIn, TImageOut, TImageDEM, TImageSAR, TF
// The Projeted DEM Pixel/Bands is always into SAR geometry => must be adapted for mlRan and mlAzi != 1
// If mlRan and mlAzi == 1 same as SAR geometry (loop on ind_Line_start=ind_Line only)
int
ind_Line_start
=
OutIt
.
GetIndex
()[
1
]
*
m_MLAzi
+
int
(
origin
[
1
]);
int
ind_Line_end
=
(
OutIt
.
GetIndex
()[
1
]
+
1
)
*
m_MLAzi
+
int
(
origin
[
1
]);
int
ind_Line_start
=
OutIt
.
GetIndex
()[
1
]
*
m_MLAzi
+
int
(
origin
[
1
]);
int
ind_Line_end
=
(
OutIt
.
GetIndex
()[
1
]
+
1
)
*
m_MLAzi
+
int
(
origin
[
1
]);
if
(
ind_Line_end
>
(
m_NbLinesSAR
+
int
(
origin
[
1
])))
{
ind_Line_end
=
m_NbLinesSAR
+
int
(
origin
[
1
]);
...
...
@@ -1321,10 +1321,11 @@ SARDEMPolygonsAnalysisImageFilter< TImageIn, TImageOut, TImageDEM, TImageSAR, TF
progress
.
CompletedPixel
();
// Completed...Line()
}
// End lines (Main output)
std
::
cout
<<
"IN VS OUT: "
<<
cpt_in_window
<<
" VS "
<<
cpt_out_window
<<
" / "
<<
(
cpt_out_window
+
cpt_in_window
)
<<
" ; lines w/o match: "
<<
cpt_lines_with_no_match
<<
" / "
<<
nbDEMLines
<<
std
::
endl
;
otbMsgDevMacro
(
"IN VS OUT: "
<<
cpt_in_window
<<
" VS "
<<
cpt_out_window
<<
" / "
<<
(
cpt_out_window
+
cpt_in_window
)
<<
" ; lines w/o match: "
<<
cpt_lines_with_no_match
<<
" / "
<<
nbDEMLines
);
}
}
/*namespace otb*/
...
...
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