Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using nearpoints: First arg must be a real 3xM array. #355

Open
yanbin-niu opened this issue Sep 24, 2022 · 1 comment
Open

Error using nearpoints: First arg must be a real 3xM array. #355

yanbin-niu opened this issue Sep 24, 2022 · 1 comment

Comments

@yanbin-niu
Copy link

yanbin-niu commented Sep 24, 2022

Hi,

Hope all is well!

I am trying to use AFQ on the tractography generated by Mrtrix. I am stuck in an issue that I do not understand well:

Error using nearpoints
First arg must be a real 3xM array.

Error in dtiIntersectFibersWithRoi (line 156)
[~, bestSqDist{ii}] = nearpoints(fc', roiCoords{ii}');

Error in dtiSplitInterhemisphericFibers (line 67)
[fgToChop,contentiousFibers, keep] = dtiIntersectFibersWithRoi([], {'and'}, [], roi, fg);

Error in AFQ_SegmentFiberGroups (line 206)
fg = dtiSplitInterhemisphericFibers(fg, dt, -10);

The size(fc') is 3x854991991, and size(roiCoords{ii}') is 3x2590. So, I am clueless on why they are not a 3*M array. Please pardon me if this question is very basic.

Any thoughts/advice would be much appreciated! Thank you!!

Best,
Yanbin

@yanbin-niu
Copy link
Author

It seems that the nearpoints need inputs to be double, and the problem should be solved here (convert the single to double for inputs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant