Fork me on GitHub

pyhrf.surface module

pyhrf.surface.create_projection_kernels(input_mesh, output_kernel, resolution, geod_decay=5.0, norm_decay=2.0, size=7)
pyhrf.surface.extract_sub_mesh(cor, tri, center_node, radius)
pyhrf.surface.extract_sub_mesh_with_files(input_mesh, center_node, radius, output_mesh=None)
pyhrf.surface.mesh_contour(coords, triangles, labels)
pyhrf.surface.mesh_contour_with_files(input_mesh, input_labels, output_mesh=None, output_labels=None)

TODO: use nibabel here

pyhrf.surface.project_fmri(input_mesh, data_file, output_tex_file, output_kernels_file=None, data_resolution=None, geod_decay=5.0, norm_decay=2.0, kernel_size=7, tex_bin_threshold=None)
pyhrf.surface.project_fmri_from_kernels(input_mesh, kernels_file, fmri_data_file, output_tex, bin_threshold=None)