moduleĀ pixeltable.functions.image
Pixeltable UDFs forImageType.
Example:
udfĀ alpha_composite()
im2 over im1.
Equivalent to PIL.Image.alpha_composite()
udfĀ b64_encode()
img(Image): imageimage_format(String): image format supported by PIL
udfĀ blend()
PIL.Image.blend()
udfĀ composite()
PIL.Image.composite()
udfĀ convert()
PIL.Image.Image.convert().
Parameters:
mode(String): The mode to convert to. See the Pillow documentation for a list of supported modes.
udfĀ crop()
PIL.Image.Image.crop()
udfĀ effect_spread()
PIL.Image.Image.effect_spread()
Parameters:
distance(Int): The distance to spread pixels.
udfĀ entropy()
PIL.Image.Image.entropy()
Parameters:
mask(Image | None): An optional mask image.extrema(Json | None): An optional list of extrema.
udfĀ get_metadata()
udfĀ getbands()
PIL.Image.Image.getbands()
udfĀ getbbox()
PIL.Image.Image.getbbox()
Parameters:
alpha_only(Bool): IfTrue, and the image has an alpha channel, trim transparent pixels. Otherwise, trim pixels when all channels are zero.
udfĀ getchannel()
PIL.Image.Image.getchannel()
Parameters:
channel(Int): The channel to extract. This is a 0-based index.
udfĀ getcolors()
maxcolors.
Equivalent to
PIL.Image.Image.getcolors()
Parameters:
maxcolors(Int): The maximum number of colors to return.
udfĀ getextrema()
PIL.Image.Image.getextrema()
udfĀ getpalette()
PIL.Image.Image.getpalette()
Parameters:
mode(String | None): The mode to convert the palette to.
udfĀ getpixel()
xy is a tuple containing the x and y coordinates.
Equivalent to
PIL.Image.Image.getpixel()
Parameters:
xy(Json): The coordinates, given as (x, y).
udfĀ getprojection()
PIL.Image.Image.getprojection()
udfĀ height()
udfĀ histogram()
PIL.Image.Image.histogram()
Parameters:
mask(Image | None): An optional mask image.extrema(Json | None): An optional list of extrema.
udfĀ mode()
udfĀ point()
PIL.Image.Image.point()
Parameters:
lut(Json): A lookup table.
udfĀ quantize()
PIL.Image.Image.quantize()
Parameters:
colors(Int): The number of colors to quantize to.method(Int | None): The quantization method. See the Pillow documentation for a list of supported methods.kmeans(Int): The number of k-means clusters to use.palette(Image | None): The palette to use.dither(Int): The dithering method. See the Pillow documentation for a list of supported methods.
udfĀ reduce()
PIL.Image.Image.reduce()
Parameters:
factor(Int): The reduction factor.box(Json | None): An optional 4-tuple of ints providing the source image region to be reduced. The values must be within (0, 0, width, height) rectangle. If omitted or None, the entire source is used.
udfĀ resize()
PIL.Image.Image.resize()
udfĀ rotate()
PIL.Image.Image.rotate()
Parameters:
angle(Int): The angle to rotate the image, in degrees. Positive angles are counter-clockwise.
udfĀ transpose()
PIL.Image.Image.transpose()
Parameters:
method(Int): The transpose method. See the Pillow documentation for a list of supported methods.