pe.embedding.image.fld_inception module

class pe.embedding.image.fld_inception.FLDInception(res=None)[source]

Bases: Embedding

Compute the Inception embedding of images using FLD library.

__init__(res=None)[source]

Constructor.

Parameters:

res (int, optional) – The resolution of the images. The images will be resized to (res, res) before computing the embedding. If None, the images will not be resized. Defaults to None

compute_embedding(data)[source]

Compute the Inception embedding of images.

Parameters:

data (pe.data.Data) – The data object containing the images

Returns:

The data object with the computed embedding

Return type:

pe.data.Data

pe.embedding.image.fld_inception.to_uint8(x, min, max)[source]