Make Image
This function block creates a new image with the dimensions and fill color you provide. It is useful for generating test images, backgrounds, or canvas areas to draw on before further processing.
π₯ Inputs (sockets)
Width
Integer width of the output image in pixels.
Height
Integer height of the output image in pixels.
Color
Fill color for the image (pixel color). If no color is provided the image is created with a black background.
π€ Outputs (sockets)
Image Any
Generated image with the specified width, height and fill color.
πΉοΈ Controls
This function block has no additional GUI controls. Configure the output using the input sockets above.
π¨ Features
Quickly generate a blank image canvas of any size.
Optional color fill so the canvas can represent backgrounds, masks or reference fields.
Simple, deterministic output useful for testing downstream blocks.
π How to use
Provide a value to
WidthandHeightto define the canvas size.Optionally provide a value to
Colorto set the fill color.Use the
Image Anyoutput as input to other function blocks for visualization, annotation or processing.
π What it does when run
When evaluated, the block produces an image matching the requested dimensions. If a fill color is supplied the image will be uniformly filled with that color; otherwise the image will be blank (black).
π‘ Tips and Tricks
Preview the result by connecting the output to the
Show Imageblock.Create templates or backgrounds and then annotate them with
Draw Point,Draw RectangleorWrite Text On Image.Combine several generated images into a montage using
Collage Imagesor merge them withImage Concatenate.Make a canvas and then use
Image ResizeorImage Paddingto match target sizes for other processing blocks.Save generated images directly with
Image Writeor include them in recordings viaRecord Video.
π οΈ Troubleshooting
If the output looks empty, double-check that both
WidthandHeightare positive integers.If color does not appear as expected, verify the color input uses the expected color format for the system (provide an RGB/BGR pixel as required by downstream blocks).
If downstream blocks expect a different channel order or image depth, use
Color Space,Normalize Image, orImage Resizerto adapt the generated image before further processing.
Last updated
Was this helpful?