Skip to content

closest_simplified_direction_matrix bug + bounding box artifact #41

@stnava

Description

@stnava

def closest_simplified_direction_matrix(direction):
closest = (np.abs(direction) + 0.5).astype(int)
closest[direction < 0] *= -1.0
return closest

causes an error in some installations of python / numpy / tensorflow / antspynet ( can reproduced on ubuntu 18.04 with recent install )

the issue is in multiplying float with int. fixed with this ffe9b24:

    def closest_simplified_direction_matrix(direction):
        closest = (np.abs(direction) + 0.5).astype(int).astype(float)
        closest[direction < 0] *= -1.0
        return closest

looked at results and saw:

image

maybe multiply the output probabilities with brain mask after mapping back to original space?

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