phenotypic.util.GridApply#

class phenotypic.util.GridApply(image_op: ImageOperation | ImagePipeline, reset_enh_matrix: bool = True)[source]#

Bases: object

Accepts a PhenoTypic operation as a parameter and applies it to the individual grid sectionss of an image.

Parameters:
  • image_op (ImageOperation) – A PhenoTypic operation to be applied to each grid section.

  • reset_enh_matrix (bool) – Whether to reset the enh_gray attribute of the image before applying the operation.

Methods

__init__

apply

apply(image: GridImage)[source]#
Parameters:

image (GridImage)