DevolvePointList#
Converts point data into a devolved or smeared out image for visulalization and analysis purposes.
Note
This is effecitively blurring with a specified kernel.
- devolve(source, sink=None, shape=None, dtype=None, weights=None, indices=None, kernel=None, processes=None, verbose=False)[source]#
Converts a list of points into an volumetric image array.
Arguments
- sourcestr, array or Source
Source of point of nxd coordinates.
- sinkstr, array or None
The sink for the devolved image, if None return array.
- shapetuple, str or None
Shape of the final devolved data. If None, determine from points. If str, determine shape from the source at the specified location.
- dtypedtype or None
Optional data type of the sink.
- weightsarray or None
Weight array of length n for each point. If None, use uniform weights.
- methodstr
Method for voxelization: ‘sphere’, ‘rectangle’ or ‘pixel’.
- indicesarray
The relative indices to the center to devolve over as nxd array.
- kernelarray
Optional kernel weights for each index in indices.
- processesint or None
Number of processes to use.
- verbosebool
If True, print progress info.
Returns
- sinkstr, array
Volumetric data of devolved point data.