Back to FabImage Library website

You are here: Start » Function Reference » Profile » Profile Spatial Transforms » ShrinkProfileNTimes

ShrinkProfileNTimes


Header: FIL.h
Namespace: fil
Module: FoundationPro

Reduces the length of a profile N-times by averaging each N consecutive elements.

Syntax

C++
C#
 
void fil::ShrinkProfileNTimes
(
	const fil::Profile& inProfile,
	const int inN,
	fil::Profile& outProfile
)

Parameters

Name Type Range Default Description
Input value inProfile const Profile& Input profile
Input value inN const int 1 - 2 The scaling coefficient
Output value outProfile Profile& Output profile