Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryhattori authored Aug 2, 2023
1 parent 806f481 commit 22fab00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PatchWarp/patchwarp_affine.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22fab00

Please sign in to comment.