neurolang.regions module

class neurolang.regions.ExplicitVBR(voxels, affine_matrix, image_dim=None, prebuild_tree=False)

Bases: VolumetricBrainRegion

Attributes:
aabb_tree
bounding_box
center
width

Methods

to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_xyz([affine])

return world coordinates of the region corresponding to the affine matrix transform

build_tree

from_spatial_image_label

generate_bounding_box

remove_empty_bounding_boxes

spatial_image

to_explicit_vbr

to_ijk_set

to_xyz_set

property aabb_tree
property bounding_box
build_tree()
generate_bounding_box(voxels_ijk)
spatial_image(out=None, value=1)
to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_xyz(affine=None)

return world coordinates of the region corresponding to the affine matrix transform

class neurolang.regions.ExplicitVBROverlay(voxels, affine_matrix, overlay, image_dim=None, prebuild_tree=False)

Bases: ExplicitVBR

Attributes:
aabb_tree
bounding_box
center
width

Methods

to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_xyz([affine])

return world coordinates of the region corresponding to the affine matrix transform

build_tree

from_spatial_image_label

generate_bounding_box

remove_empty_bounding_boxes

spatial_image

to_explicit_vbr

to_ijk_set

to_xyz_set

spatial_image(out=None, background_value=0)
class neurolang.regions.ImplicitVBR(lb, ub)

Bases: VolumetricBrainRegion

Attributes:
bounding_box
center
width

Methods

to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_xyz(affine)

return world coordinates of the region corresponding to the affine matrix transform

from_spatial_image_label

remove_empty_bounding_boxes

to_explicit_vbr

to_ijk_set

to_xyz_set

to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_xyz(affine)

return world coordinates of the region corresponding to the affine matrix transform

class neurolang.regions.PlanarVolume(origin, vector, direction=1, limit=1000)

Bases: ImplicitVBR

Attributes:
bounding_box
center
width

Methods

to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_xyz(affine)

return world coordinates of the region corresponding to the affine matrix transform

from_spatial_image_label

project_point_to_plane

remove_empty_bounding_boxes

to_explicit_vbr

to_ijk_set

to_xyz_set

property bounding_box
project_point_to_plane(point)
to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

class neurolang.regions.PointSet(points_ijk, affine_matrix, image_dim=None, prebuild_tree=False)

Bases: VolumetricBrainRegion

Attributes:
aabb_tree
bounding_box
center
width

Methods

to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_xyz([affine])

return world coordinates of the region corresponding to the affine matrix transform

build_tree

from_spatial_image_label

generate_bounding_box

remove_empty_bounding_boxes

spatial_image

to_explicit_vbr

to_ijk_set

to_xyz_set

property aabb_tree
property bounding_box
build_tree()
generate_bounding_box(points_ijk)
spatial_image(out=None, value=1)
to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_xyz(affine=None)

return world coordinates of the region corresponding to the affine matrix transform

class neurolang.regions.Region(lb, ub)

Bases: object

Attributes:
bounding_box
center
width

Methods

from_spatial_image_label

property bounding_box
property center
static from_spatial_image_label(spatial_image, label, **kwargs)
property width
class neurolang.regions.SphericalVolume(center, radius)

Bases: ImplicitVBR

Attributes:
bounding_box
center
radius
width

Methods

to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_xyz(affine)

return world coordinates of the region corresponding to the affine matrix transform

from_spatial_image_label

remove_empty_bounding_boxes

to_explicit_vbr

to_ijk_set

to_xyz_set

property bounding_box
property center
property radius
to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

class neurolang.regions.VolumetricBrainRegion(lb, ub)

Bases: Region

Attributes:
bounding_box
center
width

Methods

to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_xyz(affine)

return world coordinates of the region corresponding to the affine matrix transform

from_spatial_image_label

remove_empty_bounding_boxes

to_explicit_vbr

to_ijk_set

to_xyz_set

remove_empty_bounding_boxes()
to_explicit_vbr(affine, image_shape)
to_ijk(affine)

return ijk voxels coordinates corresponding to the affine matrix transform

to_ijk_set(affine)
to_xyz(affine)

return world coordinates of the region corresponding to the affine matrix transform

to_xyz_set(affine)
neurolang.regions.region_difference(region_set, affine=None)
neurolang.regions.region_intersection(region_set, affine=None)
neurolang.regions.region_set_from_masked_data(data, affine, dim)
neurolang.regions.region_union(region_set, affine=None)
neurolang.regions.take_principal_regions(region_set, k)