Skip to content

strange behavior for intersection #77

@skoudoro

Description

@skoudoro

Hi @frheault and trx team,

I was working on the migration of validate_tractogram to DIPY (trying to understand the logic) and it seems that the option remove_identical_streamlines is not working as expected.

Looking deeper, it seems that intersection ignore flipped streamline. here an exemple:

arr = np.arange(90).reshape((30, 3))
stream = [np.flipud(arr), arr]
stream2 = [arr + 1, np.flipud(arr) + 1]

res, indices_uniq = perform_streamlines_operation(intersection, [stream, stream2])

I was expecting some results but I got ([], array([], dtype=uint32))

I do not understand anymore why I got a result when I do res, indices_uniq = perform_streamlines_operation(intersection, [stream])

Why the input should be a list of tractogram and not just one tractogram? (concatenate tractogram could be use if people want multiple tractogram in one).

Thank you in advance for the clarification

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