Endoscope 3D image adjusting method
Technical Field
The invention relates to the technical field of video image processing, in particular to an endoscope 3D image adjusting method.
Background
The basic mechanism of holography is to record the amplitude and phase of object light wave simultaneously by using light wave interference method. The holographic reconstructed image light wave has the same three-dimensional characteristics as the original one, because it retains the information of all amplitudes and phases of the original object light wave. The human body can feel the three-dimensional effect because the two eyes of the human body transversely observe objects and the observation angles are slightly different, the images are seen side by side, the two eyes have an interval of about 6 cm, and the fusion reflection of the nerve center and the visual psychological reaction generate the three-dimensional effect.
The existing endoscope 3D image equipment can convert the shot picture into a three-dimensional picture to be presented in front of eyes of people, so that the people can perceive the spatial distance sense of different objects in the picture, and a real picture viewing experience is provided for people.
At present, the technology is also developed towards the medical treatment direction, especially towards the medical endoscopic observation direction, which can greatly improve the efficiency of medical staff for observing pathological tissues or performing operations, but due to the specificity of medical treatment, the conventional 3D picture presentation mode cannot meet the complex work requirements of the medical staff, for example, for tissues with extremely close spatial distance, the distance relationship between the two cannot be accurately distinguished during observation, so that the observation difficulty of the medical staff is increased; for the tissue to be observed with a special structure, the object to be observed is often behind the 3D image after being processed by the image, which is inconvenient for the medical staff to directly observe.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides an endoscope 3D image adjusting method which has the advantages of good 3D picture processing mode, reasonable observed local image distance and the like, and solves the problem that the existing 3D picture processing mode is not good, so that the local image distance to be observed in a picture is unreasonable.
(II) technical scheme
In order to achieve the purposes of good 3D picture processing mode and reasonable observed local image distance, the invention provides the following technical scheme:
s1, image acquisition
By capturing the current screen, two images T1 and T2 of the screen at the same time are obtained.
S2, image processing
Based on the principle of human vision, the image is subjected to mapping transformation, specifically, the image is turned left and right by taking a single side of the image as an axis, and a turning angle theta is defined.
S3-1, image distance adjustment
Turning the images T1 and T2 by theta to obtain default images T1L and T2R, respectively transmitting the default images T1 and T2R to 3D eye lenses corresponding to the left eye and the right eye, and changing the distance sense of an object in a 3D picture, namely increasing the theta value when the stereoscopic impression of the picture is enhanced; when the stereoscopic impression of the picture is weakened, the value of theta is reduced.
S3-2, image concave-convex sense adjustment
The images T1 and T2 are inverted through theta to obtain default images T1L and T2R, the transmission path of the images is changed, the images T1L are transmitted to the right eye position, and the images T2R are transmitted to the left eye position, so that the replacement of the far-near relationship of the images is achieved.
S4, image display
After the processing and transformation of the pictures in the above steps S3-1 or S3-2, pictures with 3D stereoscopic effect can be imaged in the human brain, and a plurality of pictures can be continuously displayed to form dynamic images.
Preferably, the shooting mode comprises single-lens multiple shooting and double-lens single shooting, and the shooting time is extremely short.
Preferably, the two T1 and T2 images are identical and correspond to images viewed by the left and right eyes, respectively.
Preferably, θ is a positive value when the image rotates towards the inside of the screen where the image is located, and θ is a negative value when the image rotates towards the outside of the screen where the image is located.
Preferably, the range of θ is between 0 and 90 °, when the left side of the image is rotated by θ, the left eye image T1L with large left end and small right end is obtained, and when the right side of the image is rotated by θ, the right eye image T2R with small left end and large right end is obtained.
Preferably, the images T1L and T2R are transmitted to the 3D eye lenses corresponding to the left eye and the right eye, respectively, so as to obtain a 3D image in the human brain at the viewing angle θ 1.
Preferably, the sense of concavity and convexity is adjusted so that the default images of both eyes are exchanged, and the sense of concavity and convexity of the screen changes in the human brain.
Preferably, the step S3-1 or S3-2 is selectively switched during the video presentation to adjust the spatial distance feeling of the current moving picture.
Preferably, theta of the sight line on the horizontal line is 0-90 degrees and a positive value; theta of the line of sight under the horizontal angle is-90 to 0 DEG and negative.
Preferably, θ 1 in the 3D image under the θ 1 viewing angle is turned by θ through T1 and T2 to obtain default images T1L and T2R.
(III) advantageous effects
Compared with the prior art, the invention provides an endoscope 3D image adjusting method, which has the following beneficial effects:
1. according to the endoscope 3D image adjusting method, due to the fact that the image is formed by overturning the image at a certain angle during stereoscopic processing of the image, the spatial distance effect of the image can be adjusted by changing the size of the overturning angle of the image, the image distance sense is improved by increasing the overturning angle, and the image distance sense is reduced by reducing the overturning angle.
2. According to the endoscope 3D image adjusting method, the turnover angle is increased and reduced, so that the method is applied to processing of dynamic pictures, real-time adjustment of medical staff to current observation pictures can be conveniently realized, and observation objects close to each other can be rapidly distinguished.
3. According to the endoscope 3D image adjusting method, the left eye image and the right eye image are exchanged, so that the default pictures seen by the left eye and the right eye are exchanged, the distance is changed, the concave-convex sense of the current picture is changed, the medical staff can conveniently adjust the object with the longer distance in the picture to the near, the observation efficiency of the medical staff is improved, and the observation difficulty is reduced.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
and S1, acquiring images.
The current picture is shot to obtain two images T1 and T2 of the picture at the same time, the shooting mode comprises single-lens multi-shot shooting and double-lens single-shot shooting, the shooting time is extremely short, and the two images T1 and T2 are completely the same and respectively correspond to the pictures seen by left and right eyes.
S2, image processing
Based on the human eye vision principle, the image is mapped and transformed, specifically, a single side of the image is used as an axis to be inverted left and right, a flip angle is defined to be 30 degrees, 30 degrees is a positive value when the image rotates towards the inside of a screen where the image is located, 30 degrees is a negative value when the image rotates towards the outside of the screen where the image is located (theta of a sight line above a horizontal line is 0-90 degrees and a positive value, theta of the sight line below the horizontal angle is-90-0 degrees and a negative value), when the left side of the image is the axis rotates for 30 degrees, a left eye image T1L with a large left end and a small right end is obtained, and when the right side of the image is the axis rotates for 30 degrees, a right eye image T2R.
S3-1, image distance adjustment
Turning the images T1 and T2 by 30 degrees to obtain default images T1L and T2R, respectively transmitting the default images T1 and T2R to 3D eye lenses corresponding to the left eye and the right eye, and changing the distance sense of an object in a 3D picture, namely, turning up the turning angle to 40 degrees when the stereoscopic impression of the picture is enhanced; when the stereoscopic impression of the picture is weakened, the flip angle is reduced to 20 degrees, the images T1L and T2R are respectively transmitted to the 3D eye lenses corresponding to the left eye and the right eye, and the 3D images under the 30-degree visual angle are obtained in the human brain (the 30-degree angle in the 3D images under the 30-degree visual angle is obtained through 30-degree flip by T1 and T2 to obtain default images T1L and T2R).
S3-2, image concave-convex sense adjustment
The images T1 and T2 are turned over by 30 degrees to obtain default images T1L and T2R, the transmission path of the images is changed, the images T1L are transmitted to the right eye position, the images T2R are transmitted to the left eye position, the far-near relation of the images is replaced, the concave-convex feeling is adjusted to be the default images of two eyes, and the concave-convex feeling of the images in the human brain is changed.
S4, image display
After the processing and transformation of the pictures in the steps S3-1 or S3-2, pictures with 3D stereoscopic effect can be imaged in human brain, a plurality of pictures can be continuously presented to form dynamic images, and the steps S3-1 or S3-2 are selectively switched in the process of playing the images to adjust the spatial distance sense of the current dynamic pictures.
Example two:
s1, image acquisition
The current picture is shot to obtain two images T1 and T2 of the picture at the same time, the shooting mode comprises single-lens multi-shot shooting and double-lens single-shot shooting, the shooting time is extremely short, and the two images T1 and T2 are completely the same and respectively correspond to the pictures seen by left and right eyes.
S2, image processing
Based on the human eye vision principle, the image is mapped and transformed, specifically, a single side of the image is used as an axis to be inverted left and right, a flip angle is defined to be 50 degrees, 50 degrees of the image is a positive value when the image rotates towards the inside of a screen where the image is located, 50 degrees of the image is a negative value when the image rotates towards the outside of the screen where the image is located (theta of a sight line above a horizontal line is 0-90 degrees and a positive value, theta of the sight line below the horizontal angle is-90-0 degrees and a negative value), a left eye image T1L with a large left end and a small right end is obtained when the left side of the image is rotated by the axis by 50 degrees, and a right eye image T2R with a small left end and a.
S3-1, image distance adjustment
Turning the images T1 and T2 by 30 degrees to obtain default images T1L and T2R, respectively transmitting the default images T1 and T2R to 3D eye lenses corresponding to the left eye and the right eye, and changing the distance sense of an object in a 3D picture, namely increasing the turning angle to 60 degrees when the stereoscopic impression of the picture is enhanced; when the stereoscopic impression of the picture is weakened, the flip angle is reduced to 30 degrees, the images T1L and T2R are respectively transmitted to the 3D eye lenses corresponding to the left eye and the right eye, and the 3D images under the visual angle of 50 degrees are obtained in the human brain (the 50 degree angle in the 3D images under the visual angle of 50 degrees is obtained through 50 degree flip by T1 and T2 to obtain default images T1L and T2R).
S3-2, image concave-convex sense adjustment
The images T1 and T2 are turned over by 50 degrees to obtain default images T1L and T2R, the transmission path of the images is changed, the images T1L are transmitted to the right eye position, the images T2R are transmitted to the left eye position, the far-near relation of the images is replaced, the concave-convex feeling is adjusted to be the default images of two eyes, and the concave-convex feeling of the images in the human brain is changed.
S4, image display
After the processing and transformation of the pictures in the steps S3-1 or S3-2, pictures with 3D stereoscopic effect can be imaged in human brain, a plurality of pictures can be continuously presented to form dynamic images, and the steps S3-1 or S3-2 are selectively switched in the process of playing the images to adjust the spatial distance sense of the current dynamic pictures.
Example three:
s1, image acquisition
The current picture is shot to obtain two images T1 and T2 of the picture at the same time, the shooting mode comprises single-lens multi-shot shooting and double-lens single-shot shooting, the shooting time is extremely short, and the two images T1 and T2 are completely the same and respectively correspond to the pictures seen by left and right eyes.
S2, image processing
Based on the human visual principle, the image is mapped and transformed, specifically, the image is inverted left and right by taking one side of the image as an axis, a flip angle is defined to be 60 degrees, 60 degrees is a positive value when the image rotates towards the inside of a screen where the image is located, 60 degrees is a negative value when the image rotates towards the outside of the screen where the image is located (theta of a sight line above a horizontal line is 0-90 degrees and a positive value, theta of the sight line below the horizontal angle is-90-0 degrees and a negative value), a left eye image T1L with a large left end and a small right end is obtained when the left side of the image rotates by 60 degrees, and a right eye image T2R with a large left end and a small right end is obtained when the right side of the image rotates by.
S3-1, image distance adjustment
Turning the images T1 and T2 by 60 degrees to obtain default images T1L and T2R, respectively transmitting the default images T1 and T2R to 3D eye lenses corresponding to the left eye and the right eye, and changing the distance sense of an object in a 3D picture, namely increasing the turning angle to 80 degrees when the stereoscopic impression of the picture is enhanced; when the stereoscopic impression of the picture is weakened, the flip angle is reduced to 40 degrees, the images T1L and T2R are respectively transmitted to the 3D eye lenses corresponding to the left eye and the right eye, and the 3D images under the 60-degree visual angle are obtained in the human brain (the 60-degree angle in the 3D images under the 60-degree visual angle is the default images T1L and T2R obtained through 60-degree flip by T1 and T2).
S3-2, image concave-convex sense adjustment
The images T1 and T2 are turned over by 60 degrees to obtain default images T1L and T2R, the transmission path of the images is changed, the images T1L are transmitted to the right eye position, the images T2R are transmitted to the left eye position, the far-near relation of the images is replaced, the concave-convex feeling is adjusted to be the default images of two eyes, and the concave-convex feeling of the images in the human brain is changed.
S4, image display
After the processing and transformation of the pictures in the steps S3-1 or S3-2, pictures with 3D stereoscopic effect can be imaged in human brain, a plurality of pictures can be continuously presented to form dynamic images, and the steps S3-1 or S3-2 are selectively switched in the process of playing the images to adjust the spatial distance sense of the current dynamic pictures.
Experimental example four:
s1, image acquisition
The current picture is shot to obtain two images T1 and T2 of the picture at the same time, the shooting mode comprises single-lens multi-shot shooting and double-lens single-shot shooting, the shooting time is extremely short, and the two images T1 and T2 are completely the same and respectively correspond to the pictures seen by left and right eyes.
S2, image processing
Based on the human eye vision principle, the image is subjected to mapping transformation, specifically, a single side of the image is taken as an axis to be subjected to left-right inversion, a flip angle of 70 degrees is defined, 70 degrees of the image is a positive value when the image rotates towards the inside of a screen where the image is located, 70 degrees of the image is a negative value when the image rotates towards the outside of the screen where the image is located (theta of a sight line above a horizontal line is 0-90 degrees and a positive value, theta of the sight line below the horizontal angle is-90-0 degrees and a negative value), a left eye image T1L with a large left end and a small right end is obtained when the left side of the image is taken as an axis to rotate by 70 degrees, and a right eye image T2R with a small.
S3-1, image distance adjustment
Turning the images T1 and T2 by 70 degrees to obtain default images T1L and T2R, respectively transmitting the default images T1 and T2R to 3D eye lenses corresponding to the left eye and the right eye, and changing the distance sense of an object in a 3D picture, namely increasing the turning angle to 90 degrees when the stereoscopic impression of the picture is enhanced; when the stereoscopic impression of the picture is weakened, the flip angle is reduced to 50 degrees, the images T1L and T2R are respectively transmitted to the 3D eye lenses corresponding to the left eye and the right eye, and the 3D images under the 70-degree visual angle are obtained in the human brain (the 70-degree angle in the 3D images under the 70-degree visual angle is obtained through 70-degree flip by T1 and T2 to obtain default images T1L and T2R).
S3-2, image concave-convex sense adjustment
The images T1 and T2 are turned over by 70 degrees to obtain default images T1L and T2R, the transmission path of the images is changed, the images T1L are transmitted to the right eye position, the images T2R are transmitted to the left eye position, the far-near relation of the images is replaced, the concave-convex feeling is adjusted to be the default images of two eyes, and the concave-convex feeling of the images in the human brain is changed.
S4, image display
After the processing and transformation of the pictures in the steps S3-1 or S3-2, pictures with 3D stereoscopic effect can be imaged in human brain, a plurality of pictures can be continuously presented to form dynamic images, and the steps S3-1 or S3-2 are selectively switched in the process of playing the images to adjust the spatial distance sense of the current dynamic pictures.
In summary, according to the endoscope 3D image adjusting method, since the image is formed by overturning the image at a certain angle during the stereoscopic processing of the image, the spatial distance effect of the image can be adjusted by changing the size of the image overturning angle, the image distance sense is improved by increasing the overturning angle, and the image distance sense is reduced by reducing the overturning angle.
By increasing the flip angle and reducing the flip angle, the method is applied to the processing of dynamic pictures, the medical staff can conveniently adjust the current observation pictures in real time, and objects to be observed close to each other can be quickly distinguished.
Through exchanging the left eye image and the right eye image, the default pictures seen by the left eye and the right eye are exchanged, the distance is changed, the concave-convex feeling of the current picture is changed, so that the medical staff can conveniently adjust the object far away in the picture to the front, the observation efficiency of the medical staff is improved, and the observation difficulty is reduced.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.