impZeroRow(3) Impressario impZeroRow(3)NAME
impZeroRow, impInitRow, impCopyRow, impSAddRow, impVAddRow, impSSubRow,
impVSubRow, impSMulRow, impSDivRow, impClampRow - math operations on
image rows
SYNOPSIS
#include <imp.h>
void impZeroRow(short *dptr, int n);
void impInitRow(short *dptr, int val, int n);
void impCopyRow(short *dptr, short *sptr, int n);
void impSAddRow(short *dptr, short *sptr, int val, int n);
void impVAddRow(short *dptr, short *sptr1, short *sptr2,
int n);
void impSSubRow(short *dptr, short *sptr, int val, int n);
void impVSubRow(short *dptr, short *sptr1, short *sptr2,
int n);
void impSMulRow(short *dptr, short *sptr, int val, int n);
void impSDivRow(short *dptr, short *sptr, int val, int n);
void impClampRow(short *dptr, short *sptr, int lov,
int hiv, int n);
DESCRIPTION
In the following descriptions, the parameter n specifies the number of
elements in a array and not the number of bytes in the array. In
addition, functions that take a source array pointer and a destination
array pointer can specify the same array as both a source and
destination.
impZeroRow initializes to zero the array pointed to by dptr.
impInitRow initializes the array dptr to the value val.
impCopyRow copies the array sptr to the array dptr.
impSAddRow adds the value val to each element of the array sptr storing
the result in the array dptr.
impVAddRow adds the corresponding elements of sptr1 and sptr2 and stores
the result in the array dptr.
Page 1
impZeroRow(3) Impressario impZeroRow(3)
impSSubRow subtracts the value val from each element of the array sptr
and stores the result in the array dptr.
impVSubRow subtracts the corresponding elements of sptr2 from sptr1 and
stores the result in the array dptr.
impSMulRow multiplies each element of the array sptr by val and stores
the result in dptr.
impSDivRow divides each element of the array sptr by val and stores the
result in dptr.
impClampRow clamps the values of the array sptr between the values lov
and hiv inclusive. The result is stored in the array dptr.
NOTES
1. It is the caller's responsibility to allocate all buffer storage.
2. Since the arrays referenced by these functions are short integer
arrays, the caller should be aware of overflow/wraparound
conditions.
SEE ALSOlibimp(3)
Page 2