SteenMoeller / NORDIC_Raw

Matlab code for performing image reconstruction in MRI and performing the NORDIC denoising
Other
55 stars 26 forks source link

NORDIC ERROR on few slices fMRI #2

Closed icaroafoliveira closed 3 years ago

icaroafoliveira commented 3 years ago

Dear NORDIC developers,

I am trying to run NORDIC on fMRI data (BOLD and VASO). I tried a couple of protocols, and in one of them, I found the following error.

Index in position 3 is invalid. Array indices must be positive integers or logical values.

function --> subfunction_loop_for_NVR_avg_update

line 866--> KSP2_tmp=KSP2a(:,[1:w2]+(n2-1),[1:w3]+(n3-1),:);

Apparently in the second loop, w3 ==> (ARG.kernel_size(3)) change to a number that is bigger than my # slices (12 slices).

Do you know what I can do to fix that?

Best regards,

Ícaro Oliveira

SteenMoeller commented 3 years ago

Dear Ícaro Oliveira

Thanks for trying the code, and sorry that your are having issues. I will update the code tomorrow when I am back from vacation. In the meantime, for a situation like this, one can manually specify the patch size. We use the guiding principle that the product of the three spatial dimensions should be 11 times the temporal dimension.

To specify manually the patch size, one can use ARG.kernel_size_PCA=[n1 n2 n3]

In your case, then n3=12, and n1 and n2 have to be selected such that roughly n1n2n3~= 11*temproal dimension We will incorporate this into the code, such that it happens automatically

Steen Steen

On Tue, Sep 7, 2021 at 8:28 AM Ícaro Oliveira @.***> wrote:

Dear NORDIC developers,

I am trying to run NORDIC on fMRI data (BOLD and VASO). I tried a couple of protocols, and in one of them, I found the following error.

Index in position 3 is invalid. Array indices must be positive integers or logical values.

function --> subfunction_loop_for_NVR_avg_update

line 866--> KSP2_tmp=KSP2a(:,[1:w2]+(n2-1),[1:w3]+(n3-1),:);

Apparently in the second loop, w3 ==> (ARG.kernel_size(3)) change to a number that is bigger than my # slices (12 slices).

Do you know what I can do to fix that?

Best regards,

Ícaro Oliveira

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SteenMoeller/NORDIC_Raw/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZJXPCXPTYHUPYTBJWOA63UAYHQTANCNFSM5DSMXMBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.