You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

To use these functions, the Image Feature is required.

Fill(Image, Number)

 Fills the image with the given color

Example
SELECT fill(image, 0.5) FROM Stream


Inverse(Image)

Inverts the pixel values of the given image

Example
SELECT inverse(image) FROM Stream

 

Get(Image, Number, Number)

Return the value of the pixel at the given location

Example
SELECT get(image, 100, 100) FROM Stream

 

Set(Image, Number, Number, Number)

Set the pixel at the given location to the given value

Example
SELECT set(image, 100, 100, 0.5) FROM Stream

 

Rotate(Image, Number)

Rotates the image at the given angle in degree.

Example
SELECT rotate(image, 90.0) FROM Stream

 

Resize(Image, Number, Number)

Resize the image to the given width and height

Example
SELECT resize(image, 500, 500) FROM Stream

 

Sub(Image, Number, Number, Number, Number)

Returns a sub image at the given location and the given width and height.

Example
SELECT sub(image, 5, 5, 200, 200) FROM Stream

 

ToImage(Number, Number)

Creates a new image with the given width and height

Example
SELECT toImage(500, 500) FROM Stream

  • No labels