diff --git a/PatchWarp/patchwarp_affine.m b/PatchWarp/patchwarp_affine.m index 48f35d8..43cbc17 100644 --- a/PatchWarp/patchwarp_affine.m +++ b/PatchWarp/patchwarp_affine.m @@ -52,10 +52,10 @@ function patchwarp_affine(source_path, save_path, n_ch, align_ch, affine_norm_ra % transform = 'affine'; disp('Loading downsampled_perstack file...') -[stack_downsampled_perstack, info_downsampled_perstack] = read_tiff(fn_downsampled_perstack, align_ch, 1, network_temp_copy); +[stack_downsampled_perstack, info_downsampled_perstack] = read_tiff(fn_downsampled_perstack, 1, 1, network_temp_copy); if ismatrix(stack_downsampled_perstack) downsampled_nframes_used = 1; % downsampled_[frame_num].tif is used instead of downsampled_perstack.tif if there is only 1 tiff stack file. - [stack_downsampled_perstack, ~] = read_tiff(fullfile(source_path,'downsampled',fn_downsampled_name), align_ch, 1, network_temp_copy); + [stack_downsampled_perstack, ~] = read_tiff(fullfile(source_path,'downsampled',fn_downsampled_name), 1, 1, network_temp_copy); else downsampled_nframes_used = 0; end