Supported by ...
All Pixelink Cameras
* Older version of this API only supported 2 parameters; fValue and fMode. This version, and subsequent versions of this API, support all 4 parameters. The additional 2 parameters (fHorizontalValue and fVerticalValue) were added to support asymmetric pixel addressing. That is, the ability to specify a different pixel reduction factor for the horizontal and vertical dimensions. Note however, not all cameras support asymmetric pixel addressing. Use PxLGetCameraFeatures or PxLGetFeature for FEATURE_PIXEL_ADDRESSING, to determine if your particular camera supports asymmetric pixel addressing. If either of these functions indicates that this feature only takes 2 parameters, than your camera does NOT support asymmetric pixel addressing.
Description
The Pixel Addressing feature reduces the number of pixels that are read from the ROI.
Pixel Addressing is controlled by two parameters – a Pixel Addressing mode and a value.
The Pixel Addressing mode determines how the number of pixels is reduced. The mode of Pixel Addressing can be decimate (0), averaging (1), binning (2) or resampling (3).
The Pixel Addressing value can be considered as the size of a block of pixels that will be reduced to a 2x2 group. With a Pixel Addressing value of 1, the Pixel Addressing mode has no effect and all pixels in the ROI will be returned. For Pixel Addressing values greater than 1, the number of pixels will be reduced by the square of the value. For example, a Pixel Addressing value of 3 will reduce a 6 x 6 block of pixels to a 2 x 2 block – a reduction of 4/36 or 1/9.
The decimate mode will drop all the pixels in the block except for the top-left group of four. At the highest Pixel Addressing value of 6, a 12 x 12 block of pixels is reduced to 2 x 2. At this level of reduction detail in the scene can be lost and color artifacts introduced.
The averaging mode will average pixels with the similar color within the block resulting in a 2x2 Bayer pattern. This allows details in the blocks to be detected and reduces the effects of color artifacts.
The binning mode will sum pixels with similar color within the block reducing the block to a 2x2 Bayer pattern. Unlike binning with CCD sensors, this summation occurs after the image is digitized so no increase in sensitivity will be noticed but a dark image will appear brighter.
If your camera supports asymmetric pixel addressing (see "Supported by" for a description), then you can specify different factors to be applied to the horizontal and vertical dimensions. Note that the same pixel addressing mode is applied to both dimensions.
The resampling mode uses a different approach involving the conversion of the Bayer pattern in the blocks to RGB pixels. With a Pixel Addressing value of 1, resampling has no effect. With a Pixel Addressing mode of 2 or more, resampling skips a bayer to RGB conversion step and converts the block of 10-bit pixels to one 30-bit RGB pixel by averaging the red, green and blue channels. Setting the video format to YUV422 mode will result in the best image quality while resampling. Resampling will create images with the highest quality and the least artifacts.
Pixel Addressing will reduce the amount of data coming from the camera. However, only the Decimate mode will permit an increase in the frame rate. Averaging, binning and resampling modes will have the same frame rate as if the Pixel Addressing value was 1 (no decimation.)
Pixel Addressing works in the same fashion with color or monochrome sensors.
API Control
Feature ID | Number of Parms | Parameters | Units | Restrictions |
FEATURE_PIXEL_ADDRESSING Reduction of the image data. | 4* | fValue | N/A | Integer Only |
fMode | N/A | Integer Only | ||
fHorizontal Value | N/A | Integer Only | ||
fVerticalValue | N/A | Integer Only |
Note: FEATURE_PIXEL_ADDRESSING and FEATURE_DECIMATION are equivalent. FEATURE_DECIMATION is a legacy term used by the API.Pixel Addressing.
Note: The stream state must be off (STREAM_OFF) to modify this feature. See PxLSetStreamState.
Note: Older version of this API only supported 2 parameters; fValue and fMode. This version, and subsequent versions of this API, support all 4 parameters. The additional 2 parameters (fHorizontalValue and fVerticalValue) were added to support asymmetric pixel addressing. That is, the ability to specify a different pixel reduction factor for the horizontal and vertical dimensions. Note however, not all cameras support asymmetric pixel addressing. Use PxLGetCameraFeatures or PxLGetFeature for FEATURE_PIXEL_ADDRESSING, to determine if your particular camera supports asymmetric pixel addressing. If either of these functions indicates that this feature only takes 2 parameters, then your camera does NOT support asymmetric pixel addressing. Please note that some cameras will return 4 parameters for this feature and still not support asymmetric pixel addressing, such as the PL-D725.
Note: When fValue is set to 1, fMode may default to 2 (or binning), regardless of the mode set. There is no difference between binning and decimation when fValue is set to 1.
Feature Flags
Camera | Presence | Read Only | Auto | Manual | One-time Auto | Off | Settable while streaming | Persistable |
All Cameras | Yes | No | No | Yes | No | Yes | No | Yes |
Parameters
Camera | Parameter | Unit | Type | Min | Max | Default | Step Size | Comments |
PL-X957, PL-X9520, PL-X9524 | Value | None | Absolute | 1 | 2 | 1 | 1 | |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 2 | 1 | 1 | ||
Vertical Value | None | Absolute | 1 | 2 | 1 | 1 | ||
PL-X9512 | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
PL-D721, M1, PL-D722, PL-D725, M5 | Value | None | Absolute | 1 | 2 | 1 | 1 | Symmetric only |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 2 | 1 | 1 | ||
Vertical Value | None | Absolute | 1 | 2 | 1 | 1 | ||
PL-D726 | Value | None | Absolute | 1 | 6 | 1 | 1 | Symmetric only; Pixel Addressing value of 5 is not supported. |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 6 | 1 | 1 | Pixel Addressing value of 5 is not supported. | |
Vertical Value | None | Absolute | 1 | 6 | 1 | 1 | Pixel Addressing value of 5 is not supported. | |
PL-D732, M2, PL-D734, M4 | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
PL-D752, M2B | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
PL-D753, M3 | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
PL-D755, M5D | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
PL-D755MU-POL | Value | None | Absolute | N/A | ||||
Mode | None | Absolute | N/A | |||||
Horizontal Value | None | Absolute | N/A | |||||
Vertical Value | None | Absolute | N/A | |||||
PL-D757, M7 | Value | None | Absolute | 1 | 2 | 1 | 1 | |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 2 | 1 | 1 | ||
Vertical Value | None | Absolute | 1 | 2 | 1 | 1 | ||
PL-D759, M9 | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
PL-D7512, M12 | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
PL-D7620, M20 | Value | None | Absolute | 1 | 2 | 1 | 1 | |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 2 | 1 | 1 | ||
Vertical Value | None | Absolute | 1 | 2 | 1 | 1 | ||
PL-D795 | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
PL-D797 | Value | None | Absolute | 1 | 2 | 1 | 1 | |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 2 | 1 | 1 | ||
Vertical Value | None | Absolute | 1 | 2 | 1 | 1 | ||
PL-D799 | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
PL-D7912 | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported | |
PL-D775 | Value | None | Absolute | 1 | 4 | 1 | 1 | |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | ||
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported. | |
PL-D7715, M15 | Value | None | Absolute | 1 | 4 | 1 | 1 | |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported. | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported. | |
PL-D7718, M18 | Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported. | |
Vertical Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported. | |
PL-D7920 | Value | None | Absolute | 1 | 2 | 1 | 1 | |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 2 | 1 | 1 | ||
Vertical Value | None | Absolute | 1 | 2 | 1 | 1 | ||
PL-D7924 | Value | None | Absolute | 1 | 2 | 1 | 1 | |
Mode | None | Absolute | 0 | 2 | 0 | 2 | 0: Decimate, 2: Bin | |
Horizontal Value | None | Absolute | 1 | 2 | 1 | 1 | ||
Vertical Value | None | Absolute | 1 | 2 | 1 | 1 | ||
PL-B741 | Mode | None | Absolute | 0 | 0 | 0 | 1 | 0: Decimate |
Value | None | Absolute | 1 | 2 | 1 | 1 | ||
PL-B742, 681C | Mode | None | Absolute | 0 | 3 | 0 | 1 | 0: Decimate, 1: Average, 2: Bin, 3: Resample |
Value | None | Absolute | 0 | 1 | 2 | 1 | ||
PL-B761 | Mode | None | Absolute | 1 | 2 | 1 | 1 | 1: Average, 2: Bin |
Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported. | |
PL-B762 | Mode | None | Absolute | 1 | 3 | 1 | 1 | 1: Average, 2: Bin, 3: Resample |
Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported. | |
PL-B771, 621M | Mode | None | Absolute | 0 | 2 | 0 | 1 | 0: Decimate, 1: Average, 2: Bin, 3: Resample |
Value | None | Absolute | 1 | 2 | 1 | 1 | ||
PL-B774, 622C | Mode | None | Absolute | 0 | 3 | 0 | 1 | 0: Decimate, 1: Average, 2: Bin, 3: Resample |
Value | None | Absolute | 1 | 2 | 1 | 1 | ||
PL-B776, 623C | Mode | None | Absolute | 0 | 3 | 0 | 1 | 0: Decimate, 1: Average, 2: Bin, 3: Resample |
Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported. | |
PL-B777, 625M | Mode | None | Absolute | 0 | 2 | 0 | 1 | 0: Decimate, 1: Average, 2: BIn |
Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported. | |
PL-B778, 625C | Mode | None | Absolute | 0 | 3 | 0 | 1 | 0: Decimate, 1: Average, 2: Bin, 3: Resample |
Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Value of 3 is not supported. | |
PL-B781, 686M | Mode | None | Absolute | 0 | 2 | 0 | 1 | 0: Decimate, 1: Average, 2: Bin |
Value | None | Absolute | 1 | 6 | 1 | 1 | Pixel Addressing Value of 5 is not supported. | |
PL-B782, 686C | Mode | None | Absolute | 0 | 3 | 0 | 1 | 0: Decimate, 1: Average, 2: Bin, 3: Resample |
Value | None | Absolute | 1 | 6 | 1 | 1 | Pixel Addressing value of 5 is not supported. | |
PL-B950, 870 | Mode | None | Absolute | 0 | 3 | 0 | 1 | 1: Average, 2: Bin, 3: Resample |
Value | None | Absolute | 1 | 4 | 1 | 1 | Pixel Addressing Values: Color Cameras: 2, 4. Mono Cameras: 2 |