dipy/viz/utils.py
def numpy_to_vtk_colors(colors):
    """ numpy color array to a vtk color array

    if colors are not already in UNSIGNED_CHAR
        you may need to multiply by 255.

    Example
    ----------
    >>>  vtk_colors = numpy_to_vtk_colors(255 * float_array)
    """
    vtk_colors = ns.numpy_to_vtk(np.asarray(colors), deep=True,
                                 array_type=vtk.VTK_UNSIGNED_CHAR)
    return vtk_colors
 numpy color array to a vtk color array

    if colors are not already in UNSIGNED_CHAR
        you may need to multiply by 255.

    Example
    ----------
    >>>  vtk_colors = numpy_to_vtk_colors(255 * float_array)
    
numpy color array to a vtk color array
if colors are not already in UNSIGNED_CHAR
you may need to multiply by 255.

Example


numpy color array to a vtk color array if colors are not already in UNSIGNED_CHAR you may need to multiply by 255 . Example
def numpy_to_vtk_colors(colors):
    vtk_colors = ns.numpy_to_vtk(np.asarray(colors), deep=True,
                                 array_type=vtk.VTK_UNSIGNED_CHAR)
    return vtk_colors
def numpy_to_vtk_colors ( colors ) : vtk_colors = ns . numpy_to_vtk ( np . asarray ( colors ) , deep = True , array_type = vtk . VTK_UNSIGNED_CHAR ) return vtk_colors
numpy color array to a vtk color array
if colors are not already in UNSIGNED_CHAR
you may need to multiply by 255.
numpy color array to a vtk color array if colors are not already in UNSIGNED_CHAR you may need to multiply by 255 .
""" numpy color array to a vtk color array

    if colors are not already in UNSIGNED_CHAR
        you may need to multiply by 255.

    Example
    ----------
    >>>  vtk_colors = numpy_to_vtk_colors(255 * float_array)
    """
colors