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
Istvan N. Huszar, MD
tirl
Commits
442981c0
Commit
442981c0
authored
Jul 20, 2020
by
inhuszar
Browse files
MIND is default in site search. Bugfix: CLI sites.
parent
02977d83
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tirl/scripts/mnd/block_to_slice.py
View file @
442981c0
...
...
@@ -377,9 +377,9 @@ def jiggle(fixed, moving, cnf):
# Measure grid cost: find N best location + rotation parameters
# cost = CostMSD(moving, fixed, normalise=True)
#
cost = CostMIND(moving, fixed, normalise=
Fals
e, kernel=MK_FULL, sigma=1,
#
truncate=1.5)
cost
=
CostMI
(
moving
,
fixed
,
normalise
=
False
)
cost
=
CostMIND
(
moving
,
fixed
,
normalise
=
Tru
e
,
kernel
=
MK_FULL
,
sigma
=
1
,
truncate
=
1.5
)
#
cost = CostMI(moving, fixed, normalise=False)
gridcost
=
[]
for
y
in
yy
:
for
x
in
xx
:
...
...
@@ -590,7 +590,7 @@ def block_to_slice(args):
if
args
.
init
:
if
len
(
args
.
init
)
>
1
:
y
,
x
=
args
.
init
cnf
[
"regparams"
][
"sites"
]
=
np
.
atleast_2d
([
float
(
y
),
float
(
x
)])
cnf
[
"regparams"
][
"sites"
]
=
np
.
atleast_2d
([
float
(
y
),
float
(
x
)])
.
tolist
()
elif
os
.
path
.
isfile
(
args
.
init
[
0
]):
sites
=
np
.
loadtxt
(
args
.
init
[
0
])
cnf
[
"regparams"
][
"sites"
]
=
np
.
atleast_2d
(
sites
).
tolist
()
...
...
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