Commit 574e0817 authored by Andrei Roibu's avatar Andrei Roibu
Browse files

fixing cropping buggs

parent 58554941
...@@ -787,14 +787,14 @@ def _generate_target_volume(file_path, ...@@ -787,14 +787,14 @@ def _generate_target_volume(file_path,
volume = data_utils.load_and_preprocess_targets(file_path, cross_domain_x2x_flag, crop_flag=False) volume = data_utils.load_and_preprocess_targets(file_path, cross_domain_x2x_flag, crop_flag=False)
if mean_regression_flag == True: 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) volume = _regress_target(volume, subject, dmri_mean_mask_path, rsfmri_mean_mask_path, regression_factors, cross_domain_x2x_flag, mean_regression_all_flag, crop_flag=False)
elif mean_subtraction_flag == True: elif mean_subtraction_flag == True:
volume = _subtract_target(volume, subject, dmri_mean_mask_path, rsfmri_mean_mask_path, crop_flag, cross_domain_x2x_flag) volume = _subtract_target(volume, subject, dmri_mean_mask_path, rsfmri_mean_mask_path, cross_domain_x2x_flag, crop_flag=False)
return volume return volume
def _regress_target(volume, subject, dmri_mean_mask_path, rsfmri_mean_mask_path, regression_factors, crop_flag, cross_domain_x2x_flag, mean_regression_all_flag): def _regress_target(volume, subject, dmri_mean_mask_path, rsfmri_mean_mask_path, regression_factors, cross_domain_x2x_flag, mean_regression_all_flag, crop_flag=False):
""" Target Regression """ Target Regression
This function regresse the group mean from the target volume using the saved regression weights. This function regresse the group mean from the target volume using the saved regression weights.
...@@ -839,7 +839,7 @@ def _regress_target(volume, subject, dmri_mean_mask_path, rsfmri_mean_mask_path, ...@@ -839,7 +839,7 @@ def _regress_target(volume, subject, dmri_mean_mask_path, rsfmri_mean_mask_path,
return regressed_volume return regressed_volume
def _subtract_target(volume, subject, dmri_mean_mask_path, rsfmri_mean_mask_path, crop_flag, cross_domain_x2x_flag): def _subtract_target(volume, subject, dmri_mean_mask_path, rsfmri_mean_mask_path, cross_domain_x2x_flag, crop_flag=False):
""" Target Subtraction """ Target Subtraction
This function subtracts the group mean from the target volume using the saved regression weights. This function subtracts the group mean from the target volume using the saved regression weights.
......
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