From 511658e5a259e8cb0a4511e784ce5267f343f37b Mon Sep 17 00:00:00 2001 From: epnev Date: Tue, 11 Jul 2017 12:17:54 +0100 Subject: [PATCH] fixed bug --- normcorre_batch.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/normcorre_batch.m b/normcorre_batch.m index 5e8cde7..721dd6b 100644 --- a/normcorre_batch.m +++ b/normcorre_batch.m @@ -299,7 +299,7 @@ shifts_temp(i,j,k,1) = output(3); shifts_temp(i,j,k,2) = output(4); diff_temp(i,j,k) = output(2); - if all([length(xx_s),length(yy_s),length(zz_s)] == 1) + if all([length(xx_s),length(yy_s),length(zz_s)] == 1) && strcmpi(options.shifts_method,'fft'); M_fin{i,j,k} = shift_reconstruct(Yt,shifts_temp(i,j,k,:),diff_temp(i,j,k),us_fac,Nr{i,j,k},Nc{i,j,k},Np{i,j,k},options.boundary,add_value); end end