cvpy.base.ImageTable.ImageTable¶
- class cvpy.base.ImageTable.ImageTable(table: CASTable, 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)¶
Base class for NaturalImageTable and BiomedImageTable classes.
- 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.
- __init__(table: CASTable, 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)¶
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.
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