The application discloses a filtering stabilization
algorithm based on a head-mounted display, and relates to the technical field of head-mounted displays; the
algorithm is realized based on a head-mounted display
system, and the
system comprises the following modules: a
data acquisition module, which acquires original image data from a high-resolution
image sensor built in a head-mounted
display device, and synchronously acquires data of a
head posture sensor to acquire posture information of the head-mounted
display device in a three-dimensional space; and a preprocessing module, which adopts an adaptive median filtering
algorithm to perform denoising
processing on the original image data.The application constructs accurate rotation and translation matrices, accurately transforms from a world coordinate
system to a head-mounted
display device coordinate system through reasonable matrix operation, guarantees correct mapping of an image in a spatial position, performs image
distortion correction by using an efficient bilinear interpolation algorithm, ensures that pixel values in new coordinates can be quickly and accurately calculated when
image deformation caused by
head shaking is processed, effectively reduces image blur and
distortion, and improves the definition and accuracy of the image.