cvpy.biomedimage.BiomedImageTable.BiomedImageTable.morphological_gradient

BiomedImageTable.morphological_gradient(kernel_width: int = 3, kernel_height: int = 3, copy_vars: List[str] | None = None, output_table_parms: Dict[str, str] | None = None)

Compute the morphological gradient for each 3D grayscale image in this BiomedImageTable.

Parameters:
kernel_width:class:’int’

Specifies the kernel width.

kernel_height:class:’int’

Specifies the kernel height.

copy_vars:class:’List[str]’

Specifies which columns to copy to the output image table.

output_table_parms:class:’Dict[str,str]’

Specifies the parameters in the output image table.

Returns:
:class:’cvpy.biomedimage.BiomedImageTable’

Examples

>>> # Import classes
>>> from swat import CAS
>>> from cvpy.biomedimage.BiomedImageTable import BiomedImageTable
>>> from cvpy.biomedimage.LabelConnectivity import LabelConnectivity
>>> ## Connect to CAS
>>> s = CAS("example.com", 5570)
>>> # Construct table to be passed to the morphological_gradient API
>>> image_table = s.CASTable(...)
>>> # Construct Biomed object
>>> biomed = BiomedImageTable(image_table)
>>> # Call the API
>>> output_table = biomed.morphological_gradient(kernel_width,...)