Back to Aurora Vision Library Lite website

You are here: Start » Image » Image Basics » GetImagePixel_Interpolated

GetImagePixel_Interpolated


Header: AVL.h
Namespace: avl

Returns an interpolated single pixel of an image.

Applications: Sub-pixel sampling of an image.

Syntax

void avl::GetImagePixel_Interpolated
(
	const avl::Image& inImage,
	const avl::Point2D& inPoint,
	avl::InterpolationMethod::Type inInterpolation,
	avl::Pixel& outPixel,
	float& outValue
)

Parameters

Name Type Default Description
Input value inImage const Image& Input image
Input value inPoint const Point2D& Point on the input image to be accessed
Input value inInterpolation InterpolationMethod::Type Bilinear
Output value outPixel Pixel& Output pixel
Output value outValue float& Average pixel value

Errors

List of possible exceptions:

Error type Description
DomainError Input point exceeds dimensions of an input image in GetImagePixel_Interpolated.
DomainError Unknown interpolation method in GetImagePixel_Interpolated.