MeasureRadius#

Measures intensity decays at spcified points in the data.

measure_radius(source, points, fraction=None, value=None, max_radius=100, method='sphere', default=inf, scale=None, return_radii=True, return_radii_as_scalar=True, return_indices=False, processes=None, verbose=False)[source]#

Measures a radius via decay of intensity values for a list of points.

Arguments

sourcearray

Source for measurement.

pointsarray

List of indices to measure radis for.

fractionfloat or None

Fraction of center intensity that needs to be reached to detemrine the radius. If None, value needs to be given.

valuearray or float or None:

The value below which the inensity has to fall to measure the radius from the center pixel. For array, it has to be the same size as the points. If None, fraction has to be given.

max_radiusint or tuple of ints

The maximal pixel radius to consider in each dimension. The larger, the slower the measurement.

defaultnumber or None

Default value to use if no radius was detected.

scale: tuple or float

An optional scale in each direction to determine the distance.

return_radiibool

If True, return the radii measured.

return_radii_as_scalarbool

If True, returnt the radii as single floats, otherwise a radius for each dimension.

return_indicesbool

If True, return the indices of the search which allows to idenitfy the pixel at which the radius condition was met.

processesint or None

Number of processes to use.

verbosebool

If True, print progress info.

Returns

radiiarray

Array of measured radii if return_radii is True.

indicesarray

Array of measured indices at which the radius detrection condition is met.

search_indices_rectangle(radius)[source]#

Creates all relative indices within a rectangle.

Arguments

radiustuple or float

Radius of the sphere of the search index list.

Returns

indicesarray

Array of ints of relative indices for the search area voxels.

search_indices_sphere(radius)[source]#

Creates all relative indices within a sphere of specified radius in an array with specified strides.

Arguments

radiustuple of int

Radius of the sphere of the search index list.

Returns

indicesarray

Array of ints of relative indices for the search area voxels.

test()[source]#