Back to Adaptive Vision Library website

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

MakeImage


Converts a pixel array to a single-channel image.

Header:AVL.h

Syntax

C++
C#
 
void avl::MakeImage
(
	const atl::Array<avl::Pixel>& inPixels,
	const int inWidth,
	const int inHeight,
	avl::PlainType::Type inType,
	const int inDepth,
	avl::Image& outImage
)

Parameters

Name Type Range Default Description
inPixels const Array<Pixel>&
inWidth const int Output image width
inHeight const int Output image height
inType PlainType::Type UInt8 Output image pixel type
inDepth const int 1 - 4 Output image depth
outImage Image& Output image

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

Error type Description
DomainError Incorrect array size in MakeImage.
DomainError Not supported image type in MakeImage.