Skip to content

Commit

Permalink
Bug fix for 2-channel imaging data
Browse files Browse the repository at this point in the history
1/2 of imaging data was skipped before this fix for 2-channel data
  • Loading branch information
ryhattori authored Sep 26, 2023
1 parent 22fab00 commit 7cac630
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PatchWarp/patchwarp_affine.m
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ function patchwarp_affine(source_path, save_path, n_ch, align_ch, affine_norm_ra
end

% apply the warp to each file and save
n_ch = 1; % assuming that only 1 ch images were saved at rigid correction step
align_ch = 1; % assuming that only 1 ch images were saved at rigid correction step
if downsampled_nframes_used == 0
parfor i = 1:length(fns_tiff)
applywarp_Npatches(fns_tiff(i).name, fns_summary(i).name, source_path, save_path, align_ch, n_ch, warp_cell(:,:,i), transform, edge_remove_pix, nonzero_row, nonzero_column, qN_x, qN_y, warp_overlap_pix, warp_blocksize, network_temp_copy);
Expand Down

0 comments on commit 7cac630

Please sign in to comment.