cvpy.image.NaturalImageTable.NaturalImageTable¶
- class cvpy.image.NaturalImageTable.NaturalImageTable(table: CASTable | None = None, image: str | None = None, dimension: str | None = None, resolution: str | None = None, imageFormat: str | None = None, path: str | None = None, label: str | None = None, id: str | None = None, size: str | None = None, type: str | None = None)¶
Implement natural image processing functions. A natural image is any photographic image that is not a biomedical image.
- Parameters:
- table:
Specifies the input table that contains image data.
- image:
Specifies the name of the column that contains image binaries.
- dimension:
Specifies the name of the column that contains dimensions of images.
- resolution:
Specifies the name of the column that contains resolutions of images.
- imageFormat:
Specifies the name of the column that contains formats of image binaries.
- path:
Specifies the name of the column that contains file paths.
- label:
Specifies the name of the column that contains labels of images.
- id:
Specifies the name of the variable that identifies each image.
- size:
Specifies the name of the column that contains byte lengths of image binaries.
- type:
Specifies the name of the column that contains the image type.
- Returns:
- __init__(table: CASTable | None = None, image: str | None = None, dimension: str | None = None, resolution: str | None = None, imageFormat: str | None = None, path: str | None = None, label: str | None = None, id: str | None = None, size: str | None = None, type: str | None = None) None ¶
Methods
__init__([table, image, dimension, ...])
as_dict()
Create a dictionary representation of this object.
from_table(cas_table[, image_type, image, ...])
Creates an ImageTable from a CASTable.
Check if this table contains decoded images or encoded images.
load(connection, path[, load_parms, ...])
Loads images in an ImageTable.
mask_image(mask[, decode, add_columns, ...])
Applies masking to an ImageTable.
validate_set_column(column, column_name, ...)
Attributes
BIOMED_IMAGE_FORMATS
CHAR_TYPE
DIMENSION_COL
FORMAT_COL
ID_COL
IMAGE_COL
INT64_TYPE
LABEL_COL
PATH_COL
RESOLUTION_COL
SIZE_COL
TYPE_COL
VARBINARY_IMAGE_TYPE
VARBINARY_TYPE
VARCHAR_TYPE
connection
dimension
id
image
imageFormat
label
path
resolution
size
table
type