rhodricusack / diffeomorph

6 stars 12 forks source link

Errors in diffeomorphing #5

Open MauraSimio opened 1 year ago

MauraSimio commented 1 year ago

Hi,

I am trying to run your code on Matlab to diffeomorph some .jpg files for an fMRI task. However, I get this error

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

Error in diffeomorphic (line 63) Im((x1+1):(x1+Psz(1)),(y1+1):(y1+Psz(2)),:)=P;**

Since I am new to Matlab, can you give me a hint on how to make it work? Thank you so much :)

rhodricusack commented 1 year ago

I think maybe it can't find you image file?


From: MauraSimio @.> Sent: Tuesday 11 April 2023 13:33 To: rhodricusack/diffeomorph @.> Cc: Subscribed @.***> Subject: [rhodricusack/diffeomorph] Errors in diffeomorphing (Issue #5)

Hi,

I am trying to run your code on Matlab to diffeomorph some .jpg files for an fMRI task. However, I get this error

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

Error in diffeomorphic (line 63) Im((x1+1):(x1+Psz(1)),(y1+1):(y1+Psz(2)),:)=P;**

Since I am new to Matlab, can you give me a hint on how to make it work? Thank you so much :)

— Reply to this email directly, view it on GitHubhttps://github.com/rhodricusack/diffeomorph/issues/5, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAL7HSPOINNMQLTLUTAXQ33XAVFRHANCNFSM6AAAAAAW2GXYRI. You are receiving this because you are subscribed to this thread.Message ID: @.***>