Specifications
Intel
®
Image Processing Library Reference Manual
12-2
12
Image Norms
The iplNorm() function described in this section allows you to compute
the following norms of the image pixel values:
• L
1
norm (the sum of absolute pixel values)
• L
2
norm (the square root of the sum of squared pixel values)
• C norm (the largest absolute pixel value).
This function also helps you compute the norm of differences in pixel
values of two input images as well as the relative error for two input
images.
Norm
Computes the norm of pixel
values or of differences in pixel
values of two images.
double iplNorm(IplImage*
srcImageA
, IplImage*
srcImageB
,
int
normType
);
srcImageA
The first source image.
srcImageB
The second source image.
normType
Specifies the norm type. Can be IPL_C, IPL_L1,or
IPL_L2;ifthe
srcImageB
pointer is not NULL,the
normType
argument can also be IPL_RELATIVEC,
IPL_RELATIVEL1,or IPL_RELATIVEL2.
Discussion
You can use the iplNorm() function to compute the following norms of
pixel values: