Back to Adaptive Vision Library website

You are here: Start » Function Reference » Image Basics » EmptyImage

EmptyImage


Creates a uniform image.

Header:AVL.h

Syntax

C++
C#
 
void avl::EmptyImage
(
	const int inWidth,
	const int inHeight,
	const avl::Pixel& inColor,
	const int inChannels,
	const avl::PlainType::Type& inPixelType,
	avl::Image& outImage
)

Parameters

Name Type Range Default Description
inWidth const int 1 - 65536 320 Width of the created image
inHeight const int 1 - 65536 240 Height of the created image
inColor const Pixel& Color of all pixels of the created image
inChannels const int 1 - 4 3 Number of channels
inPixelType const PlainType::Type& UInt8
outImage Image& Output image

Description

The operation produces an empty image of desired dimensions and color.

Examples

EmptyImage run with default parameters produces 320x240 black image.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.