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
Andrei-Claudiu Roibu
BrainMapper
Commits
b43012db
Commit
b43012db
authored
Sep 08, 2020
by
Andrei Roibu
Browse files
evaluating un-cropped images
parent
ea89c4db
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/data_evaluation_utils.py
View file @
b43012db
...
...
@@ -182,6 +182,9 @@ def evaluate_data(trained_model_path,
cross_domain_x2x_flag
,
cross_domain_y2y_flag
)
if
crop_flag
==
True
:
predicted_volume
=
roi
(
Image
(
predicted_volume
,
header
=
header
),
((
-
9
,
82
),(
-
10
,
99
),(
0
,
91
))).
data
target_volume
=
_generate_target_volume
(
file_path
,
subject
,
dmri_mean_mask_path
,
...
...
@@ -781,7 +784,7 @@ def _generate_target_volume(file_path,
volume (np.array): Array containing the information regarding the target volume
"""
volume
=
data_utils
.
load_and_preprocess_targets
(
file_path
,
crop_flag
,
cross_domain_x2x_flag
)
volume
=
data_utils
.
load_and_preprocess_targets
(
file_path
,
crop_flag
=
False
,
cross_domain_x2x_flag
)
if
mean_regression_flag
==
True
:
volume
=
_regress_target
(
volume
,
subject
,
dmri_mean_mask_path
,
rsfmri_mean_mask_path
,
regression_factors
,
crop_flag
,
cross_domain_x2x_flag
,
mean_regression_all_flag
)
...
...
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