Skip to content

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

@yanbin-niu

Description

@yanbin-niu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions