Commit b43012db authored by Andrei Roibu's avatar Andrei Roibu
Browse files

evaluating un-cropped images

parent ea89c4db
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment