Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
arosics
Commits
3cb2bb3e
Commit
3cb2bb3e
authored
Jul 12, 2021
by
Daniel Scheffler
Browse files
COREG.show_matchWin() now also works when no valid shift was found yet.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
09a002ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
HISTORY.rst
View file @
3cb2bb3e
...
...
@@ -2,9 +2,15 @@
History
=======
1.4.
8
(
2021-07-06
)
1.4.
9
(
coming soon
)
-------------------
* COREG.show_matchWin() now also works when no valid shift was found yet.
1.4.8 (2021-07-06)
------------------
* Updated HISTORY.rst (closes #46).
* Updated minimal version of py_tools_ds which fixes #61 (Multiprocessing issue).
...
...
arosics/CoReg.py
View file @
3cb2bb3e
...
...
@@ -639,6 +639,11 @@ class COREG(object):
(default: 98)
:return:
"""
if
not
self
.
success
and
after_correction
in
[
True
,
None
]:
warnings
.
warn
(
'It is only possible to show the matching window before correction of spatial displacements '
'because no valid displacement has been calculated yet.'
)
after_correction
=
False
if
interactive
:
# use Holoviews
try
:
...
...
@@ -658,7 +663,7 @@ class COREG(object):
# renderer = hv.Store.renderers['matplotlib'].instance(fig='svg', holomap='gif')
# RasterPlot = renderer.plotting_class(hv.Image)
# RasterPlot.cmap = 'gray'
otherWin_corr
=
self
.
_get_deshifted_otherWin
()
otherWin_corr
=
self
.
_get_deshifted_otherWin
()
if
after_correction
in
[
True
,
None
]
else
None
xmin
,
xmax
,
ymin
,
ymax
=
self
.
matchBox
.
boundsMap
def
get_hv_image
(
geoArr
):
...
...
@@ -680,7 +685,7 @@ class COREG(object):
hvIm_matchWin
=
get_hv_image
(
self
.
matchWin
)
hvIm_otherWin_orig
=
get_hv_image
(
self
.
otherWin
)
hvIm_otherWin_corr
=
get_hv_image
(
otherWin_corr
)
hvIm_otherWin_corr
=
get_hv_image
(
otherWin_corr
)
if
after_correction
in
[
True
,
None
]
else
None
if
after_correction
is
None
:
# view both states
...
...
Write
Preview
Supports
Markdown
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