Morphology

Functions:

fractal_dimension_gray(roi, intensity[, ...])

Computes the fractal dimenison based on the differential box counting method

regionprops(label_image[, intensity_image])

Extended regionprops function adding our own props

cell_analysis_tools.morphology.fractal_dimension_gray(roi, intensity, mode='standard', debug=False)[source]

Computes the fractal dimenison based on the differential box counting method

Parameters:
  • roi (ndarray) – labels image.

  • intensity (ndarray) – intensity image .

  • mode (str, optional) – Choose the differential box counting method “Standard” will keep intensities in place “Shifting” will begin box counting method with bottom of first box at the min grayscale value. The default is “standard”.

  • debug (bool, optional) – Show debugging in formation. The default is False.

Returns:

D – fractal dimension.

Return type:

float

cell_analysis_tools.morphology.regionprops(label_image, intensity_image=None)[source]

Extended regionprops function adding our own props

To see a complete docstring for this function see regionprops skimage.

Notes

Additional properties that can be accessed as attributes or keys:

radius_maxfloat

The maximum distance of any pixel in the segmented region to the closest background pixel.

radius_meanfloat

Mean value the distances of all pixels in the segmented region to their closest background pixel.

radius_medianfloat

Median value the distances of all pixels in the segmented region to their closest background pixel.

intensity_sum

The sum of the pixel intensities within the segmented region.

fractal_dimensionfloat

Fractal dimension, differential box counting method implementation