This application provides an image filtering method, apparatus, device, storage medium, and program product, relating to the field of
image processing technology. The method includes: shifting data in a filtering
data buffer unit according to the filtering sliding direction of an image filtering unit, wherein the filtering
data buffer unit and the image filtering unit are of the same size; updating the data in the filtering
data buffer unit based on current pixel data and historical pixel data in the acquired image
data stream; acquiring the updated data in the filtering data buffer unit; filtering the updated data in the filtering data buffer unit using the image filtering unit; and outputting the filtered image data. This application provides a technical solution that reads each pixel data in an image only once and can continuously perform image filtering
processing.