Back to FabImage Library website

You are here: Start » Function Reference » Image » Image Combinators » NthImage_OfArray

NthImage_OfArray


Header: FIL.h
Namespace: fil
Module: FoundationLite

For each pixel location, get value of n-th (increasing) pixel among input images.

Syntax

C++
C#
 
void fil::NthImage_OfArray
(
	const ftl::Array<fil::Image>& inImages,
	const ftl::Optional<const ftl::Array<fil::Region>&>& inSourceRois,
	int inN,
	bool inReverse,
	fil::Image& outImage
)

Parameters

Name Type Default Description
Input value inImages const Array<Image>&
Input value inSourceRois const Optional<const Array<Region>&>& NIL
Input value inN int
Input value inReverse bool False Reverse the ordering of pixel values to decreasing.
Output value outImage Image& Output image

Errors

List of possible exceptions:

Error type Description
DomainError ROI exceeds an input image in NthImage_OfArray.
DomainError Sizes of image array and ROI array differ in NthImage_OfArray.
DomainError The inN parameter cant be negative.
DomainError The inN parameter must be smaller than input image array size.