Back to FabImage Library website

You are here: Start » Function Reference » Image Spatial Transforms » ShrinkImageNTimes

ShrinkImageNTimes


Header:FIL.h
Namespace:fil

Shrinks an image by a natural factor along each axis.

Syntax

C++
C#
 
void fil::ShrinkImageNTimes
(
	const fil::Image& inImage,
	int inNX,
	const ftl::Optional<int>& inNY,
	fil::Image& outImage
)

Parameters

Name Type Range Default Description
inImage const Image& Input image
inNX int 1 - 2
inNY const Optional<int>& 1 - NIL
outImage Image& Output image

Description

The operation shrinks the inImage reducing its dimensions by a natural factor.

Examples

ShrinkImageNTimes performed on the sample image with inNX = 2, inNY = 2.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

This operation is optimized for SSE2 technology for pixels of types: UINT8, SINT8, UINT16, SINT16, SINT32, REAL.

See Also

  • DownsampleImage – Shrinks an image by the factor of two along each axis.
  • ResizeImage – Enlarges or shrinks an image to new dimensions.