Developer Reference

  • 2020
  • 10/21/2020
  • Public Content
Contents

Neighborhood Operations

The result of a neighborhood operation is based on values of a certain group of pixels located near a given input pixel. The set of neighboring pixels is typically defined by a rectangular mask (or kernel) and anchor cell, specifying the mask alignment with respect to the position of the input pixel as shown in the following figure.
The anchor cell is a fixed cell within the kernel, which is used for positioning the kernel with respect to the currently processed pixel of the source image. The kernel is placed on the image in such a way that the anchor cell coincides with the input pixel. The anchor cell is specified by its coordinates
anchor.x
and
anchor.y
in the coordinate system associated with the top left corner of the kernel.
If position of the anchor cell is not specified explicitly in the function description, coordinates of the anchor are computed by the default formula:
anchor.x
=(
kernel.width
-1)/2
anchor.y
=(
kernel.height
-1)/2
where
kernel.width
and
kernel.height
is the width and height of the filter kernel, respectively.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804