The invention relates to the technical field of
image processing, discloses a medical instrument
image processing method, and particularly relates to an
endoscope rotation
image processing method and an
endoscope. According to the invention, the spatial position of the real-time image is updated to obtain the rotation image, the problem of
image rotation caused by rotation of the
endoscope is solved, and stable display of the image is realized. The parameters of the
feature extraction module are dynamically adjusted by determining the rotation angle distribution result, so that the
feature extraction process can adapt to the rotation change degree of the endoscope, and the accuracy and comprehensiveness of feature expression are improved. Moreover,
image estimation is iteratively updated based on a regularization item of a
convolution attention mechanism,
spatial frequency information is captured in a
convolution mode, a key area is focused in combination with the space and channel attention mechanism, image blurring is effectively removed, and the
image restoration quality is improved. In addition, a pure rotation angle is accurately separated from the compound motion by an attitude calculation method based on
quaternion and a spiral
displacement method, so that the precision of rotation correction is ensured.