Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lozac'h Loic
otbtf
Commits
2c4508ef
Commit
2c4508ef
authored
Nov 10, 2018
by
Cresson Remi
Browse files
FIX: req region outside largest region issue
parent
45da06b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/otbTensorflowMultisourceModelFilter.hxx
View file @
2c4508ef
...
...
@@ -339,7 +339,13 @@ TensorflowMultisourceModelFilter<TInputImage, TOutputImage>
{
int
valToPad
=
1
+
(
this
->
GetOutputExpressionFields
().
at
(
0
)[
dim
]
-
1
)
*
m_OutputSpacingScale
*
this
->
GetInput
(
0
)
->
GetSpacing
()[
dim
]
/
this
->
GetInput
(
i
)
->
GetSpacing
()[
dim
]
;
if
(
valToPad
>
toPad
[
dim
])
itkExceptionMacro
(
"The input requested region of image #"
<<
i
<<
" is not consistent. Please check RF, EF, SF vs physical spacing."
);
itkExceptionMacro
(
"The input requested region of source #"
<<
i
<<
" is not consistent (dim "
<<
dim
<<
")."
<<
"Please check RF, EF, SF vs physical spacing of your image!"
<<
"
\n
Receptive field: "
<<
this
->
GetInputReceptiveFields
().
at
(
i
)[
dim
]
<<
"
\n
Expression field: "
<<
this
->
GetOutputExpressionFields
().
at
(
0
)[
dim
]
<<
"
\n
Scale factor: "
<<
m_OutputSpacingScale
<<
"
\n
Reference image spacing: "
<<
this
->
GetInput
(
0
)
->
GetSpacing
()[
dim
]
<<
"
\n
Image "
<<
i
<<
" spacing: "
<<
this
->
GetInput
(
i
)
->
GetSpacing
()[
dim
]);
toPad
[
dim
]
-=
valToPad
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment