Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vasudevan, Rama K
pycroscopy
Commits
3e8f0ff2
Commit
3e8f0ff2
authored
Nov 20, 2017
by
Unknown
Browse files
Image Processing motif selection bugffix
parent
9bff0fee
Changes
1
Hide whitespace changes
Inline
Side-by-side
jupyter_notebooks/Image_Cleaning_Atom_Finding.ipynb
View file @
3e8f0ff2
...
...
@@ -708,11 +708,11 @@
#print("Setting motif with coordinates ({}, {})".format(current_center[0], current_center[1]))
axes
[
0
].
add_patch
(
patches
.
Rectangle
((
col
-
int
(
0.5
*
motif_win_size
),
row
-
int
(
0.5
*
motif_win_size
)),
motif_win_size
,
motif_win_size
,
fill
=
False
,
color
=
'black'
,
linewidth
=
2
))
motif_win_centers
.
append
((
current_center
[
0
],
current_center
[
1
]
))
motif_win_centers
.
append
((
row
,
col
))
cid
=
clean_img
.
figure
.
canvas
.
mpl_connect
(
'button_press_event'
,
move_zoom_box
)
cid2
=
motif_img
.
figure
.
canvas
.
mpl_connect
(
'button_press_event'
,
_motif_fine_select
)
add_motif_button
.
on_click
(
add_motif
)
```
...
...
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