First example, Second example, First example second example – ALLIED Vision Technologies Stingray F-504 User Manual
Page 143: E chapter, Building defect pixel correction image in, Format_7 modes

Description of the data path
STINGRAY Technical Manual V4.4.4
141
Building defect pixel correction image in
Format_7 modes
horizontal
Binning/sub-sampling is always done after defect pixel correction. Defect
pixel correction is always done on full horizontal resolution. Therefore defect
pixel detection has always to be done in full horizontal resolution.
vertical
Binning/sub-sampling is done in the sensor, before defect pixel correction.
Therefore defect pixel detection has to be done in the correct vertical
resolution.
First example
4 x horizontal binning, 2 x vertical binning
detect defect pixels with 0 x horizontal binning and 2 x vertical binning
Second example
2 out of 8 horizontal sub-sampling, 2 out of 8 vertical sub-sampling
detect defect pixels with 0 x horizontal sub-sampling and 2 out of 8 ver-
tical sub-sampling
Note
Detect defect pixels always with the full horizontal
resolution
(0 x horizontal binning / 0 x horizontal sub-sampling),
but with the desired vertical binning/sub-sampling.