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
Sean Fitzgibbon
SlideR 🍔
Commits
2706bbe5
Commit
2706bbe5
authored
Feb 09, 2022
by
Sean Fitzgibbon
Browse files
removed test
parent
7349cde7
Changes
1
Hide whitespace changes
Inline
Side-by-side
slider/chart_reg.py
View file @
2706bbe5
...
...
@@ -95,12 +95,6 @@ def register_chart_to_slide(
hull
=
ConvexHull
(
edge_crds_cat
)
edge_crds_cat
=
np
.
concatenate
([
edge_crds_cat
[
simplex
,:]
for
simplex
in
hull
.
simplices
],
axis
=
0
)
# this tests for any point neighbours that are identical and discards them
# it stops there being nans later when calculating the norms
# there must be a better way to fix this, but this works for now
zeroidx
=
np
.
all
(
np
.
roll
(
edge_crds_cat
,
1
,
axis
=
0
)
-
np
.
roll
(
edge_crds_cat
,
-
1
,
axis
=
0
)
==
0
,
axis
=
1
)
edge_crds_cat
=
edge_crds_cat
[
~
zeroidx
]
# load slide, convert to grayscale, and invert if light-field
slide_res
=
slide_res
*
(
2
**
rlevel
)
...
...
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