Image processing conversion method for single-lens endoscope
Technical Field
The invention relates to the technical field of single lenses, in particular to a single-lens endoscope image processing and converting method.
Background
The existing endoscope lenses are of two types, one is a single-lens endoscope, the picture shot by the single lens is a 2D image, the image observed by a medical worker through the endoscope is a plane image, the stereoscopic impression and the distance sense are not provided, and the relative position of a pathological change tissue cannot be accurately judged, the other two are double-lens endoscopes, the distance between the two lenses is very close, so the difference of the shot pictures is extremely small, and then 3D imaging is realized through processing the two pictures, but the medical endoscope needs to be stretched into a human body tissue for observation, so the space for arranging the lenses is very limited, and the arrangement mode of the double lenses can increase the space occupation of the endoscope and improve the production cost and the medical cost.
Disclosure of Invention
The invention aims to provide a single-lens endoscope image processing and converting method, which achieves the purposes of increasing the space stereoscopic impression and reducing the production cost and the medical cost.
In order to achieve the purposes of increasing the space stereoscopic impression and reducing the production cost and the medical cost, the invention provides the following technical scheme that the single-lens endoscope image processing and converting method comprises the following steps:
step one, image acquisition, namely performing short-time quick shooting on a current picture by using a single lens to obtain two images of T1 and T2.
And step two, processing the images T1 and T2 according to a perspective method based on the principle of human vision so as to form an image for the left eye and an image for the right eye.
And step three, image transmission and development, wherein the processed T1 image is transmitted to the left eye of the human body through the display device, and the processed T2 image is transmitted to the right eye of the human body through the display device.
And step four, dividing the imaging time of the whole graph T1 and the imaging time of the graph T2 into pictures of a plurality of time periods respectively by frames.
Step five: and (4) image conversion, namely, carrying out image acquisition, image processing and image transmission development on the frame images in the fourth step.
Step six: and adjusting the dividing density, and subdividing the picture subjected to image conversion in the step five.
Step seven: and imaging, namely displaying the converted pictures of each frame after the segmentation density is adjusted in sequence, thereby realizing the continuous display of 3D picture frames, and finally realizing the 3D dynamic display of the current organization picture by using a single lens.
Preferably, in the first step, the time interval between the T1 and the T2 of single shot shooting is not more than 1 ms.
Preferably, the image processing time in the second step is 2-5ms
Preferably, the time slot pictures divided by the graphs T1 and T2 in the fourth step are 8-20.
Preferably, the image conversion time in the fifth step is 3-8 ms.
Preferably, the number of the image partitions of the image conversion in the step six is 5-20.
Preferably, the division time of each picture in the sixth step does not exceed 40 ms.
Preferably, the time for the photographic imaging of the images T1 and T2 in the first step is 30ms respectively.
Preferably, the transmission speed of the image transmission apparatus in step three is 20 ms.
Preferably, the framing time of each picture in the fourth step is not more than 4 ms.
The invention provides a single-lens endoscope image processing and converting method. The method has the following beneficial effects: the method has the advantages that the output of the three-dimensional picture is realized through image processing, framing, division density adjustment and the like, the occupied space is reduced by using a single lens to replace double lenses, the production cost is saved, and the medical cost is also reduced.
Detailed Description
Example one
A single-lens endoscope image processing conversion method comprises the following steps:
step one, image acquisition, namely, performing short-time quick shooting on a current picture by using a single lens to obtain two images of T1 and T2, wherein due to the extremely short shooting interval of the two images, the images of the T1 and the T2 can be considered to be completely the same, in other words, the T1 and the T2 can be considered to be images obtained by shooting the same picture at the same time, and the interval between the two images of T1 and T2 shot by the single lens is not more than 1 ms.
And step two, processing the images T1 and T2 according to a perspective method based on the principle of human vision so as to form an image for the left eye and an image for the right eye, wherein the image conversion time is 2ms, and the shooting imaging time of each of the images T1 and T2 is 30 ms.
And step three, image transmission and development, namely transmitting the processed T1 image to the left eye of the human body through display equipment, transmitting the processed T2 image to the right eye of the human body through the display equipment, wherein the transmission speed of the image transmission equipment is 20ms, and as the two images have a certain visual angle deviation effect, namely a binocular parallax effect in the vision of human eyes, the three-dimensional sense and the spatial distance sense which are the same as the spatial picture directly observed by the human eyes can be generated in the human brain.
And step four, framing, namely dividing the imaging time of the whole graph T1 and the imaging time of the graph T2 into pictures of a plurality of time periods respectively, wherein the number of the time period pictures divided by the graphs T1 and T2 is 8, and the framing time of each picture is not more than 4 ms.
Step five: and (4) image conversion, namely performing image acquisition, image processing and image transmission development on the frame images in the fourth step, wherein the image conversion time is 3 ms.
Step six: and adjusting the dividing density, and subdividing the image converted in the step five, wherein the number of the image converted is 5, and the dividing time of each image is not more than 40 ms.
Step seven: and imaging, namely displaying the converted pictures of each frame after the segmentation density is adjusted in sequence, thereby realizing the continuous display of 3D picture frames, and finally realizing the 3D dynamic display of the current organization picture by using a single lens.
Example two
A single-lens endoscope image processing conversion method comprises the following steps:
step one, image acquisition, namely, performing short-time quick shooting on a current picture by using a single lens to obtain two images of T1 and T2, wherein due to the extremely short shooting interval of the two images, the images of the T1 and the T2 can be considered to be completely the same, in other words, the T1 and the T2 can be considered to be images obtained by shooting the same picture at the same time, the interval between the two images of T1 and T2 shot by the single lens is not more than 1ms, and the shooting imaging time of the T1 and the T2 is respectively 30 ms.
And step two, processing the images T1 and T2 according to a perspective method based on the principle of human vision, so that the images for the left eye and the images for the right eye are formed, wherein the image conversion time is 3 ms.
And step three, image transmission and development, namely transmitting the processed T1 image to the left eye of the human body through display equipment, transmitting the processed T2 image to the right eye of the human body through the display equipment, wherein the transmission speed of the image transmission equipment is 20ms, and as the two images have a certain visual angle deviation effect, namely a binocular parallax effect in the vision of human eyes, the three-dimensional sense and the spatial distance sense which are the same as the spatial picture directly observed by the human eyes can be generated in the human brain.
And step four, framing, namely dividing the imaging time of the whole graph T1 and the imaging time of the graph T2 into pictures of a plurality of time periods respectively, wherein the number of the time period pictures divided by the graphs T1 and T2 is 10, and the framing time of each picture is not more than 4 ms.
Step five: and (4) image conversion, namely performing image acquisition, image processing and image transmission development on the frame images in the fourth step, wherein the image conversion time is 3-5 ms.
Step six: and adjusting the dividing density, and subdividing the image converted in the step five, wherein the number of the image converted is 7, and the dividing time of each image is not more than 40 ms.
Step seven: and imaging, namely displaying the converted pictures of each frame after the segmentation density is adjusted in sequence, thereby realizing the continuous display of 3D picture frames, and finally realizing the 3D dynamic display of the current organization picture by using a single lens.
EXAMPLE III
A single-lens endoscope image processing conversion method comprises the following steps:
step one, image acquisition, namely, performing short-time quick shooting on a current picture by using a single lens to obtain two images of T1 and T2, wherein due to the extremely short shooting interval of the two images, the images of the T1 and the T2 can be considered to be completely the same, in other words, the T1 and the T2 can be considered to be images obtained by shooting the same picture at the same time, the interval between the two images of T1 and T2 shot by the single lens is not more than 1ms, and the shooting imaging time of the T1 and the T2 is respectively 30 ms.
And step two, processing the images T1 and T2 according to a perspective method based on the principle of human vision, so that the images for the left eye and the images for the right eye are formed, wherein the image conversion time is 3 ms.
And step three, image transmission and development, namely transmitting the processed T1 image to the left eye of the human body through display equipment, transmitting the processed T2 image to the right eye of the human body through the display equipment, wherein the transmission speed of the image transmission equipment is 20ms, and as the two images have a certain visual angle deviation effect, namely a binocular parallax effect in the vision of human eyes, the three-dimensional sense and the spatial distance sense which are the same as the spatial picture directly observed by the human eyes can be generated in the human brain.
And step four, framing, namely dividing the imaging time of the whole graph T1 and the imaging time of the graph T2 into pictures of a plurality of time periods respectively, wherein the number of the pictures of the time periods divided by the graphs T1 and T2 is 12, and the framing time of each picture is not more than 4 ms.
Step five: and (4) image conversion, namely performing image acquisition, image processing and image transmission development on the frame images in the fourth step, wherein the image conversion time is 3-4 ms.
Step six: and adjusting the dividing density, and subdividing the image converted in the step five, wherein the number of the image converted is 10, and the dividing time of each image is not more than 40 ms.
Step seven: and imaging, namely displaying the converted pictures of each frame after the segmentation density is adjusted in sequence, thereby realizing the continuous display of 3D picture frames, and finally realizing the 3D dynamic display of the current organization picture by using a single lens.
Example four
A single-lens endoscope image processing conversion method comprises the following steps:
step one, image acquisition, namely, performing short-time quick shooting on a current picture by using a single lens to obtain two images of T1 and T2, wherein due to the extremely short shooting interval of the two images, the images of the T1 and the T2 can be considered to be completely the same, in other words, the T1 and the T2 can be considered to be images obtained by shooting the same picture at the same time, the interval between the two images of T1 and T2 shot by the single lens is not more than 1ms, and the shooting imaging time of the T1 and the T2 is respectively 30 ms.
And step two, processing the images T1 and T2 according to a perspective method based on the principle of human vision, so that the images for the left eye and the images for the right eye are formed, wherein the image conversion time is 3 ms.
And step three, image transmission and development, namely transmitting the processed T1 image to the left eye of the human body through display equipment, transmitting the processed T2 image to the right eye of the human body through the display equipment, wherein the transmission speed of the image transmission equipment is 20ms, and as the two images have a certain visual angle deviation effect, namely a binocular parallax effect in the vision of human eyes, the three-dimensional sense and the spatial distance sense which are the same as the spatial picture directly observed by the human eyes can be generated in the human brain.
And step four, framing, namely dividing the imaging time of the whole graph T1 and the imaging time of the graph T2 into pictures of a plurality of time periods respectively, wherein the number of the pictures of the time periods divided by the graphs T1 and T2 is 14, and the framing time of each picture does not exceed 4 ms.
Step five: and (4) image conversion, namely performing image acquisition, image processing and image transmission development on the frame images in the fourth step, wherein the image conversion time is 3 ms.
Step six: and adjusting the dividing density, and subdividing the image converted in the step five, wherein the number of the image converted is 16, and the dividing time of each image is not more than 40 ms.
Step seven: and imaging, namely displaying the converted pictures of each frame after the segmentation density is adjusted in sequence, thereby realizing the continuous display of 3D picture frames, and finally realizing the 3D dynamic display of the current organization picture by using a single lens.
EXAMPLE five
A single-lens endoscope image processing conversion method comprises the following steps:
step one, image acquisition, namely, performing short-time quick shooting on a current picture by using a single lens to obtain two images of T1 and T2, wherein due to the extremely short shooting interval of the two images, the images of the T1 and the T2 can be considered to be completely the same, in other words, the T1 and the T2 can be considered to be images obtained by shooting the same picture at the same time, the interval between the two images of T1 and T2 shot by the single lens is not more than 1ms, and the shooting imaging time of the T1 and the T2 is respectively 30 ms.
And step two, processing the images T1 and T2 according to a perspective method based on the principle of human vision, so that the images for the left eye and the images for the right eye are formed, wherein the image conversion time is 4 ms.
And step three, image transmission and development, namely transmitting the processed T1 image to the left eye of the human body through display equipment, transmitting the processed T2 image to the right eye of the human body through the display equipment, wherein the transmission speed of the image transmission equipment is 20ms, and as the two images have a certain visual angle deviation effect, namely a binocular parallax effect in the vision of human eyes, the three-dimensional sense and the spatial distance sense which are the same as the spatial picture directly observed by the human eyes can be generated in the human brain.
And step four, framing, namely dividing the imaging time of the whole graph T1 and the imaging time of the graph T2 into pictures of a plurality of time periods respectively, wherein the number of the pictures of the time periods divided by the graphs T1 and T2 is 16, and the framing time of each picture does not exceed 4 ms.
Step five: and (4) image conversion, namely performing image acquisition, image processing and image transmission development on the frame images in the fourth step, wherein the image conversion time is 5 ms.
Step six: and adjusting the dividing density, and subdividing the image converted in the step five, wherein the number of the image converted image divided is 17, and the dividing time of each image is not more than 40 ms.
Step seven: and imaging, namely displaying the converted pictures of each frame after the segmentation density is adjusted in sequence, thereby realizing the continuous display of 3D picture frames, and finally realizing the 3D dynamic display of the current organization picture by using a single lens.
EXAMPLE six
A single-lens endoscope image processing conversion method comprises the following steps:
step one, image acquisition, namely, performing short-time quick shooting on a current picture by using a single lens to obtain two images of T1 and T2, wherein due to the extremely short shooting interval of the two images, the images of the T1 and the T2 can be considered to be completely the same, in other words, the T1 and the T2 can be considered to be images obtained by shooting the same picture at the same time, the interval between the two images of T1 and T2 shot by the single lens is not more than 1ms, and the shooting imaging time of the T1 and the T2 is respectively 30 ms.
And step two, processing the images T1 and T2 according to a perspective method based on the principle of human vision, so that the images for the left eye and the images for the right eye are formed, wherein the image conversion time is 5 ms.
And step three, image transmission and development, namely transmitting the processed T1 image to the left eye of the human body through display equipment, transmitting the processed T2 image to the right eye of the human body through the display equipment, wherein the transmission speed of the image transmission equipment is 20ms, and as the two images have a certain visual angle deviation effect, namely a binocular parallax effect in the vision of human eyes, the three-dimensional sense and the spatial distance sense which are the same as the spatial picture directly observed by the human eyes can be generated in the human brain.
And step four, framing, namely dividing the imaging time of the whole graph T1 and the imaging time of the graph T2 into pictures of a plurality of time periods respectively, wherein the number of the pictures of the time periods divided by the graphs T1 and T2 is 20, and the framing time of each picture is not more than 4 ms.
Step five: and (4) image conversion, namely performing image acquisition, image processing and image transmission development on the frame images in the fourth step, wherein the image conversion time is 3 ms.
Step six: and adjusting the dividing density, and subdividing the image converted in the step five, wherein the number of the image converted images is 20, and the dividing time of each image is not more than 40 ms.
Step seven: and imaging, namely displaying the converted pictures of each frame after the segmentation density is adjusted in sequence, thereby realizing the continuous display of 3D picture frames, and finally realizing the 3D dynamic display of the current organization picture by using a single lens.
In summary, the output of the stereoscopic picture is realized by image processing, framing, adjusting the division density, and the like. Compared with the existing double-lens endoscope, the image processing method of the invention does not need to additionally add an equipment structure, thereby not occupying additional space and simultaneously reducing the production cost and the medical cost.