Functions | |
image | CopyImg (image Img) |
Creates a copy of an image. | |
list | DrawImg (scalar X, scalar Y, scalar Z, string Filename) |
Loads an image file and displays it. | |
list | DrawImg (multivector P, string Filename) |
Loads an image file and displays it. | |
void | EnableImgTransparency (counter DoEnable) |
Enables or disables transparency in images. | |
list | GetImgCoords (image P) |
Get world (visualization) coordinates of an image. | |
matrix | Img2Matrix (image P, scalar channel) |
Convert an image to a matrix representation. | |
void | InsertImg (image imgTarget, image imgSource, counter iX, counter iY, counter iTC, counter iSC) |
Insert an image into another one. | |
image | Matrix2Img (list M, list C) |
Compute color image out of up to three matrices. | |
image | Matrix2Img (matrix M) |
Convert matrix to greyscale image. | |
image | ReadImg (string Filename) |
Loads an image file. | |
void | ReshapeImg (image Img, counter iWidth, counter iHeight, color colClear) |
Resizes the image canvas. | |
void | ResizeImg (image Img, counter iWidth, counter iHeight) |
Resize an image. | |
void | SetImgAlign (scalar X, scalar Y) |
Sets the alignment of an image relative to the point where it should be drawn. | |
void | SetImgPos (multivector P) |
Set origin position for images. | |
void | SetImgPos (scalar X, scalar Y, scalar Z) |
Set origin position for images. | |
void | SetImgScale (scalar Scale) |
Sets the scale with which images are drawn. | |
void | SetImgTransparentColor (color Col) |
Sets the transparent color for images. | |
list | Size (image P) |
Returns the dimension of an image. |
I
is an image variable, you can extract the part of the image starting at coordinates x
and y
with width w
and height h
via I(x, y, w, h)
.
|
Creates a copy of an image.
|
|
Loads an image file and displays it.
|
|
Loads an image file and displays it.
|
|
Enables or disables transparency in images.
|
|
Get world (visualization) coordinates of an image.
|
|
Convert an image to a matrix representation.
|
|
Insert an image into another one.
ExampleScripts/Images/ImageEx9.clu . |
|
Compute color image out of up to three matrices.
? C = Matrix( [0,1,2,3,4,5,6,7,8,9] ); C = C * ~C / 81; // Get a square matrix L1 = C(1,1,5,5); // extract three submatrices L2 = C(4,4,5,5); L3 = C(6,6,5,5); SetImgScale( 50 ); :Matrix2Img( [ L1,L2,L3 ], [1,3,2] ); // :Matrix2Img( [ L1,L2 ], [1,3] ); Toggle the comments of the last two lines and see what happens. |
|
Convert matrix to greyscale image.
|
|
Loads an image file.
|
|
Resizes the image canvas.
ExampleScripts/Images/ImageEx8.clu . |
|
Resize an image.
ExampleScripts/Images/ImageEx8.clu . |
|
Sets the alignment of an image relative to the point where it should be drawn.
|
|
Set origin position for images.
|
|
Set origin position for images.
|
|
Sets the scale with which images are drawn.
|
|
Sets the transparent color for images.
|
|
Returns the dimension of an image.
Size is applied to an image the result will be a list of two scalars. The first represents the number of rows while the second represents the number of columns. For further information or an example see the Size function for matrices. Size applied to a scalar val is equivalent to ![]() |