CN115696069A - Imaging method for 3D endoscope imaging system and 3D endoscope imaging system - Google Patents
Imaging method for 3D endoscope imaging system and 3D endoscope imaging system Download PDFInfo
- Publication number
- CN115696069A CN115696069A CN202211328400.6A CN202211328400A CN115696069A CN 115696069 A CN115696069 A CN 115696069A CN 202211328400 A CN202211328400 A CN 202211328400A CN 115696069 A CN115696069 A CN 115696069A
- Authority
- CN
- China
- Prior art keywords
- image data
- display mode
- brightness
- information
- dimensional
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Endoscopes (AREA)
Abstract
一种用于3D内窥镜成像系统的成像方法和3D内窥镜成像系统,该方法包括:获取第一图像传感器采集的第一图像数据和第二图像传感器采集的第二图像数据,以及获取姿态传感器采集的姿态数据,姿态数据用于指示第一图像数据和第二图像数据对应的空间位置;至少根据姿态数据,在第一显示模式和第二显示模式中确定当前应用的显示模式;当确定到应用第一显示模式时,根据第一图像数据和第二图像数据生成立体图像数据,并控制显示器显示立体图像;当确定到应用第二显示模式时,根据第一图像数据和第二图像数据生成二维图像数据,控制显示器显示二维图像,并根据姿态数据使得二维图像正立显示。其中二维图像综合了两路图像数据的信息,能够克服异常状态。
An imaging method for a 3D endoscope imaging system and a 3D endoscope imaging system, the method comprising: acquiring first image data acquired by a first image sensor and second image data acquired by a second image sensor, and acquiring Attitude data collected by the attitude sensor, where the attitude data is used to indicate the spatial positions corresponding to the first image data and the second image data; at least according to the attitude data, determine the currently applied display mode in the first display mode and the second display mode; when When it is determined to apply the first display mode, generate stereoscopic image data according to the first image data and the second image data, and control the display to display the stereoscopic image; when it is determined to apply the second display mode, generate stereoscopic image data according to the first image data and the second image data The two-dimensional image data is generated from the data, the display is controlled to display the two-dimensional image, and the two-dimensional image is displayed upright according to the posture data. Among them, the two-dimensional image integrates the information of the two-way image data, which can overcome the abnormal state.
Description
技术领域technical field
本发明涉及医疗设备领域,更具体地涉及一种用于3D内窥镜成像系统的成像方法和3D内窥镜成像系统。The present invention relates to the field of medical equipment, and more particularly to an imaging method for a 3D endoscope imaging system and the 3D endoscope imaging system.
背景技术Background technique
内窥镜能够在微创手术过程中呈现患者内脏器官的组织形态、体内病变情况,便于诊断和实施手术,是现代医学诊断和治疗的重要工具之一。传统的内窥镜只提供二维平面图像,医生在手术时只能凭经验判断人体腔体内各器官的深度信息,因而只适合于简单的手术。近年来发展了能够立体观察区域的立体视觉内窥镜,相比于传统内窥镜能够提供三维信息,更能反映场景真实情况,能够让医生在手术过程中感受到三维画面的视觉效果,提供逼真的视觉感受,帮助医生更加准确的操作内窥镜。Endoscope can present the histological shape of internal organs and pathological changes in the patient's body during minimally invasive surgery, which is convenient for diagnosis and operation. It is one of the important tools for modern medical diagnosis and treatment. Traditional endoscopes only provide two-dimensional plane images, and doctors can only judge the depth information of various organs in the human cavity based on experience during surgery, so they are only suitable for simple operations. In recent years, a stereo vision endoscope capable of stereoscopically observing the area has been developed. Compared with traditional endoscopes, it can provide three-dimensional information and better reflect the real situation of the scene. It allows doctors to feel the visual effect of three-dimensional images during the operation, providing Realistic visual experience helps doctors to operate endoscope more accurately.
显示立体内窥镜图像需要采集两路图像信号,当从立体图像的显示模式切换到二维图像的显示模式时,通常输出两路图像信号中的一路图像信号,当该路图像信号存在遮挡或脏污等异常情况时,将会造成画面内容丢失。并且,立体内窥镜图像的立体视觉效果依赖于图像的水平视差,当显示立体图像时,如果操作者的头部习惯性跟随图像转动,立体效果将会丢失,画面产生重影。Displaying stereoscopic endoscopic images needs to collect two-way image signals. When switching from the display mode of stereoscopic images to the display mode of two-dimensional images, one of the two-way image signals is usually output. In case of abnormal conditions such as dirt, the content of the screen will be lost. Moreover, the stereoscopic effect of the stereoscopic endoscopic image depends on the horizontal parallax of the image. When the stereoscopic image is displayed, if the operator's head habitually follows the rotation of the image, the stereoscopic effect will be lost and the image will be ghosted.
发明内容Contents of the invention
在发明内容部分中引入了一系列简化形式的概念,这将在具体实施方式部分中进一步详细说明。本发明的发明内容部分并不意味着要试图限定出所要求保护的技术方案的关键特征和必要技术特征,更不意味着试图确定所要求保护的技术方案的保护范围。A series of concepts in simplified form are introduced in the Summary of the Invention, which will be further detailed in the Detailed Description. The summary of the invention in the present invention does not mean to limit the key features and essential technical features of the claimed technical solution, nor does it mean to try to determine the protection scope of the claimed technical solution.
本发明实施例第一方面提供了一种用于3D内窥镜成像系统的成像方法,包括:The first aspect of the embodiment of the present invention provides an imaging method for a 3D endoscopic imaging system, including:
获取所述3D内窥镜成像系统的第一图像传感器采集的第一图像数据和所述3D内窥镜成像系统的第二图像传感器采集的第二图像数据,以及获取姿态传感器采集的姿态数据,所述姿态数据用于指示所述第一图像数据和所述第二图像数据对应的空间位置;Acquiring first image data collected by the first image sensor of the 3D endoscope imaging system and second image data collected by the second image sensor of the 3D endoscope imaging system, and obtaining attitude data collected by the attitude sensor, The gesture data is used to indicate the spatial positions corresponding to the first image data and the second image data;
至少根据所述姿态数据,在第一显示模式和第二显示模式中确定当前应用的显示模式;determining a currently applied display mode among the first display mode and the second display mode based at least on the gesture data;
当确定到所述当前应用的显示模式为所述第一显示模式时,根据所述第一图像数据和所述第二图像数据生成立体图像数据,并控制显示器根据所述立体图像数据显示立体图像;When it is determined that the display mode of the current application is the first display mode, generating stereoscopic image data according to the first image data and the second image data, and controlling the display to display a stereoscopic image according to the stereoscopic image data ;
当确定到所述当前应用的显示模式为所述第二显示模式时,根据所述第一图像数据和所述第二图像数据生成二维图像数据,控制所述显示器根据所述二维图像数据显示二维图像,并根据所述姿态数据使得所述二维图像正立显示。When it is determined that the display mode of the current application is the second display mode, generate two-dimensional image data according to the first image data and the second image data, and control the display according to the two-dimensional image data A two-dimensional image is displayed, and the two-dimensional image is displayed upright according to the posture data.
在一些实施例中,所述方法还包括根据用户指令在所述第一显示模式和所述第二显示模式中确定当前应用的显示模式,其中:In some embodiments, the method further includes determining a display mode of the current application in the first display mode and the second display mode according to a user instruction, wherein:
当所述用户指令指示采用所述第一显示模式时,将所述第一显示模式确定为当前应用的显示模式,以显示所述立体图像;When the user instruction indicates to adopt the first display mode, determine the first display mode as the currently applied display mode to display the stereoscopic image;
当所述用户指令指示采用所述第二显示模式时,将所述第二显示模式确定为当前应用的显示模式,以显示所述二维图像。When the user instruction indicates to adopt the second display mode, the second display mode is determined as the currently applied display mode to display the two-dimensional image.
在一些实施例中,所述3D内窥镜成像系统包括内窥镜,所述内窥镜包括插入部及操作部,所述第一传感器和第二传感器设置于所述插入部内,所述插入部用于插入患者的待观察部位,以获取所述患者的待观察部位的所述第一图像数据和所述第二图像数据,所述姿态数据包括所述插入部的旋转角度;In some embodiments, the 3D endoscope imaging system includes an endoscope, the endoscope includes an insertion part and an operation part, the first sensor and the second sensor are arranged in the insertion part, the insertion part The part is used to insert the patient's part to be observed, so as to obtain the first image data and the second image data of the patient's part to be observed, and the posture data includes the rotation angle of the insertion part;
所述至少根据所述姿态数据,在第一显示模式和第二显示模式中确定当前应用的显示模式,包括:The determining the display mode of the current application in the first display mode and the second display mode at least according to the gesture data includes:
当所述旋转角度与基准角度之间的差值小于预设阈值时,将所述第一模式确定为当前应用的显示模式,以显示所述立体图像;When the difference between the rotation angle and the reference angle is less than a preset threshold, determining the first mode as the currently applied display mode to display the stereoscopic image;
当所述旋转角度与所述基准角度之间的差值大于或等于所述预设角度时,将所述第二模式确定为当前应用的显示模式,以显示所述二维图像。When the difference between the rotation angle and the reference angle is greater than or equal to the preset angle, the second mode is determined as the currently applied display mode to display the two-dimensional image.
在一些实施例中,所述基准角度为使所述第一图像数据和所述第二图像数据不存在垂直视差的角度。In some embodiments, the reference angle is an angle at which there is no vertical parallax between the first image data and the second image data.
在一些实施例中,所述根据所述第一图像数据和所述第二图像数据生成二维图像数据,包括:In some embodiments, the generating two-dimensional image data according to the first image data and the second image data includes:
根据所述第一图像数据的第一亮度信息和所述第二图像数据的第二亮度信息,确定所述二维图像数据的亮度信息。The brightness information of the two-dimensional image data is determined according to the first brightness information of the first image data and the second brightness information of the second image data.
在一些实施例中,所述根据所述第一图像数据的第一亮度信息和所述第二图像数据的第二亮度信息,确定所述二维图像数据的亮度信息,包括:In some embodiments, the determining the brightness information of the two-dimensional image data according to the first brightness information of the first image data and the second brightness information of the second image data includes:
检测所述第一图像数据和所述第二图像数据是否存在异常;detecting whether the first image data and the second image data are abnormal;
当检测到所述第一图像数据存在异常时,根据所述第一图像数据的第一亮度信息对所述第二图像数据的第二亮度信息进行调整,以得到所述二维图像数据;When an abnormality is detected in the first image data, adjusting the second brightness information of the second image data according to the first brightness information of the first image data to obtain the two-dimensional image data;
当检测到所述第二图像数据存在异常时,根据所述第二图像数据的第二亮度信息对所述第一图像数据的第一亮度信息进行调整,以得到所述二维图像数据。When an abnormality is detected in the second image data, the first brightness information of the first image data is adjusted according to the second brightness information of the second image data, so as to obtain the two-dimensional image data.
在一些实施例中,所述检测所述第一图像数据和所述第二图像数据是否存在异常,包括:In some embodiments, the detecting whether the first image data and the second image data are abnormal includes:
确定所述第一图像数据与所述第二图像数据之间的相似度;determining a degree of similarity between said first image data and said second image data;
当所述第一图像数据与所述第二图像数据之间的相似度小于第一阈值时,确定所述第一图像数据的第一清晰度和所述第二图像数据的第二清晰度,若所述第一清晰度低于所述第二清晰度,则确定所述第一图像数据存在异常,若所述第一清晰度高于所述第二清晰度,则确定所述第二图像数据存在异常。determining a first sharpness of the first image data and a second sharpness of the second image data when the similarity between the first image data and the second image data is less than a first threshold, If the first definition is lower than the second definition, it is determined that there is an abnormality in the first image data, and if the first definition is higher than the second definition, it is determined that the second image There is an anomaly in the data.
在一些实施例中,所述二维图像数据中包含所述第一图像数据中的部分信息以及所述第二图像数据中的部分信息。In some embodiments, the two-dimensional image data includes partial information in the first image data and partial information in the second image data.
本发明实施例第二方面提供一种用于3D内窥镜成像系统的成像方法,所述方法包括:The second aspect of the embodiment of the present invention provides an imaging method for a 3D endoscopic imaging system, the method comprising:
获取第一图像数据和第二图像数据;Acquiring first image data and second image data;
在第一显示模式和第二显示模式中确定当前应用的显示模式;determining the display mode of the current application in the first display mode and the second display mode;
当确定到所述当前应用的显示模式为所述第一显示模式时,根据所述第一图像数据和所述第二图像数据生成立体图像数据,并控制显示器根据所述立体图像数据显示立体图像;When it is determined that the display mode of the current application is the first display mode, generating stereoscopic image data according to the first image data and the second image data, and controlling the display to display a stereoscopic image according to the stereoscopic image data ;
当确定到所述当前应用的显示模式为所述第二显示模式时,根据所述第一图像数据和所述第二图像数据生成二维图像数据,并控制所述显示器根据所述二维图像数据显示二维图像。When it is determined that the display mode of the current application is the second display mode, generate two-dimensional image data according to the first image data and the second image data, and control the display according to the two-dimensional image The data show two-dimensional images.
在一些实施例中,所述第一图像数据为所述3D内窥镜成像系统的第一图像传感器采集的,所述第二图像数据为所述3D内窥镜成像系统的第二图像传感器采集的。In some embodiments, the first image data is collected by the first image sensor of the 3D endoscopic imaging system, and the second image data is collected by the second image sensor of the 3D endoscopic imaging system of.
在一些实施例中,所述二维图像数据中包含所述第一图像数据中的部分信息以及所述第二图像数据中的部分信息。In some embodiments, the two-dimensional image data includes partial information in the first image data and partial information in the second image data.
在一些实施例中,所述方法还包括:在获取所述第一图像数据和所述第二图像数据的过程中,获取姿态数据,所述姿态数据用于指示所述第一图像数据和所述第二图像数据对应的空间位置;In some embodiments, the method further includes: during the process of acquiring the first image data and the second image data, acquiring gesture data, the gesture data being used to indicate the first image data and the The spatial position corresponding to the second image data;
所述在第一显示模式和第二显示模式中确定当前应用的显示模式,包括:根据用户指令和/或所述姿态数据,在第一显示模式和第二显示模式中确定所述当前应用的显示模式。The determining the display mode of the current application in the first display mode and the second display mode includes: determining the display mode of the current application in the first display mode and the second display mode according to user instructions and/or the gesture data display mode.
在一些实施例中,根据所述用户指令,在第一显示模式和第二显示模式中确定当前应用的显示模式,包括:In some embodiments, according to the user instruction, determining the display mode of the current application in the first display mode and the second display mode includes:
当所述用户指令指示采用所述第一显示模式时,将所述第一显示模式确定为当前应用的显示模式,以显示所述立体图像;When the user instruction indicates to adopt the first display mode, determine the first display mode as the currently applied display mode to display the stereoscopic image;
当所述用户指令指示采用所述第二显示模式时,将所述第二显示模式确定为当前应用的显示模式,以显示所述二维图像。When the user instruction indicates to adopt the second display mode, the second display mode is determined as the currently applied display mode to display the two-dimensional image.
在一些实施例中,所述3D内窥镜成像系统包括内窥镜,所述内窥镜包括插入部及操作部,所述第一传感器和第二传感器设置于所述插入部内,所述插入部用于插入患者的待观察部位,以获取所述患者的待观察部位的所述第一图像数据和所述第二图像数据,所述姿态数据包括所述插入部的旋转角度;In some embodiments, the 3D endoscope imaging system includes an endoscope, the endoscope includes an insertion part and an operation part, the first sensor and the second sensor are arranged in the insertion part, the insertion part The part is used to insert the patient's part to be observed, so as to obtain the first image data and the second image data of the patient's part to be observed, and the posture data includes the rotation angle of the insertion part;
根据所述姿态数据,在第一显示模式和第二显示模式中确定当前应用的显示模式,包括:According to the posture data, determining the display mode of the current application in the first display mode and the second display mode includes:
当所述旋转角度与基准角度之间的差值小于预设阈值时,将所述第一模式确定为当前应用的显示模式,以显示所述立体图像;When the difference between the rotation angle and the reference angle is less than a preset threshold, determining the first mode as the currently applied display mode to display the stereoscopic image;
当所述旋转角度与所述基准角度之间的差值大于或等于所述预设角度时,将所述第二模式确定为当前应用的显示模式,以显示所述二维图像。When the difference between the rotation angle and the reference angle is greater than or equal to the preset angle, the second mode is determined as the currently applied display mode to display the two-dimensional image.
在一些实施例中,所述基准角度为使所述第一图像数据和所述第二图像数据不存在垂直视差的角度。In some embodiments, the reference angle is an angle at which there is no vertical parallax between the first image data and the second image data.
在一些实施例中,所述方法还包括:在获取所述第一图像数据和所述第二图像数据的过程中,获取姿态数据,所述姿态数据用于指示所述第一图像数据和所述第二图像数据对应的空间位置;In some embodiments, the method further includes: during the process of acquiring the first image data and the second image data, acquiring gesture data, the gesture data being used to indicate the first image data and the The spatial position corresponding to the second image data;
根据所述姿态数据旋转所述二维图像数据,以使得所述二维图像正立显示。The two-dimensional image data is rotated according to the posture data, so that the two-dimensional image is displayed upright.
在一些实施例中,所述方法还包括:当接收到使所述二维图像非正立显示的设置指令时,以非正立状态显示所述二维图像,使所述二维图像的方向与所述第一图像数据和所述第二图像数据对应的空间位置相关联。In some embodiments, the method further includes: when receiving a setting instruction to display the two-dimensional image non-erectly, displaying the two-dimensional image in a non-erect state, making the orientation of the two-dimensional image Associated with the spatial positions corresponding to the first image data and the second image data.
在一些实施例中,所述方法还包括:在获取所述第一图像数据和所述第二图像数据的过程中,获取姿态数据,所述姿态数据用于指示所述第一图像数据和所述第二图像数据对应的空间位置;In some embodiments, the method further includes: during the process of acquiring the first image data and the second image data, acquiring gesture data, the gesture data being used to indicate the first image data and the The spatial position corresponding to the second image data;
根据所述姿态数据旋转所述立体图像数据,以使得所述立体图像正立显示。The stereoscopic image data is rotated according to the posture data, so that the stereoscopic image is displayed upright.
在一些实施例中,所述方法还包括:当接收到使所述立体图像非正立显示的设置指令时,以非正立状态显示所述立体图像,使所述立体图像的方向与所述第一图像数据和所述第二图像数据对应的空间位置相关联。In some embodiments, the method further includes: when receiving a setting instruction to display the stereoscopic image non-erectly, displaying the stereoscopic image in a non-erect state, so that the direction of the stereoscopic image is the same as the direction of the stereoscopic image. The spatial positions corresponding to the first image data and the second image data are associated.
在一些实施例中,所述根据所述第一图像数据和所述第二图像数据生成二维图像数据,包括:In some embodiments, the generating two-dimensional image data according to the first image data and the second image data includes:
根据所述第一图像数据的第一亮度信息和所述第二图像数据的第二亮度信息,确定所述二维图像数据的亮度信息。The brightness information of the two-dimensional image data is determined according to the first brightness information of the first image data and the second brightness information of the second image data.
在一些实施例中,所述根据所述第一图像数据的第一亮度信息和所述第二图像数据的第二亮度信息,确定所述二维图像数据的亮度信息,包括:In some embodiments, the determining the brightness information of the two-dimensional image data according to the first brightness information of the first image data and the second brightness information of the second image data includes:
检测所述第一图像数据和所述第二图像数据是否存在异常;detecting whether the first image data and the second image data are abnormal;
当检测到所述第一图像数据存在异常时,根据所述第一图像数据的第一亮度信息对所述第二图像数据的第二亮度信息进行调整,以得到所述二维图像数据;When an abnormality is detected in the first image data, adjusting the second brightness information of the second image data according to the first brightness information of the first image data to obtain the two-dimensional image data;
当检测到所述第二图像数据存在异常时,根据所述第二图像数据的第二亮度信息对所述第一图像数据的第一亮度信息进行调整,以得到所述二维图像数据。When an abnormality is detected in the second image data, the first brightness information of the first image data is adjusted according to the second brightness information of the second image data, so as to obtain the two-dimensional image data.
在一些实施例中,所述根据所述第一图像数据的第一亮度信息对所述第二图像数据的第二亮度信息进行调整,以得到所述二维图像数据,包括:In some embodiments, the adjusting the second brightness information of the second image data according to the first brightness information of the first image data to obtain the two-dimensional image data includes:
对所述第一图像数据的平均亮度和所述第二图像数据的平均亮度进行加权求和,以得到第一加权亮度;performing weighted summation of the average brightness of the first image data and the average brightness of the second image data to obtain a first weighted brightness;
根据所述第一加权亮度与所述第二图像数据的平均亮度的比值,得到第一亮度系数;Obtaining a first brightness coefficient according to the ratio of the first weighted brightness to the average brightness of the second image data;
根据所述第一亮度系数对所述第二图像数据中各像素的亮度值进行调整,以得到所述二维图像数据中各像素的亮度值;adjusting the brightness value of each pixel in the second image data according to the first brightness coefficient to obtain the brightness value of each pixel in the two-dimensional image data;
所述根据所述第二图像数据的第二亮度信息对所述第一图像数据的第一亮度信息进行调整,以得到所述二维图像数据,包括:The adjusting the first brightness information of the first image data according to the second brightness information of the second image data to obtain the two-dimensional image data includes:
对所述第二图像数据的平均亮度和所述第一图像数据的平均亮度进行加权求和,以得到第二加权亮度;performing weighted summation of the average brightness of the second image data and the average brightness of the first image data to obtain a second weighted brightness;
根据所述第二加权亮度与所述第一图像数据的平均亮度的比值,得到第二亮度系数;Obtaining a second brightness coefficient according to the ratio of the second weighted brightness to the average brightness of the first image data;
根据所述第二亮度系数对所述第一图像数据中各像素的亮度值进行调整,以得到所述二维图像数据中各像素的亮度值。The brightness value of each pixel in the first image data is adjusted according to the second brightness coefficient, so as to obtain the brightness value of each pixel in the two-dimensional image data.
在一些实施例中,在对所述第一图像数据的平均亮度和所述第二图像数据的平均亮度进行加权求和,以得到第一加权亮度时,所述第一图像数据的权重系数小于所述第二图像数据的权重系数;In some embodiments, when the average brightness of the first image data and the average brightness of the second image data are weighted and summed to obtain the first weighted brightness, the weight coefficient of the first image data is less than the weight coefficient of the second image data;
在对所述第二图像数据的平均亮度和所述第一图像数据的平均亮度进行加权求和,以得到第二加权亮度时,所述第一图像数据的权重系数大于所述第二图像数据的权重系数。When performing weighted summation of the average brightness of the second image data and the average brightness of the first image data to obtain the second weighted brightness, the weight coefficient of the first image data is greater than that of the second image data weight coefficient of .
在一些实施例中,所述根据所述第一图像数据的第一亮度信息和所述第二图像数据的第二亮度信息,确定所述二维图像数据的亮度信息,还包括:In some embodiments, the determining the brightness information of the two-dimensional image data according to the first brightness information of the first image data and the second brightness information of the second image data further includes:
当检测到所述第一图像数据和所述第二图像数据均不存在异常时,根据所述第一图像数据的第一亮度信息对所述第二图像数据的第二亮度信息进行调整,以得到所述二维图像数据,或者根据所述第二图像数据的第二亮度信息对所述第一图像数据的第一亮度信息进行调整,以得到所述二维图像数据。When it is detected that neither the first image data nor the second image data is abnormal, adjusting the second brightness information of the second image data according to the first brightness information of the first image data, so as to The two-dimensional image data is obtained, or the first brightness information of the first image data is adjusted according to the second brightness information of the second image data, so as to obtain the two-dimensional image data.
在一些实施例中,所述根据所述第一图像数据和所述第二图像数据生成二维图像数据,包括:In some embodiments, the generating two-dimensional image data according to the first image data and the second image data includes:
根据所述第一图像数据的第一颜色信息和所述第二图像数据的第二颜色信息,确定所述二维图像数据的颜色信息。The color information of the two-dimensional image data is determined according to the first color information of the first image data and the second color information of the second image data.
在一些实施例中,所述根据所述第一图像数据的第一颜色信息和所述第二图像数据的第二颜色信息,确定所述二维图像数据的颜色信息,包括:In some embodiments, the determining the color information of the two-dimensional image data according to the first color information of the first image data and the second color information of the second image data includes:
检测所述第一图像数据和所述第二图像数据是否存在异常;detecting whether the first image data and the second image data are abnormal;
当检测到所述第一图像数据存在异常时,根据所述第一图像数据的第一颜色信息对所述第二图像数据的第二颜色信息进行调整,以得到所述二维图像数据;When an abnormality is detected in the first image data, adjusting the second color information of the second image data according to the first color information of the first image data to obtain the two-dimensional image data;
当检测到所述第二图像数据存在异常时,根据所述第二图像数据的第二颜色信息对所述第一图像数据的第一颜色信息进行调整,以得到所述二维图像数据。When an abnormality is detected in the second image data, the first color information of the first image data is adjusted according to the second color information of the second image data to obtain the two-dimensional image data.
在一些实施例中,所述根据所述第一图像数据的第一颜色信息对所述第二图像数据的第二颜色信息进行调整,以得到所述二维图像数据,包括:In some embodiments, the adjusting the second color information of the second image data according to the first color information of the first image data to obtain the two-dimensional image data includes:
对所述第一图像数据的平均颜色值和所述第二图像数据的平均颜色值进行加权求和,以得到第一加权颜色值;performing weighted summation of the average color value of the first image data and the average color value of the second image data to obtain a first weighted color value;
根据所述加权颜色值与所述第二图像数据的平均颜色值的比值,得到第一颜色系数;Obtaining a first color coefficient according to the ratio of the weighted color value to the average color value of the second image data;
根据所述第一颜色系数对所述第二图像数据中各像素的颜色值进行调整,以得到所述二维图像数据中各像素的颜色值;adjusting the color value of each pixel in the second image data according to the first color coefficient to obtain the color value of each pixel in the two-dimensional image data;
所述根据所述第二图像数据的第二颜色信息对所述第一图像数据的第一颜色信息进行调整,以得到所述二维图像数据,包括:The adjusting the first color information of the first image data according to the second color information of the second image data to obtain the two-dimensional image data includes:
对所述第二图像数据的平均颜色值和所述第一图像数据的平均颜色值进行加权求和,以得到第二加权颜色值;performing weighted summation of the average color value of the second image data and the average color value of the first image data to obtain a second weighted color value;
根据所述第二加权颜色值与所述第二图像数据的平均颜色值的比值,得到第二颜色系数;Obtaining a second color coefficient according to the ratio of the second weighted color value to the average color value of the second image data;
根据所述第二颜色系数对所述第二图像数据中各像素的颜色值进行调整,以得到所述二维图像数据中各像素的颜色值。The color value of each pixel in the second image data is adjusted according to the second color coefficient, so as to obtain the color value of each pixel in the two-dimensional image data.
在一些实施例中,在对所述第一图像数据的平均颜色值和所述第二图像数据的平均颜色值进行加权求和,以得到第一加权颜色值时,所述第一图像数据的权重系数小于所述第二图像数据的权重系数;In some embodiments, when the average color value of the first image data and the average color value of the second image data are weighted and summed to obtain a first weighted color value, the first image data the weight coefficient is smaller than the weight coefficient of the second image data;
在对所述第二图像数据的平均颜色值和所述第一图像数据的平均颜色值进行加权求和,以得到第二加权颜色值时,所述第一图像数据的权重系数大于所述第二图像数据的权重系数。When performing weighted summation on the average color value of the second image data and the average color value of the first image data to obtain a second weighted color value, the weight coefficient of the first image data is greater than that of the first image data The weight coefficient of the second image data.
在一些实施例中,所述根据所述第一图像数据的第一颜色信息和所述第二图像数据的第二颜色信息,确定所述二维图像数据的颜色信息,还包括:In some embodiments, the determining the color information of the two-dimensional image data according to the first color information of the first image data and the second color information of the second image data further includes:
当检测到所述第一图像数据和所述第二图像数据均不存在异常时,根据所述第一图像数据的第一颜色信息对所述第二图像数据的第二颜色信息进行调整,以得到所述二维图像数据,或者根据所述第二图像数据的第二颜色信息对所述第一图像数据的第一颜色信息进行调整,以得到所述二维图像数据。When it is detected that neither the first image data nor the second image data is abnormal, adjusting the second color information of the second image data according to the first color information of the first image data, so as to The two-dimensional image data is obtained, or the first color information of the first image data is adjusted according to the second color information of the second image data, so as to obtain the two-dimensional image data.
在一些实施例中,所述检测所述第一图像数据和所述第二图像数据是否存在异常,包括:In some embodiments, the detecting whether the first image data and the second image data are abnormal includes:
确定所述第一图像数据与所述第二图像数据之间的相似度;determining a degree of similarity between said first image data and said second image data;
当所述第一图像数据与所述第二图像数据之间的相似度小于第一阈值时,确定所述第一图像数据的第一清晰度和所述第二图像数据的第二清晰度,若所述第一清晰度低于所述第二清晰度,则确定所述第一图像数据存在异常,若所述第一清晰度高于所述第二清晰度,则确定所述第二图像数据存在异常。determining a first sharpness of the first image data and a second sharpness of the second image data when the similarity between the first image data and the second image data is less than a first threshold, If the first definition is lower than the second definition, it is determined that there is an abnormality in the first image data, and if the first definition is higher than the second definition, it is determined that the second image There is an anomaly in the data.
本发明实施例第三方面提供一种3D内窥镜成像系统,包括内窥镜以及连接所述内窥镜的摄像主机,所述内窥镜包括插入部及操作部,所述插入部用于插入患者的待观察部位;The third aspect of the embodiment of the present invention provides a 3D endoscope imaging system, including an endoscope and a camera host connected to the endoscope, the endoscope includes an insertion part and an operation part, and the insertion part is used for Insert into the patient's site to be observed;
所述内窥镜包括第一图像传感器和第二图像传感器,分别用于采集第一图像数据和第二图像数据;The endoscope includes a first image sensor and a second image sensor for collecting first image data and second image data respectively;
所述摄像主机用于从所述内窥镜获取所述第一图像数据和第二图像数据,以执行如上所述的方法。The camera host is used to acquire the first image data and the second image data from the endoscope, so as to execute the above method.
在一些实施例中,所述3D内窥镜成像系统还包括设置于所述内窥镜的姿态传感器,用于采集姿态数据,并将所述姿态数据发送至所述摄像主机,所述姿态数据用于指示所述第一图像数据和所述第二图像数据对应的空间位置。In some embodiments, the 3D endoscopic imaging system further includes an attitude sensor disposed on the endoscope for collecting attitude data and sending the attitude data to the camera host, the attitude data It is used to indicate the spatial positions corresponding to the first image data and the second image data.
根据本发明实施例的用于3D内窥镜成像系统的成像方法和3D内窥镜成像系统能够根据用户指令和/或姿态数据切换显示模式,在第一显示模式下能够确保立体图像具有较好的立体效果,在第二显示模式下显示的二维图像综合了两路图像数据的信息,在其中一路图像存在异常时也能向用户展示组织信息。According to the imaging method for the 3D endoscope imaging system and the 3D endoscope imaging system according to the embodiments of the present invention, the display mode can be switched according to the user instruction and/or posture data, and the stereoscopic image can be ensured to have a better display mode in the first display mode. The three-dimensional effect, the two-dimensional image displayed in the second display mode integrates the information of the two image data, and can also display the organization information to the user when there is an abnormality in one of the images.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
在附图中:In the attached picture:
图1示出根据本发明一实施例的3D内窥镜成像系统的示意性框图;Fig. 1 shows a schematic block diagram of a 3D endoscopic imaging system according to an embodiment of the present invention;
图2示出根据本发明实施例的用于3D内窥镜成像系统的成像方法的示意性流程图;2 shows a schematic flowchart of an imaging method for a 3D endoscopic imaging system according to an embodiment of the present invention;
图3示出根据本发明一实施例的根据翻滚角的范围确定成像模式的示意图;FIG. 3 shows a schematic diagram of determining an imaging mode according to a roll angle range according to an embodiment of the present invention;
图4示出根据本发明一实施例的在存在遮挡的情况下根据第一图像数据和第二图像数据生成二维图像数据的示意图;Fig. 4 shows a schematic diagram of generating two-dimensional image data according to first image data and second image data in the presence of occlusion according to an embodiment of the present invention;
图5示出根据本发明一实施例的在不存在遮挡的情况下根据第一图像数据和第二图像数据生成二维图像数据的示意图;Fig. 5 shows a schematic diagram of generating two-dimensional image data according to first image data and second image data in the absence of occlusion according to an embodiment of the present invention;
图6示出根据本发明另一实施例的用于3D内窥镜成像系统的成像方法的示意性流程图。Fig. 6 shows a schematic flowchart of an imaging method for a 3D endoscope imaging system according to another embodiment of the present invention.
具体实施方式Detailed ways
为了使得本发明的目的、技术方案和优点更为明显,下面将参照附图详细描述根据本发明的示例实施例。显然,所描述的实施例仅仅是本发明的一部分实施例,而不是本发明的全部实施例,应理解,本发明不受这里描述的示例实施例的限制。基于本发明中描述的本发明实施例,本领域技术人员在没有付出创造性劳动的情况下所得到的所有其它实施例都应落入本发明的保护范围之内。In order to make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. Apparently, the described embodiments are only some embodiments of the present invention, rather than all embodiments of the present invention, and it should be understood that the present invention is not limited by the exemplary embodiments described here. Based on the embodiments of the present invention described in the present invention, all other embodiments obtained by those skilled in the art without creative effort shall fall within the protection scope of the present invention.
在下文的描述中,给出了大量具体的细节以便提供对本发明更为彻底的理解。然而,对于本领域技术人员而言显而易见的是,本发明可以无需一个或多个这些细节而得以实施。在其他的例子中,为了避免与本发明发生混淆,对于本领域公知的一些技术特征未进行描述。In the following description, numerous specific details are given in order to provide a more thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without one or more of these details. In other examples, some technical features known in the art are not described in order to avoid confusion with the present invention.
应当理解的是,本发明能够以不同形式实施,而不应当解释为局限于这里提出的实施例。相反地,提供这些实施例将使公开彻底和完全,并且将本发明的范围完全地传递给本领域技术人员。It should be understood that the invention can be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
在此使用的术语的目的仅在于描述具体实施例并且不作为本发明的限制。在此使用时,单数形式的“一”、“一个”和“所述/该”也意图包括复数形式,除非上下文清楚指出另外的方式。还应明白术语“组成”和/或“包括”,当在该说明书中使用时,确定所述特征、整数、步骤、操作、元件和/或部件的存在,但不排除一个或更多其它的特征、整数、步骤、操作、元件、部件和/或组的存在或添加。在此使用时,术语“和/或”包括相关所列项目的任何及所有组合。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the/the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the terms "consists of" and/or "comprising", when used in this specification, identify the presence of stated features, integers, steps, operations, elements and/or parts, but do not exclude one or more other Presence or addition of features, integers, steps, operations, elements, parts and/or groups. As used herein, the term "and/or" includes any and all combinations of the associated listed items.
为了彻底理解本发明,将在下列的描述中提出详细的结构,以便阐释本发明提出的技术方案。本发明的可选实施例详细描述如下,然而除了这些详细描述外,本发明还可以具有其他实施方式。In order to thoroughly understand the present invention, a detailed structure will be provided in the following description to illustrate the technical solution proposed by the present invention. Alternative embodiments of the invention are described in detail below, however the invention may have other embodiments beyond these detailed descriptions.
下面,首先参考图1描述根据本申请一个实施例的3D内窥镜成像系统,图1示出了根据本发明实施例的3D内窥镜成像系统100的示意性结构框图。In the following, a 3D endoscope imaging system according to an embodiment of the present application will first be described with reference to FIG. 1 , and FIG. 1 shows a schematic structural block diagram of a 3D
如图1所示,3D内窥镜成像系统100至少包括内窥镜以及连接内窥镜的摄像主机150,内窥镜包括插入部130及操作部160,As shown in FIG. 1 , the 3D
插入部130用于插入患者的待观察部位,插入部130及操作部160可以是一体结构或可分离式结构;内窥镜还包括第一图像传感器和第二图像传感器(未图示),分别用于采集第一图像数据和第二图像数据,示例性地,第一图像传感器和第二图像传感器设置在内窥镜的插入部130的前端。摄像主机150用于从内窥镜获取第一图像数据和第二图像数据,以对其进行图像处理。此外,3D内窥镜成像系统100还包括光源110、导光束120、线缆140、和姿态传感器(未图示),光源110通过导光束120与内窥镜连接,操作部160通过线缆140连接摄像主机150,并通过导光束120连接光源110。The
其中,光源110用于向待观察部位提供照明光源。光源110可以包括可见光光源和特殊光光源。示例性地,可将光光源为LED光源,可提供不同波长范围的多个单色光,多个单色光的组合光,或者宽光谱的白光光源。特殊光光源可以是对应于荧光试剂的激光光源,例如近红外光。在一些实施例中,在采用3D内窥镜成像系统进行成像之前,在待观察部位注射荧光试剂,荧光试剂吸收激光光源产生的激光后可产生荧光。Wherein, the
内窥镜的插入部130包括镜管、图像传感器和照明光路。镜管前端用于插入人体内,并深入到待检查部位。照明光路与导光束120对接,用于将光源110产生的光照射至目标对象的待检测部位。图像传感器具体包括第一图像传感器和第二图像传感器,用于将光信号转换为电信号,包括但不限于CCD传感器、CMOS传感器等。图像传感器采集的图像信号在操作部160进行初步的信号处理后发送至摄像主机150进行后续的图像处理,初步的信号处理包括放大、滤波等处理。第一图像传感器和第二图像传感器的光轴可以平行设置,也可以成一定角度设置。第一图像传感器和第二图像传感器采集的第一图像数据和第二图像数据能够对应于人左右眼观察到的立体对图像,从而模拟人眼双目立体视觉。The
操作部160的另一端通过线缆140与摄像主机150连接,将第一图像数据和第二图像数据通过线缆140传输到摄像主机150进行处理。在一些实施例中,操作部160也可以通过无线传输的方式将图像数据发送至摄像主机150。The other end of the
在一些实施例中,摄像主机150内设有处理器,处理器获取摄像头160输出的图像数据,并对图像数据进行处理,并输出处理后的图像数据。示例性地,3D内窥镜成像系统100还包括显示器170,摄像主机150通过视频连接线与显示器170连接,用于将内窥镜图像发送到显示器170进行显示。In some embodiments, the
需要说明的是,图1仅是3D内窥镜成像系统100的示例,并不构成对3D内窥镜成像系统100的限定,3D内窥镜成像系统100可以包括比图1所示更多或更少的部件,或者组合某些部件,或者不同的部件,例如3D内窥镜成像系统100还可以包括扩张器、烟雾控制装置、输入输出设备、网络接入设备等。It should be noted that FIG. 1 is only an example of a 3D
下面参照图2描述本发明实施例的用于3D内窥镜成像系统的成像方法。该方法可以由参照图1描述的3D内窥镜成像系统实现,具体可以由3D内窥镜成像系统的摄像主机实现。图2是本发明一实施例中的用于3D内窥镜成像系统的成像方法200的示意性流程图,具体包括如下步骤:在步骤S210,所述3D内窥镜成像系统的第一图像传感器采集的第一图像数据和所述3D内窥镜成像系统的第二图像传感器采集的第二图像数据,以及获取姿态传感器采集的姿态数据,所述姿态数据用于指示所述第一数据和所述第二图像数据对应的空间位置;An imaging method for a 3D endoscope imaging system according to an embodiment of the present invention will be described below with reference to FIG. 2 . The method can be implemented by the 3D endoscope imaging system described with reference to FIG. 1 , and specifically can be implemented by a camera host of the 3D endoscope imaging system. 2 is a schematic flow chart of an
在步骤S220,至少根据所述姿态数据,在第一显示模式和第二显示模式中确定当前应用的显示模式;In step S220, at least according to the gesture data, determine the currently applied display mode among the first display mode and the second display mode;
在步骤S230,当确定到所述当前应用的显示模式为所述第一显示模式时,根据所述第一图像数据和所述第二图像数据生成立体图像数据,并控制显示器根据所述立体图像数据显示立体图像;In step S230, when it is determined that the currently applied display mode is the first display mode, generate stereoscopic image data according to the first image data and the second image data, and control the display to Data display stereoscopic image;
在步骤S240,当确定到所述当前应用的显示模式为所述第二显示模式时,根据所述第一图像数据和所述第二图像数据生成二维图像数据,控制所述显示器根据所述二维图像数据显示二维图像,并根据所述姿态数据使所述二维图像正立显示。In step S240, when it is determined that the currently applied display mode is the second display mode, generate two-dimensional image data according to the first image data and the second image data, and control the display according to the The two-dimensional image data displays a two-dimensional image, and the two-dimensional image is displayed upright according to the posture data.
根据本发明实施例中的用于3D内窥镜成像系统的成像方法200,能够根据姿态数据确定当前应用的显示模式,进而确定显示二维图像或立体图像;其中,二维图像参考了第一图像数据和第二图像数据的信息,具有更清晰和稳定的成像效果;在显示二维图像时,根据姿态数据使二维图像正立显示,使得二维图像更接近于人眼的观察效果。According to the
在本发明实施例中,第一显示模式指用于显示立体图像的显示模式,第二显示模式指用于显示二维图像的显示模式,示例性地,用户可以根据需要手动选择采用第一显示模式或第二显示模式作为当前应用的显示模式。当用户选择采用第一显示模式时,根据第一图像数据和第二图像数据生成立体图像数据,并在显示器上显示立体图像;当用户选择采用第二显示模式时,根据第一图像数据和第二图像数据生成二维图像数据,并在显示器上显示二维图像。In the embodiment of the present invention, the first display mode refers to the display mode for displaying stereoscopic images, and the second display mode refers to the display mode for displaying two-dimensional images. For example, the user can manually choose to use the first display mode as needed mode or the second display mode as the display mode of the current application. When the user chooses to adopt the first display mode, generate stereoscopic image data according to the first image data and the second image data, and display the stereoscopic image on the display; The two-dimensional image data generates two-dimensional image data, and displays the two-dimensional image on the display.
用户也可以选择自动切换当前应用的显示模式,当用户选择自动切换显示模式时,根据姿态传感器采集的姿态数据在第一显示模式和第二显示模式中自动确定当前应用的显示模式。The user can also choose to automatically switch the display mode of the current application. When the user chooses to automatically switch the display mode, the display mode of the current application is automatically determined between the first display mode and the second display mode according to the attitude data collected by the attitude sensor.
其中,姿态传感器可以设置在内窥镜的任意位置,与第一图像传感器和第二图像传感器同步运动,具体可以包括加速度计、陀螺仪、磁力计等。由于第一传感器和第二传感器设置在内窥镜的插入部内,插入部围绕管镜轴旋转时,第一图像传感器和第二图像传感器也围绕管镜轴旋转,因此,姿态传感器采集的姿态数据包括所述插入部的旋转角度,即插入部围绕管镜轴的旋转角度。该旋转角度也可以称为插入部的翻滚角。Wherein, the posture sensor can be arranged at any position of the endoscope, and moves synchronously with the first image sensor and the second image sensor, and specifically can include an accelerometer, a gyroscope, a magnetometer, and the like. Since the first sensor and the second sensor are arranged in the insertion part of the endoscope, when the insertion part rotates around the tube lens axis, the first image sensor and the second image sensor also rotate around the tube lens axis, therefore, the attitude data collected by the attitude sensor It includes the rotation angle of the insertion part, that is, the rotation angle of the insertion part around the tube lens axis. This rotation angle can also be called the roll angle of the insertion part.
如图3所示,当插入部的旋转角度为0°或180°时,第一图像数据和第二图像数据只存在水平视差,而不存在垂直视差,具有最佳的立体视觉效果;当插入部的旋转角度处于第一旋转范围(-θ至θ)或第三旋转范围(90°+θ至180°+θ)时,第一图像数据和第二图像数据之间的垂直视差较小,由第一图像和第二图像构成的立体图像也具有较好的立体效果。若插入部的旋转角度处于第二旋转范围(θ至90°+θ)或第四旋转范围(180°+θ至-θ)时,垂直视差变大,显示立体图像将无法得到较好的立体效果。As shown in Figure 3, when the rotation angle of the insertion part is 0° or 180°, there is only horizontal parallax between the first image data and the second image data, and there is no vertical parallax, which has the best stereoscopic effect; When the rotation angle of the part is in the first rotation range (-θ to θ) or the third rotation range (90°+θ to 180°+θ), the vertical parallax between the first image data and the second image data is small, The stereoscopic image formed by the first image and the second image also has a better stereoscopic effect. If the rotation angle of the insertion part is in the second rotation range (θ to 90°+θ) or the fourth rotation range (180°+θ to -θ), the vertical parallax will become larger, and it will not be possible to obtain a better stereoscopic image. Effect.
因此,根据姿态传感器采集的姿态数据确定当前应用的显示模式具体包括:当旋转角度与基准角度之间的差值小于预设阈值时,将第一模式确定为当前应用的显示模式,以显示立体图像;当旋转角度与基准角度之间的差值大于或等于预设角度时,将第二模式确定为当前应用的显示模式,以显示二维图像。其中,基准角度可以是使第一图像数据和第二图像数据不存在垂直视差的角度,在图3中为0°和180°。Therefore, determining the currently applied display mode according to the attitude data collected by the attitude sensor specifically includes: when the difference between the rotation angle and the reference angle is less than a preset threshold, determining the first mode as the currently applied display mode to display the three-dimensional Image; when the difference between the rotation angle and the reference angle is greater than or equal to the preset angle, determine the second mode as the currently applied display mode to display a two-dimensional image. Wherein, the reference angle may be an angle at which there is no vertical parallax between the first image data and the second image data, which are 0° and 180° in FIG. 3 .
如上所述,若根据用户指令确定当前应用第二显示模式,或者,根据姿态数据确定当前应用第二显示模式时,根据第一图像数据和第二图像数据生成二维图像数据,并根据二维图像数据在显示器上显示二维图像。在本发明实施例中,二维图像数据包含了第一图像数据中的至少部分信息和第二图像数据中的至少部分信息,而非只采用其中一路图像数据,即使两路图像数据中的一路发生遮挡或脏污等情况,也能够避免造成画面内容丢失,确保成像效果的稳定性。As mentioned above, if it is determined according to the user instruction that the second display mode is currently applied, or when it is determined according to the gesture data that the second display mode is currently applied, two-dimensional image data is generated according to the first image data and the second image data, and the two-dimensional image data is generated according to the two-dimensional The image data displays a two-dimensional image on a display. In the embodiment of the present invention, the two-dimensional image data contains at least part of the information in the first image data and at least part of the information in the second image data, instead of only using one of the image data, even if one of the two image data In the event of occlusion or dirt, it can also avoid loss of screen content and ensure the stability of the imaging effect.
在本发明实施例中,当对第一图像数据和第二图像数据融合生成二维图像数据时,可以取其中一路图像数据的细节信息与另一路图像数据的全局信息进行融合。其中,图像数据的全局信息可以包括亮度信息。具体地,在进行图像数据的融合时,可以根据第一图像数据的第一亮度信息和第二图像数据的第二亮度信息,确定二维图像数据的亮度信息。由于二维图像数据的亮度信息融合了两路图像的亮度信息,因此当切换用于提供细节信息的图像数据时,最终显示的二维图像的亮度依然不会发生过于明显的变化。In the embodiment of the present invention, when the first image data and the second image data are fused to generate two-dimensional image data, the detail information of one of the image data may be fused with the global information of the other image data. Wherein, the global information of the image data may include brightness information. Specifically, when merging image data, the brightness information of the two-dimensional image data may be determined according to the first brightness information of the first image data and the second brightness information of the second image data. Since the brightness information of the two-dimensional image data is fused with the brightness information of the two images, when the image data for providing detail information is switched, the brightness of the finally displayed two-dimensional image still does not change too obviously.
在确定用于提供细节信息的图像数据时,可以检测第一图像数据和第二图像数据是否存在异常,其中,图像数据存在异常可以包括图像数据存在遮挡、脏污等情况。当两路图像数据均不存在异常时,取任意一路图像提供细节信息均能够保证二维图像的清晰度,因此可以取其中任意一路图像数据的细节信息,同时融合两路图像的亮度信息,最终得到融合后的二维图像数据,即既可以根据第一图像数据的第一亮度信息对第二图像数据的第二亮度信息进行调整,以得到二维图像数据,也可以根据第二图像数据的第二亮度信息对第一图像数据的第一亮度信息进行调整,以得到二维图像数据。可选地,当两路图像数据均不存在异常时,也可以比较二者的清晰度,取清晰度更高的一路图像提供细节信息。When determining the image data used to provide detailed information, it may be detected whether the first image data and the second image data are abnormal, wherein the abnormality of the image data may include the image data being blocked or dirty. When there is no abnormality in the two-way image data, taking any one-way image to provide detailed information can ensure the clarity of the two-dimensional image, so the detail information of any one-way image data can be taken, and the brightness information of the two-way images can be fused at the same time, and finally To obtain the fused two-dimensional image data, that is, the second brightness information of the second image data can be adjusted according to the first brightness information of the first image data to obtain two-dimensional image data, or the second brightness information of the second image data can be adjusted The second brightness information adjusts the first brightness information of the first image data to obtain two-dimensional image data. Optionally, when there is no abnormality in the image data of the two channels, the sharpness of the two images may also be compared, and the image with a higher definition is selected to provide detailed information.
反之,当其中一路图像存在异常时,可以将不存在异常的一路图像作为提供细节信息的一路图像,另一路图像数据用于提供亮度信息,以确保二维图像的清晰度。其中,当检测到第一图像数据存在异常时,取第二图像数据的细节信息,根据第一图像数据的第一亮度信息对第二图像数据的第二亮度信息进行调整,以得到二维图像数据。同理,当检测到第二图像数据存在异常时,取第一图像数据的细节信息,根据第二图像数据的第二亮度信息对第一图像数据的第一亮度信息进行调整,以得到二维图像数据。Conversely, when one of the images is abnormal, the image without abnormality can be used as an image providing detail information, and the other image data is used to provide brightness information to ensure the clarity of the two-dimensional image. Wherein, when an abnormality is detected in the first image data, the detailed information of the second image data is obtained, and the second brightness information of the second image data is adjusted according to the first brightness information of the first image data to obtain a two-dimensional image data. Similarly, when an abnormality is detected in the second image data, the detailed information of the first image data is obtained, and the first brightness information of the first image data is adjusted according to the second brightness information of the second image data to obtain a two-dimensional image data.
参见图4,其中示出了当第一图像数据存在遮挡的情况下,根据第一图像数据和第二图像数据生成二维图像数据的示意图。由于第一图像数据存在遮挡,因此取第二图像数据的细节信息,同时融合了第一图像数据和第二图像数据的亮度信息,得到最终的二维图像数据,使得二维图像清晰显示,并且亮度介于第一图像和第二图像之间。参见图5,其中示出了当第一图像数据和第二图像数据均存在遮挡的情况下,根据第一图像数据和第二图像数据生成二维图像数据的示意图。此时,取第一图像数据或第二图像数据的细节信息均能保证二维图像数据的清晰度,并使二维图像的亮度介于第一图像和第二图像之间。Referring to FIG. 4 , it shows a schematic diagram of generating two-dimensional image data according to the first image data and the second image data when the first image data is occluded. Because the first image data is occluded, the detail information of the second image data is taken, and the brightness information of the first image data and the second image data are fused to obtain the final two-dimensional image data, so that the two-dimensional image is displayed clearly, and The brightness is between the first image and the second image. Referring to FIG. 5 , it shows a schematic diagram of generating two-dimensional image data according to the first image data and the second image data when both the first image data and the second image data are occluded. At this time, obtaining the detail information of the first image data or the second image data can ensure the definition of the two-dimensional image data, and make the brightness of the two-dimensional image between the first image and the second image.
示例性地,检测第一图像数据和第二图像数据是否存在异常具体包括:首先,确定第一图像数据与第二图像数据之间的相似度。若第一图像数据与第二图像数据之间的相似度小于第一阈值th1时,则认为其中一路图像可能存在被遮挡/脏污的情况;在此情况下,进一步计算第一图像数据的第一清晰度和第二图像数据的第二清晰度,并认为清晰度较低的一路图像数据是被遮挡/脏污的一路图像数据,即若第一清晰度低于第二清晰度,则确定第一图像数据存在异常,若第一清晰度高于第二清晰度,则确定第二图像数据存在异常。Exemplarily, detecting whether there is abnormality in the first image data and the second image data specifically includes: first, determining the similarity between the first image data and the second image data. If the similarity between the first image data and the second image data is less than the first threshold th1, it is considered that one of the images may be blocked/dirty; in this case, further calculate the first image data. The first definition and the second definition of the second image data, and consider that the lower-resolution image data is the blocked/dirty image data, that is, if the first definition is lower than the second definition, it is determined The first image data is abnormal, and if the first definition is higher than the second definition, it is determined that the second image data is abnormal.
其中,在确定第一图像数据与第二图像数据之间的相似度时,可以基于图像结构相似度(Structure Similarity Index Measure,SSIM)进行第一图像数据和第二图像数据的相似度描述,计算公式为:Wherein, when determining the similarity between the first image data and the second image data, the similarity description between the first image data and the second image data can be performed based on the image structure similarity (Structure Similarity Index Measure, SSIM), and the calculation The formula is:
其中,L和R分别表示第一图像数据和第二图像数据,μL和μR分别为第一图像数据和第二图像数据的像素均值,σL和σR分别为第一图像数据和第二图像数据的像素标准差,σLR为第一图像数据和第二图像数据的像素协方差,c1和c2为修正常数。若SSIM(L,R)<th1,则认为第一图像数据与第二图像数据中的一路图像数据存在异常。当然,本发明实施例中对相似度的评价指标不限于SSIM,也可以采用哈希算法、直方图算法等其他图像相似度判断算法来计算第一图像数据与第二图像数据之间的相似度。Among them, L and R represent the first image data and the second image data respectively, μ L and μ R are the pixel mean values of the first image data and the second image data respectively, σ L and σ R are the first image data and the second image data respectively The pixel standard deviation of the two image data, σ LR is the pixel covariance of the first image data and the second image data, and c1 and c2 are correction constants. If SSIM(L, R)<th1, it is considered that there is abnormality in one path of image data among the first image data and the second image data. Of course, the evaluation index for similarity in the embodiment of the present invention is not limited to SSIM, and other image similarity judgment algorithms such as hash algorithm and histogram algorithm can also be used to calculate the similarity between the first image data and the second image data .
在计算第一图像数据和第二图像数据的清晰度时,同样可以采用多种不同的清晰度评价指标。例如,可以基于Sobel算子的边缘提取算法,提取第一图像数据和第二图像数据的边缘强度,并根据边缘强度计算第一图像数据或第二图像数据的清晰度F,计算公式为:When calculating the sharpness of the first image data and the second image data, multiple different sharpness evaluation indexes can also be used. For example, the edge strength of the first image data and the second image data can be extracted based on the edge extraction algorithm of the Sobel operator, and the sharpness F of the first image data or the second image data can be calculated according to the edge strength, and the calculation formula is:
其中,img表示输入图像,代表第一图像数据或第二图像数据。此外,也可以采用Gaussian算子、Laplacian算子、图像方差等其他图像清晰度计算算法来描述第一图像数据或第二图像数据的清晰度,并将清晰度较低的一路图像数据确定为存在遮挡、脏污等异常情况的图像数据。Wherein, img represents an input image, representing the first image data or the second image data. In addition, other image definition calculation algorithms such as Gaussian operator, Laplacian operator, and image variance can also be used to describe the definition of the first image data or the second image data, and the path of image data with lower definition is determined to exist Image data of abnormal conditions such as occlusion and dirt.
融合两路图像数据的亮度信息具体可以包括对第一图像数据的亮度信息和第二图像数据的亮度信息进行加权求和,以得到最终的二维图像数据的亮度信息。若第一图像数据和第二图像数据均不存在异常,则在加权求和时,第一图像数据的权重W1和第二图像数据的权重W2接近,例如W1=0.5,W2=0.5,如此,即使是切换了提供细节信息的图像数据,最终显示的二维图像的亮度也不会有明显的变化。Fusing the brightness information of the two channels of image data may specifically include performing weighted summation of the brightness information of the first image data and the brightness information of the second image data, so as to obtain the final brightness information of the two-dimensional image data. If there is no abnormality in the first image data and the second image data, then in weighted summation, the weight W1 of the first image data and the weight W2 of the second image data are close, for example W1=0.5, W2=0.5, so, Even if the image data providing detailed information is switched, the brightness of the finally displayed two-dimensional image will not change significantly.
当第一图像数据存在异常时,根据第一图像数据的第一亮度信息对第二图像数据的第二亮度信息进行调整。具体地,对第一图像数据的平均亮度和第二图像数据的平均亮度进行加权求和,以得到第一加权亮度;根据第一加权亮度与第二图像数据的平均亮度的比值,得到第一亮度系数;根据第一亮度系数对第二图像数据中各像素的亮度值进行调整,以得到二维图像数据中各像素的亮度值。When the first image data is abnormal, the second brightness information of the second image data is adjusted according to the first brightness information of the first image data. Specifically, weighted summation is performed on the average brightness of the first image data and the average brightness of the second image data to obtain the first weighted brightness; according to the ratio of the first weighted brightness to the average brightness of the second image data, the first Brightness coefficient: adjust the brightness value of each pixel in the second image data according to the first brightness coefficient, so as to obtain the brightness value of each pixel in the two-dimensional image data.
其中,第一图像数据的平均亮度为第一图像数据中所有像素的亮度的平均值,其中每个像素的亮度为将图像数据从RGB域转为YCbCr域后亮度通道Y的值。当第一图像数据为存在异常的图像数据时,输出的第二图像数据的亮度可以通过以下公式计算:Wherein, the average brightness of the first image data is the average value of the brightness of all pixels in the first image data, wherein the brightness of each pixel is the value of the brightness channel Y after converting the image data from the RGB domain to the YCbCr domain. When the first image data is abnormal image data, the brightness of the output second image data can be calculated by the following formula:
Yout=Y2*(W1*mean(Y1)+W2*mean(Y2))/mean(Y2) (公式4)Yout=Y2*(W1*mean(Y1)+W2*mean(Y2))/mean(Y2) (Formula 4)
其中,Y1和Y2分别是指第一图像数据和第二图像数据的亮度通道,其中含有第一图像数据或第二图像数据的细节信息。mean(Y1)和mean(Y2)分别为第一图像数据的平均亮度和第二图像数据的平均亮度,代表了第一图像数据和第二图像数据的全局亮度信息;W1为第一图像数据的权重系数,W2为第二图像数据的权重系数。由公式4可知,最终输出的二维图像数据的亮度通道Yout包含了第二图像数据的细节信息(Y2),并融合了第一图像数据和第二图像数据的全局亮度信息(mean(Y1)和mean(Y2))。Wherein, Y1 and Y2 respectively refer to brightness channels of the first image data and the second image data, which contain detailed information of the first image data or the second image data. mean(Y1) and mean(Y2) are the average brightness of the first image data and the average brightness of the second image data respectively, representing the global brightness information of the first image data and the second image data; W1 is the first image data Weight coefficient, W2 is the weight coefficient of the second image data. It can be seen from formula 4 that the luminance channel Yout of the final output two-dimensional image data contains the detail information (Y2) of the second image data, and integrates the global luminance information (mean(Y1) of the first image data and the second image data and mean(Y2)).
进一步地,由于存在遮挡或脏污的第一图像数据亮度明显偏低,为了避免第一图像数据过于明显地降低融合得到的二维图像的亮度,在对第一图像数据的平均亮度mean(Y1)和第二图像数据的平均亮度mean(Y2)进行加权求和,以得到第一加权亮度时,第二图像数据的权重系数W1大于第一图像数据的权重系数W2,例如W1=0.05,W2=0.95。Further, since the brightness of the first image data that is occluded or dirty is obviously low, in order to prevent the first image data from reducing the brightness of the fused two-dimensional image too significantly, the average brightness of the first image data mean(Y1 ) and the average brightness mean(Y2) of the second image data are weighted and summed to obtain the first weighted brightness, the weight coefficient W1 of the second image data is greater than the weight coefficient W2 of the first image data, such as W1=0.05, W2 = 0.95.
类似地,根据第二图像数据的第二亮度信息对第一图像数据的第一亮度信息进行调整包括:对第二图像数据的平均亮度和第一图像数据的平均亮度进行加权求和,以得到第二加权亮度;根据第二加权亮度与第一图像数据的平均亮度的比值,得到第二亮度系数;根据第二亮度系数对第一图像数据中各像素的亮度值进行调整,以得到二维图像数据中各像素的亮度值;具体可以参照上文的公式4,在此不做赘述。Similarly, adjusting the first brightness information of the first image data according to the second brightness information of the second image data includes: performing weighted summation of the average brightness of the second image data and the average brightness of the first image data to obtain second weighted brightness; according to the ratio of the second weighted brightness to the average brightness of the first image data, a second brightness coefficient is obtained; according to the second brightness coefficient, the brightness value of each pixel in the first image data is adjusted to obtain a two-dimensional The luminance value of each pixel in the image data; for details, please refer to the above formula 4, which will not be repeated here.
除了可以融合两路图像数据的亮度信息以外,在一些实施例中,还可以融合两路图像的颜色信息。具体地,可以根据第一图像数据的第一颜色信息和第二图像数据的第二颜色信息,确定二维图像数据的颜色信息。In addition to the luminance information of the two channels of image data, in some embodiments, the color information of the two channels of image data can also be fused. Specifically, the color information of the two-dimensional image data may be determined according to the first color information of the first image data and the second color information of the second image data.
与亮度信息的融合类似,当采用基于颜色信息的图像融合方式时,可以检测第一图像数据和第二图像数据是否存在异常,并取不存在异常的一路图像数据提供细节信息,取存在异常的一路图像数据提供颜色信息。具体地,当检测到第一图像数据存在异常时,根据第一图像数据的第一颜色信息对第二图像数据的第二颜色信息进行调整,以得到二维图像数据;当检测到第二图像数据存在异常时,根据第二图像数据的第二颜色信息对第一图像数据的第一颜色信息进行调整,以得到二维图像数据。当检测到第一图像数据和第二图像数据均不存在异常时,既可以根据第一图像数据的第一颜色信息对第二图像数据的第二颜色信息进行调整,也可以根据第二图像数据的第二颜色信息对第一图像数据的第一颜色信息进行调整。Similar to the fusion of brightness information, when the image fusion method based on color information is used, it can detect whether there is anomaly in the first image data and the second image data, and provide detailed information for the image data without abnormality, and take the image data for abnormality. One channel of image data provides color information. Specifically, when an abnormality is detected in the first image data, the second color information of the second image data is adjusted according to the first color information of the first image data to obtain two-dimensional image data; when the second image data is detected When the data is abnormal, the first color information of the first image data is adjusted according to the second color information of the second image data to obtain two-dimensional image data. When it is detected that there is no abnormality in both the first image data and the second image data, the second color information of the second image data can be adjusted according to the first color information of the first image data, or the second image data can be adjusted according to the second image data. The second color information of the first image data is adjusted to the first color information.
其中,当根据第一图像数据的第一颜色信息对第二图像数据的第二颜色信息进行调整时,可以对第一图像数据的平均颜色值和第二图像数据的平均颜色值进行加权求和,以得到第一加权颜色值;根据第一加权颜色值与第二图像数据的平均颜色值的比值,得到第一颜色系数;根据第一颜色系数对第二图像数据中各像素的颜色值进行调整,以得到二维图像数据中各像素的颜色值,即:Wherein, when the second color information of the second image data is adjusted according to the first color information of the first image data, the average color value of the first image data and the average color value of the second image data can be weighted and summed , to obtain the first weighted color value; according to the ratio of the first weighted color value to the average color value of the second image data, the first color coefficient is obtained; according to the first color coefficient, the color value of each pixel in the second image data is processed Adjust to get the color value of each pixel in the two-dimensional image data, namely:
Cout=C2*(W3*mean(C1)+W4*mean(C2))/mean(C2) (公式5)Cout=C2*(W3*mean(C1)+W4*mean(C2))/mean(C2) (Formula 5)
其中,C1和C2分别是指第一图像数据和第二图像数据的颜色通道,具体可以是RGB通道中任一路颜色通道,其中含有第一图像数据或第二图像数据的细节信息。mean(C1)和mean(C2)分别为第一图像数据的平均颜色值和第二图像数据的平均颜色值,代表了第一图像数据和第二图像数据的全局颜色信息;W3为第一图像数据的权重系数,W4为第二图像数据的权重系数。Wherein, C1 and C2 respectively refer to the color channels of the first image data and the second image data, and specifically can be any color channel in the RGB channel, which contains the detailed information of the first image data or the second image data. mean(C1) and mean(C2) are the average color value of the first image data and the average color value of the second image data respectively, representing the global color information of the first image data and the second image data; W3 is the first image The weight coefficient of the data, W4 is the weight coefficient of the second image data.
进一步地,若第一图像数据存在异常,则在对第一图像数据的平均颜色值C1和第二图像数据的平均颜色值C2进行加权求和时,第二图像数据的权重系数W3大于第一图像数据的权重系数W4,以避免存在异常的第一图像数据过于明显地影响二维图像的颜色。Further, if there is an abnormality in the first image data, when performing weighted summation of the average color value C1 of the first image data and the average color value C2 of the second image data, the weight coefficient W3 of the second image data is greater than the first The weight coefficient W4 of the image data is used to prevent the color of the two-dimensional image from being too significantly affected by the abnormal first image data.
反之,若第二图像数据存在异常,则可以对第一图像数据的平均颜色值和第二图像数据的平均颜色值进行加权求和,以得到第二加权颜色值;根据第二加权颜色值与第二图像数据的平均颜色值的比值,得到第二颜色系数;根据第二颜色系数对第一图像数据中各像素的颜色值进行调整,以得到二维图像数据中各像素的颜色值。其中,第一图像数据的权重系数大于第二图像数据的权重系数。当第一图像数据和第二图像数据均不存在异常时,则第一图像数据的权重系数W3和第二图像数据的权重系数W4可以接近或相等。Conversely, if there is an abnormality in the second image data, the average color value of the first image data and the average color value of the second image data can be weighted and summed to obtain the second weighted color value; according to the second weighted color value and The ratio of the average color values of the second image data to obtain a second color coefficient; adjust the color value of each pixel in the first image data according to the second color coefficient to obtain the color value of each pixel in the two-dimensional image data. Wherein, the weight coefficient of the first image data is greater than the weight coefficient of the second image data. When there is no abnormality in the first image data and the second image data, the weight coefficient W3 of the first image data and the weight coefficient W4 of the second image data may be close to or equal to each other.
根据第一图像数据和第二图像数据得到二维图像数据以后,控制显示器根据二维图像数据显示二维图像,并根据姿态传感器采集的姿态数据使二维图像正立显示。根据姿态传感器采集的姿态数据使二维图像正立显示具体可以包括根据插入部的旋转角度旋转二维图像的方向,使得在插入部围绕管镜轴旋转时,二维图像的方向不变。参见图3,在对二维图像正立显示时,虽然插入部已偏离基准角度,但二维图像的显示方向可以与基准角度下的显示方向一致。二维图像的正立方向与立体图像的正立方向是一致的,在一些实施例中,在第一显示模式下,立体图像正立显示,当从第一显示模式切换到第二显示模式时,二维图像同样正立显示,使得图像的切换过程相对平稳过渡。After the two-dimensional image data is obtained according to the first image data and the second image data, the display is controlled to display the two-dimensional image according to the two-dimensional image data, and the two-dimensional image is displayed upright according to the posture data collected by the posture sensor. Displaying the 2D image upright according to the attitude data collected by the attitude sensor may specifically include rotating the direction of the 2D image according to the rotation angle of the insertion part, so that the direction of the 2D image remains unchanged when the insertion part rotates around the tube lens axis. Referring to FIG. 3 , when the two-dimensional image is displayed upright, although the insertion part has deviated from the reference angle, the display direction of the two-dimensional image can be consistent with the display direction at the reference angle. The upright direction of the two-dimensional image is consistent with the upright direction of the stereoscopic image. In some embodiments, in the first display mode, the stereoscopic image is displayed upright. When switching from the first display mode to the second display mode , the two-dimensional image is also displayed upright, so that the switching process of the image is relatively smooth.
在一些实施例中,当应用第二显示模式时,可以允许用户选择是否使得二维图像正立显示。当接收到使二维图像正立显示的设置指令时,根据姿态数据使得二维图像正立显示。当接收到使二维图像非正立显示的设置指令时,以非正立状态显示二维图像,使二维图像的方向与第一图像数据和第二图像数据对应的空间位置相关联,即当插入部绕管镜轴旋转时,显示器上显示的二维图像也随之旋转。In some embodiments, when the second display mode is applied, the user may be allowed to choose whether to make the two-dimensional image be displayed upright. When receiving a setting instruction to display the two-dimensional image upright, the two-dimensional image is displayed upright according to the posture data. When receiving a setting instruction to display a two-dimensional image non-erect, display the two-dimensional image in a non-erect state, and associate the direction of the two-dimensional image with the spatial position corresponding to the first image data and the second image data, that is When the insertion part is rotated around the tube lens axis, the two-dimensional image displayed on the monitor is also rotated.
当用户选择应用第一显示模式,或者根据姿态传感器采集到的姿态数据确定应用第一显示模式时,根据第一图像数据和第二图像数据生成立体图像数据,并控制显示器显示立体图像。立体图像包括存在一定视差的第一图像和第二图像,分别用于输出给用户的左眼和右眼,并通过第一图像和第二图像之间的水平视差实现立体视觉效果。因此,立体图像数据融合了第一图像数据和第二图像数据中的全部信息。When the user chooses to apply the first display mode, or determines to apply the first display mode according to the attitude data collected by the attitude sensor, generate stereoscopic image data according to the first image data and the second image data, and control the display to display the stereoscopic image. The stereoscopic image includes a first image and a second image with a certain parallax, which are output to the user's left eye and right eye respectively, and the stereoscopic effect is realized through the horizontal parallax between the first image and the second image. Therefore, the stereoscopic image data combines all the information in the first image data and the second image data.
立体图像的输出方式可以有多种,例如,可以通过双显示器输出或单显示器输出。双显示器输出包括头盔式显示器、双屏显示器等,使观测者的左右眼分别查看不同显示器上显示的第一图像和第二图像。单显示器输出主要包括主动快门式立体显示方式、被动偏振立体显示方式等。主动快门式立体显示方式需要与液晶光阀眼镜配合使用,被动偏振立体显示方式需要与偏振眼镜配合使用,二者均通过显示器与眼镜的配合实现左右眼的图像分离。There may be multiple ways to output the stereoscopic image, for example, it may be output through dual monitors or single monitor. The dual-display output includes a helmet-mounted display, a dual-screen display, etc., so that the observer's left and right eyes respectively view the first image and the second image displayed on different displays. Single display output mainly includes active shutter stereoscopic display methods, passive polarization stereoscopic display methods, etc. The active shutter stereoscopic display method needs to be used in conjunction with liquid crystal light valve glasses, and the passive polarization stereoscopic display method needs to be used in conjunction with polarized glasses. Both of them realize the image separation of the left and right eyes through the cooperation of the display and the glasses.
在显示立体图像时,可以根据姿态数据使得立体图像正立显示,以避免操作者的头部跟随图像转动,造成立体效果丢失。具体地,可以根据插入部的旋转角度旋转立体图像,使得第一图像和第二图像在插入部围绕管镜轴旋转的过程中始终保持与基准角度下的图像方向一致,如图3所示。When displaying a stereoscopic image, the stereoscopic image can be displayed upright according to the attitude data, so as to avoid the loss of the stereoscopic effect caused by the head of the operator following the rotation of the image. Specifically, the stereoscopic image can be rotated according to the rotation angle of the insertion part, so that the first image and the second image are always consistent with the image direction at the reference angle during the rotation of the insertion part around the tube lens axis, as shown in FIG. 3 .
或者,在控制显示器根据立体图像数据显示立体图像时,也可以允许用户选择是否使得立体图像正立显示。当接收到使立体图像正立显示的设置指令时,如上所述的根据姿态数据使得立体图像正立显示。当接收到使立体图像非正立显示的设置指令时,以非正立状态显示所述立体图像,使立体图像的方向与第一图像数据和第二图像数据对应的空间位置相关联,即当用户旋转操作部并带动插入部旋转时,显示器上显示的立体图像也随之旋转。Alternatively, when the display is controlled to display the stereoscopic image according to the stereoscopic image data, the user may also be allowed to choose whether to display the stereoscopic image upright. When receiving the setting instruction to display the stereoscopic image upright, the stereoscopic image is displayed upright according to the posture data as described above. When receiving a setting instruction to display the stereoscopic image non-erectly, the stereoscopic image is displayed in a non-erect state, and the direction of the stereoscopic image is associated with the spatial positions corresponding to the first image data and the second image data, that is, when When the user rotates the operation part and drives the insertion part to rotate, the stereoscopic image displayed on the display also rotates accordingly.
综上所述,本发明实施例的用于3D内窥镜成像系统的成像方法200能够根据姿态数据切换显示模式,在第一显示模式下能够确保立体图像具有较好的立体效果,在第二显示模式下显示的二维图像综合了两路图像数据的信息,在其中一路图像存在异常时也能向用户展示组织信息。In summary, the
下面参照图6描述本发明另一实施例的用于3D内窥镜成像系统的成像方法。该方法可以由参照图1描述的3D内窥镜成像系统实现,具体可以由3D内窥镜成像系统的摄像主机实现。图6是本发明一实施例中的用于3D内窥镜成像系统的成像方法600的示意性流程图,具体包括如下步骤:An imaging method for a 3D endoscope imaging system according to another embodiment of the present invention will be described below with reference to FIG. 6 . The method can be implemented by the 3D endoscope imaging system described with reference to FIG. 1 , and specifically can be implemented by a camera host of the 3D endoscope imaging system. FIG. 6 is a schematic flowchart of an
在步骤S610,获取第一图像数据和第二图像数据;In step S610, acquiring first image data and second image data;
在步骤S620,在第一显示模式和第二显示模式中确定当前应用的显示模式;In step S620, the display mode of the current application is determined among the first display mode and the second display mode;
在步骤S630,当确定到所述当前应用的显示模式为所述第一显示模式时,根据所述第一图像数据和所述第二图像数据生成立体图像数据,并控制显示器根据所述立体图像数据显示立体图像;In step S630, when it is determined that the currently applied display mode is the first display mode, generate stereoscopic image data according to the first image data and the second image data, and control the display to Data display stereoscopic image;
在步骤S640,当确定到所述当前应用的显示模式为所述第二显示模式时,根据所述第一图像数据和所述第二图像数据生成二维图像数据,并控制所述显示器根据所述二维图像数据显示二维图像。In step S640, when it is determined that the currently applied display mode is the second display mode, generate two-dimensional image data according to the first image data and the second image data, and control the display according to the The two-dimensional image data displays a two-dimensional image.
在一些实施例中,在步骤S610,第一图像数据为3D内窥镜成像系统的第一图像传感器采集的,第二图像数据为3D内窥镜成像系统的第二图像传感器采集的。第一图像数据和第二图像数据之间彼此具有视差,从而能够使得在同时显示第一图像和第二图像时产生立体效果。In some embodiments, in step S610, the first image data is collected by the first image sensor of the 3D endoscopic imaging system, and the second image data is collected by the second image sensor of the 3D endoscopic imaging system. There is a parallax between the first image data and the second image data, so that a stereoscopic effect can be produced when the first image and the second image are displayed simultaneously.
在步骤S620,在第一显示模式和第二显示模式中确定当前应用的显示模式。具体地,可以根据用户指令和/或姿态数据,在第一显示模式和第二显示模式中确定当前应用的显示模式。具体地,当用户指令指示采用第一显示模式时,将第一显示模式确定为当前应用的显示模式,以显示立体图像。当用户指令指示采用第二显示模式时,将第二显示模式确定为当前应用的显示模式,以显示二维图像。当用户指令指示自动确定显示模式时,根据姿态数据在第一显示模式和第二显示模式中确定当前应用的显示模式。In step S620, a currently applied display mode is determined among the first display mode and the second display mode. Specifically, the display mode of the current application may be determined in the first display mode and the second display mode according to user instructions and/or gesture data. Specifically, when the user instruction indicates to adopt the first display mode, the first display mode is determined as the currently applied display mode to display the stereoscopic image. When the user instruction indicates to adopt the second display mode, the second display mode is determined as the currently applied display mode to display the two-dimensional image. When the user instruction indicates to automatically determine the display mode, the currently applied display mode is determined among the first display mode and the second display mode according to the gesture data.
其中,姿态数据是在获取第一图像数据和第二图像数据的过程中获取的,用于指示第一图像数据和第二图像数据对应的空间位置。示例性地,3D内窥镜成像系统包括内窥镜,内窥镜包括插入部及操作部,第一传感器和第二传感器设置于插入部内,插入部用于插入患者的待观察部位,以获取患者的待观察部位的第一图像数据和第二图像数据。姿态数据可以是姿态传感器采集的,姿态传感器可以设置在插入部或操作部的任意位置。姿态数据包括插入部的旋转角度,由于第一图像传感器和第二图像传感器设置在插入部内,插入部的旋转角度能够反映第一图像传感器和第二图像传感器的空间位置。Wherein, the pose data is acquired during the process of acquiring the first image data and the second image data, and is used to indicate the spatial positions corresponding to the first image data and the second image data. Exemplarily, the 3D endoscope imaging system includes an endoscope, the endoscope includes an insertion part and an operation part, the first sensor and the second sensor are arranged in the insertion part, and the insertion part is used to insert into the patient's part to be observed, so as to obtain First image data and second image data of a patient's site to be observed. The posture data can be collected by a posture sensor, and the posture sensor can be arranged at any position of the insertion part or the operation part. The posture data includes the rotation angle of the insertion part, and since the first image sensor and the second image sensor are arranged in the insertion part, the rotation angle of the insertion part can reflect the spatial positions of the first image sensor and the second image sensor.
示例性地,若根据姿态数据在第一显示模式和第二显示模式中确定当前应用的显示模式,则当插入部的旋转角度与基准角度之间的差值小于预设阈值时,将第一模式确定为当前应用的显示模式,以显示立体图像;当旋转角度与基准角度之间的差值大于或等于预设角度时,将第二模式确定为当前应用的显示模式,以显示二维图像。其中,基准角度可以是使第一图像数据和第二图像数据不存在垂直视差的角度。当插入部位于基准角度下时,第一图像数据和第二图像数据只存在水平视差,而不存在垂直视差,具有最佳的立体视觉效果;当插入部的旋转角度与基准角度之间的差值小于预设角度,第一图像数据和第二图像数据之间的垂直视差较小,由第一图像和第二图像构成的立体图像也具有较好的立体效果,因此也可以保持显示立体图像。若插入部的旋转角度与基准角度之间的差值大于预设角度,垂直视差变大,显示立体图像将无法得到较好的立体效果,因此切换为显示二维图像。For example, if the currently applied display mode is determined in the first display mode and the second display mode according to the gesture data, when the difference between the rotation angle of the insertion part and the reference angle is less than a preset threshold, the first The mode is determined as the currently applied display mode to display a stereoscopic image; when the difference between the rotation angle and the reference angle is greater than or equal to a preset angle, the second mode is determined as the currently applied display mode to display a two-dimensional image . Wherein, the reference angle may be an angle at which there is no vertical parallax between the first image data and the second image data. When the insertion part is at the reference angle, there is only horizontal parallax in the first image data and the second image data, and there is no vertical parallax, which has the best stereoscopic effect; when the difference between the rotation angle of the insertion part and the reference angle If the value is smaller than the preset angle, the vertical parallax between the first image data and the second image data is small, and the stereoscopic image composed of the first image and the second image also has a better stereoscopic effect, so the stereoscopic image can also be displayed . If the difference between the rotation angle of the insertion part and the reference angle is greater than the preset angle, the vertical parallax will become larger, and a better stereoscopic effect cannot be obtained when displaying a stereoscopic image, so it is switched to displaying a 2D image.
在步骤S630,当确定到应用第一显示模式时,根据第一图像数据和第二图像数据生成立体图像数据,并控制显示器根据立体图像数据显示立体图像。示例性地,立体图像包括存在一定视差的第一图像和第二图像,分别用于输出给用户的左眼和右眼,并通过第一图像和第二图像之间的水平视差实现立体视觉效果。因此,立体图像数据融合了第一图像数据和第二图像数据中的全部信息。立体图像的输出方式可以有多种,例如,可以通过双显示器输出或单显示器输出,本发明实施例对此不做限制。In step S630, when it is determined that the first display mode is applied, stereoscopic image data is generated according to the first image data and the second image data, and the display is controlled to display a stereoscopic image according to the stereoscopic image data. Exemplarily, the stereoscopic image includes a first image and a second image with a certain parallax, which are respectively output to the user's left eye and right eye, and the stereoscopic effect is achieved through the horizontal parallax between the first image and the second image . Therefore, the stereoscopic image data combines all the information in the first image data and the second image data. There may be multiple ways to output the stereoscopic image, for example, it may be output through dual displays or a single display, which is not limited in this embodiment of the present invention.
在显示立体图像时,可以根据姿态数据使得立体图像正立显示,以避免操作者的头部跟随图像转动,造成立体效果丢失。具体地,可以根据插入部的旋转角度旋转立体图像,使得第一图像和第二图像在插入部围绕管镜轴旋转的过程中始终保持与基准角度下的图像方向一致。或者,在控制显示器根据立体图像数据显示立体图像时,也可以允许用户选择是否使得立体图像正立显示。当接收到使立体图像正立显示的设置指令时,如上所述的根据姿态数据使得立体图像正立显示。当接收到使立体图像非正立显示的设置指令时,以非正立状态显示所述立体图像,使立体图像的方向与第一图像数据和第二图像数据对应的空间位置相关联,即当用户旋转操作部并带动插入部旋转时,显示器上显示的立体图像也随之旋转。When displaying a stereoscopic image, the stereoscopic image can be displayed upright according to the attitude data, so as to avoid the loss of the stereoscopic effect caused by the head of the operator following the rotation of the image. Specifically, the stereoscopic image may be rotated according to the rotation angle of the insertion part, so that the first image and the second image are always consistent with the image directions at the reference angle during the rotation of the insertion part around the tube lens axis. Alternatively, when the display is controlled to display the stereoscopic image according to the stereoscopic image data, the user may also be allowed to choose whether to display the stereoscopic image upright. When receiving the setting instruction to display the stereoscopic image upright, the stereoscopic image is displayed upright according to the posture data as described above. When receiving a setting instruction to display the stereoscopic image non-erectly, the stereoscopic image is displayed in a non-erect state, and the direction of the stereoscopic image is associated with the spatial positions corresponding to the first image data and the second image data, that is, when When the user rotates the operation part and drives the insertion part to rotate, the stereoscopic image displayed on the display also rotates accordingly.
在步骤S640,当确定到应用第二显示模式时,根据第一图像数据和第二图像数据生成二维图像数据,并控制显示器根据二维图像数据显示二维图像。示例性地,二维图像数据中包含第一图像数据中的部分信息以及第二图像数据中的部分信息。In step S640, when it is determined that the second display mode is applied, two-dimensional image data is generated according to the first image data and the second image data, and the display is controlled to display a two-dimensional image according to the two-dimensional image data. Exemplarily, the two-dimensional image data includes partial information in the first image data and partial information in the second image data.
在一些实施例中,在根据第一图像数据和第二图像数据生成二维图像数据时,可以综合二者的亮度信息,即根据第一图像数据的第一亮度信息和第二图像数据的第二亮度信息,确定二维图像数据的亮度信息。具体地,检测第一图像数据和第二图像数据是否存在异常;当检测到第一图像数据存在异常时,根据第一图像数据的第一亮度信息对第二图像数据的第二亮度信息进行调整,以得到二维图像数据;当检测到第二图像数据存在异常时,根据第二图像数据的第二亮度信息对第一图像数据的第一亮度信息进行调整,以得到二维图像数据。即可以利用存在异常的一路图像数据的亮度信息调节不存在异常的一路图像的亮度信息,使得二维图像数据包含不存在异常的一路图像的细节信息和两路图像的亮度信息,在切换用于提供细节信息的图像数据时,能够避免图像亮度产生过于强烈的变化。In some embodiments, when generating two-dimensional image data according to the first image data and the second image data, brightness information of the two can be integrated, that is, according to the first brightness information of the first image data and the second brightness information of the second image data Two, brightness information, for determining the brightness information of the two-dimensional image data. Specifically, detect whether the first image data and the second image data are abnormal; when the first image data is detected to be abnormal, adjust the second brightness information of the second image data according to the first brightness information of the first image data , to obtain two-dimensional image data; when abnormality is detected in the second image data, the first brightness information of the first image data is adjusted according to the second brightness information of the second image data, so as to obtain two-dimensional image data. That is, the brightness information of the abnormal image data can be used to adjust the brightness information of the non-abnormal image, so that the two-dimensional image data contains the detail information of the non-abnormal image and the brightness information of the two images. When providing image data with detailed information, it is possible to avoid too strong changes in image brightness.
示例性地,检测第一图像数据和第二图像数据是否存在异常,包括:确定第一图像数据与第二图像数据之间的相似度;当第一图像数据与第二图像数据之间的相似度小于第一阈值时,确定第一图像数据的第一清晰度和第二图像数据的第二清晰度,若第一清晰度低于第二清晰度,则确定第一图像数据存在异常,若第一清晰度高于第二清晰度,则确定第二图像数据存在异常。由于第一图像数据和第二图像数据均是针对待观察部位采集的,当二者均不存在异常时,相似度较大,因而可以在第一图像数据与第二图像数据之间的相似度小于第一阈值时确定其中一路图像数据存在异常。此时,可以计算二者的清晰度,并将清晰度较低的一路图像数据确定为存在异常。Exemplarily, detecting whether there is abnormality in the first image data and the second image data includes: determining the similarity between the first image data and the second image data; when the similarity between the first image data and the second image data When the sharpness is less than the first threshold, determine the first sharpness of the first image data and the second sharpness of the second image data, if the first sharpness is lower than the second sharpness, then determine that there is an abnormality in the first image data, if If the first definition is higher than the second definition, it is determined that the second image data is abnormal. Since both the first image data and the second image data are collected for the part to be observed, when there is no abnormality in the two, the similarity is relatively large, so the similarity between the first image data and the second image data can be When it is less than the first threshold, it is determined that there is an abnormality in one channel of image data. At this point, the sharpness of the two can be calculated, and the path of image data with lower sharpness is determined to be abnormal.
其中,根据第一图像数据的第一亮度信息对第二图像数据的第二亮度信息进行调整,以得到二维图像数据,包括:对第一图像数据的平均亮度和第二图像数据的平均亮度进行加权求和,以得到第一加权亮度;根据第一加权亮度与第二图像数据的平均亮度的比值,得到第一亮度系数;根据第一亮度系数对第二图像数据中各像素的亮度值进行调整,以得到二维图像数据中各像素的亮度值。同理,根据第二图像数据的第二亮度信息对第一图像数据的第一亮度信息进行调整,以得到二维图像数据,包括:对第二图像数据的平均亮度和第一图像数据的平均亮度进行加权求和,以得到第二加权亮度;根据第二加权亮度与第一图像数据的平均亮度的比值,得到第二亮度系数;根据第二亮度系数对第一图像数据中各像素的亮度值进行调整,以得到二维图像数据中各像素的亮度值。Wherein, adjusting the second brightness information of the second image data according to the first brightness information of the first image data to obtain two-dimensional image data includes: adjusting the average brightness of the first image data and the average brightness of the second image data Perform weighted summation to obtain the first weighted brightness; obtain the first brightness coefficient according to the ratio of the first weighted brightness to the average brightness of the second image data; calculate the brightness value of each pixel in the second image data according to the first brightness coefficient Adjustment is performed to obtain the brightness value of each pixel in the two-dimensional image data. Similarly, the first brightness information of the first image data is adjusted according to the second brightness information of the second image data to obtain two-dimensional image data, including: the average brightness of the second image data and the average brightness of the first image data The brightness is weighted and summed to obtain the second weighted brightness; according to the ratio of the second weighted brightness to the average brightness of the first image data, the second brightness coefficient is obtained; the brightness of each pixel in the first image data is calculated according to the second brightness coefficient The value is adjusted to obtain the brightness value of each pixel in the two-dimensional image data.
其中,在对第一图像数据的平均亮度和第二图像数据的平均亮度进行加权求和,以得到第一加权亮度时,第一图像数据的权重系数小于第二图像数据的权重系数;在对第二图像数据的平均亮度和第一图像数据的平均亮度进行加权求和,以得到第二加权亮度时,第一图像数据的权重系数大于第二图像数据的权重系数。即不存在异常的一路图像数据具有更大的权重系数,从而避免由于存在异常的图像数据的亮度过低而导致融合后的二维图像的亮度过低。Wherein, when the average brightness of the first image data and the average brightness of the second image data are weighted and summed to obtain the first weighted brightness, the weight coefficient of the first image data is smaller than the weight coefficient of the second image data; When the average brightness of the second image data and the average brightness of the first image data are weighted and summed to obtain the second weighted brightness, the weight coefficient of the first image data is greater than the weight coefficient of the second image data. That is, the channel of image data without abnormality has a larger weight coefficient, so as to avoid the brightness of the fused two-dimensional image being too low due to the brightness of abnormal image data being too low.
此外,当检测到第一图像数据和第二图像数据均不存在异常时,既可以根据第一图像数据的第一亮度信息对第二图像数据的第二亮度信息进行调整,以得到二维图像数据,也可以根据第二图像数据的第二亮度信息对第一图像数据的第一亮度信息进行调整,以得到二维图像数据。In addition, when it is detected that there is no abnormality in both the first image data and the second image data, the second brightness information of the second image data can be adjusted according to the first brightness information of the first image data to obtain a two-dimensional image The first brightness information of the first image data may also be adjusted according to the second brightness information of the second image data to obtain two-dimensional image data.
在另一些实施例中,可以根据第一图像数据的第一颜色信息和第二图像数据的第二颜色信息,确定二维图像数据的颜色信息。具体地,检测第一图像数据和第二图像数据是否存在异常;当检测到第一图像数据存在异常时,根据第一图像数据的第一颜色信息对第二图像数据的第二颜色信息进行调整,以得到二维图像数据;当检测到第二图像数据存在异常时,根据第二图像数据的第二颜色信息对第一图像数据的第一颜色信息进行调整,以得到二维图像数据。In other embodiments, the color information of the two-dimensional image data may be determined according to the first color information of the first image data and the second color information of the second image data. Specifically, detect whether the first image data and the second image data are abnormal; when the first image data is detected to be abnormal, adjust the second color information of the second image data according to the first color information of the first image data , to obtain two-dimensional image data; when abnormality is detected in the second image data, the first color information of the first image data is adjusted according to the second color information of the second image data to obtain two-dimensional image data.
其中,根据第一图像数据的第一颜色信息对第二图像数据的第二颜色信息进行调整,以得到二维图像数据,包括:对第一图像数据的平均颜色值和第二图像数据的平均颜色值进行加权求和,以得到第一加权颜色值;根据加权颜色值与第二图像数据的平均颜色值的比值,得到第一颜色系数;根据第一颜色系数对第二图像数据中各像素的颜色值进行调整,以得到二维图像数据中各像素的颜色值。根据第二图像数据的第二颜色信息对第一图像数据的第一颜色信息进行调整,以得到二维图像数据,包括:对第二图像数据的平均颜色值和第一图像数据的平均颜色值进行加权求和,以得到第二加权颜色值;根据第二加权颜色值与第二图像数据的平均颜色值的比值,得到第二颜色系数;根据第二颜色系数对第二图像数据中各像素的颜色值进行调整,以得到二维图像数据中各像素的颜色值。Wherein, the second color information of the second image data is adjusted according to the first color information of the first image data to obtain two-dimensional image data, including: the average color value of the first image data and the average value of the second image data The color values are weighted and summed to obtain the first weighted color value; according to the ratio of the weighted color value to the average color value of the second image data, the first color coefficient is obtained; according to the first color coefficient, each pixel in the second image data Adjust the color value of the pixel to obtain the color value of each pixel in the two-dimensional image data. Adjust the first color information of the first image data according to the second color information of the second image data to obtain two-dimensional image data, including: the average color value of the second image data and the average color value of the first image data Perform weighted summation to obtain a second weighted color value; obtain a second color coefficient according to the ratio of the second weighted color value to the average color value of the second image data; calculate each pixel in the second image data according to the second color coefficient Adjust the color value of the pixel to obtain the color value of each pixel in the two-dimensional image data.
在对第一图像数据的平均颜色值和第二图像数据的平均颜色值进行加权求和,以得到第一加权颜色值时,第一图像数据的权重系数小于第二图像数据的权重系数;在对第二图像数据的平均颜色值和第一图像数据的平均颜色值进行加权求和,以得到第二加权颜色值时,第一图像数据的权重系数大于第二图像数据的权重系数。即不存在异常的一路图像数据具有更大的权重系数。When the average color value of the first image data and the average color value of the second image data are weighted and summed to obtain the first weighted color value, the weight coefficient of the first image data is smaller than the weight coefficient of the second image data; When performing weighted summation on the average color value of the second image data and the average color value of the first image data to obtain the second weighted color value, the weight coefficient of the first image data is greater than the weight coefficient of the second image data. That is, a path of image data without abnormality has a larger weight coefficient.
此外,当检测到第一图像数据和第二图像数据均不存在异常时,既可以根据第一图像数据的第一颜色信息对第二图像数据的第二颜色信息进行调整,以得到二维图像数据,也可以根据第二图像数据的第二颜色信息对第一图像数据的第一颜色信息进行调整,以得到二维图像数据。In addition, when it is detected that there is no abnormality in both the first image data and the second image data, the second color information of the second image data can be adjusted according to the first color information of the first image data to obtain a two-dimensional image The first color information of the first image data may also be adjusted according to the second color information of the second image data to obtain two-dimensional image data.
在得到二维图像数据后,根据二维图像数据控制显示器显示二维图像。在一些实施例中,还可以在获取第一图像数据和第二图像数据的过程中,获取姿态数据,根据姿态数据旋转二维图像数据,以使得二维图像正立显示。其中,姿态数据用于指示第一图像数据和第二图像数据对应的空间位置。或者,在控制显示器根据二维图像数据显示二维图像时,也可以允许用户选择是否使得二维图像正立显示。当接收到使二维图像正立显示的设置指令时,如上所述的根据姿态数据使得二维图像正立显示。当接收到使二维图像非正立显示的设置指令时,以非正立状态显示所述二维图像,使二维图像的方向与第一图像数据和第二图像数据对应的空间位置相关联,即当用户旋转操作部并带动插入部旋转时,显示器上显示的二维图像也随之旋转。After obtaining the two-dimensional image data, the display is controlled to display the two-dimensional image according to the two-dimensional image data. In some embodiments, posture data may also be obtained during the process of obtaining the first image data and the second image data, and the two-dimensional image data may be rotated according to the posture data, so that the two-dimensional image is displayed upright. Wherein, the attitude data is used to indicate the spatial positions corresponding to the first image data and the second image data. Alternatively, when the display is controlled to display the two-dimensional image according to the two-dimensional image data, the user may also be allowed to choose whether to display the two-dimensional image upright. When receiving a setting instruction to display the two-dimensional image upright, the two-dimensional image is displayed upright according to the posture data as described above. When receiving a setting instruction to display the two-dimensional image non-erectly, display the two-dimensional image in a non-erect state, and associate the direction of the two-dimensional image with the spatial position corresponding to the first image data and the second image data , that is, when the user rotates the operating part and drives the insertion part to rotate, the two-dimensional image displayed on the display also rotates accordingly.
综上所述,本发明实施例的用于3D内窥镜成像系统的成像方法600能够根据在第一显示模式和第二显示模式之间切换,在第一显示模式下能够确保立体图像具有较好的立体效果,在第二显示模式下显示的二维图像综合了两路图像数据的信息,在其中一路图像存在异常时也能向用户展示组织信息。To sum up, the
重新参照图1,本发明实施例还提供了一种3D内窥镜成像系统100,包括内窥镜以及连接内窥镜的摄像主机150,内窥镜包括插入部130及操作部160,插入部130用于插入患者的待观察部位;内窥镜包括第一图像传感器和第二图像传感器,分别用于采集第一图像数据和第二图像数据;摄像主机150用于从所述内窥镜获取所述第一图像数据和第二图像数据,并执行本发明实施例的用于3D内窥镜成像系统的成像方法200。Referring again to FIG. 1 , the embodiment of the present invention also provides a 3D
进一步地,3D内窥镜成像系统100还包括设置于内窥镜的姿态传感器,用于采集姿态数据,并将姿态数据发送至摄像主机150,姿态数据用于指示第一图像数据和第二图像数据对应的空间位置。其中,姿态传感器包括至少一个,具体包括加速度计、陀螺仪、磁力计等。姿态传感器可以安装在插入部130或操作部160的任意位置。第一图像传感器和第二图像传感器的光轴可以平行设置,也可以成一定角度设置。第一图像传感器和第二图像传感器能够模拟人眼双目立体视觉。摄像主机150可以根据用户指令或姿态传感器采集的姿态数据,在第一显示模式和第二显示模式中确定当前应用的显示模式,当确定应用第一显示模式时,根据第一图像数据和第二图像数据生成立体图像数据,并控制显示器显示立体图像;当确定应用第二显示模式时,根据第一图像数据和第二图像数据生成二维图像数据,并控制显示器显示二维图像。Further, the 3D
关于3D内窥镜成像系统100的具体结构以及用于3D内窥镜成像系统的成像方法200和用于内窥镜成像系统的成像方法600的具体步骤已在上文进行了描述,在此不做赘述。本发明实施例的3D内窥镜成像系统100能够根据用户指令和/或姿态传感器的姿态数据切换显示模式,在第一显示模式下能够确保立体图像具有较好的立体效果,在第二显示模式下显示的二维图像综合了两路图像数据的信息,在其中一路图像存在异常时也能向用户展示组织信息。The specific structure of the 3D
尽管这里已经参考附图描述了示例实施例,应理解上述示例实施例仅仅是示例性的,并且不意图将本发明的范围限制于此。本领域普通技术人员可以在其中进行各种改变和修改,而不偏离本发明的范围和精神。所有这些改变和修改意在被包括在所附权利要求所要求的本发明的范围之内。Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above-described example embodiments are exemplary only and are not intended to limit the scope of the invention thereto. Various changes and modifications can be made therein by those skilled in the art without departing from the scope and spirit of the invention. All such changes and modifications are intended to be included within the scope of the invention as claimed in the appended claims.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
在本发明所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个设备,或一些特征可以忽略,或不执行。In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another device, or some features may be omitted, or not implemented.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本发明并帮助理解各个发明方面中的一个或多个,在对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该本发明的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如相应的权利要求书所反映的那样,其发明点在于可以用少于某个公开的单个实施例的所有特征的特征来解决相应的技术问题。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be understood that in the description of the exemplary embodiments of the invention, in order to streamline the disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure , or in its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the corresponding claims reflect, the inventive point lies in that the corresponding technical problem may be solved by using less than all features of a single disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域的技术人员可以理解,除了特征之间相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。It will be appreciated by those skilled in the art that all features disclosed in this specification (including accompanying claims, abstract and drawings) and all features of any method or apparatus so disclosed may be used in any combination, except where the features are mutually exclusive. process or unit. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的一些模块的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some modules according to the embodiments of the present invention. The present invention can also be implemented as an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
以上所述,仅为本发明的具体实施方式或对具体实施方式的说明,本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention or a description of the specific embodiment, and the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily Any changes or substitutions that come to mind should be covered within the protection scope of the present invention. The protection scope of the present invention should be based on the protection scope of the claims.
Claims (32)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211328400.6A CN115696069A (en) | 2022-10-27 | 2022-10-27 | Imaging method for 3D endoscope imaging system and 3D endoscope imaging system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211328400.6A CN115696069A (en) | 2022-10-27 | 2022-10-27 | Imaging method for 3D endoscope imaging system and 3D endoscope imaging system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115696069A true CN115696069A (en) | 2023-02-03 |
Family
ID=85100157
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211328400.6A Pending CN115696069A (en) | 2022-10-27 | 2022-10-27 | Imaging method for 3D endoscope imaging system and 3D endoscope imaging system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115696069A (en) |
-
2022
- 2022-10-27 CN CN202211328400.6A patent/CN115696069A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7124011B2 (en) | Systems and methods of operating bleeding detection systems | |
| CN102821671B (en) | Endoscopic Observation Support Systems and Equipment | |
| US20220265125A1 (en) | Wireless swivel camera laparoscopic instrument with a virtual mapping and guidance system | |
| US20190051039A1 (en) | Image processing apparatus, image processing method, program, and surgical system | |
| US10561304B2 (en) | Medical stereoscopic observation device, medical stereoscopic observation method, and program | |
| US20160295194A1 (en) | Stereoscopic vision system generatng stereoscopic images with a monoscopic endoscope and an external adapter lens and method using the same to generate stereoscopic images | |
| US20140336461A1 (en) | Surgical structured light system | |
| US10413157B2 (en) | Endoscope system with image pasting on planar model | |
| CN105208909B (en) | Method and device for stereoscopically displaying image data | |
| CN102186434A (en) | Three-dimensional display system for surgical robot and method for controlling same | |
| CN116158718A (en) | Imaging and display method for endoscope system and endoscope system | |
| CN109068035B (en) | Intelligent micro-camera array endoscopic imaging system | |
| US11200713B2 (en) | Systems and methods for enhancing vision | |
| CN115919239A (en) | Imaging method for 3D endoscopic imaging system and 3D endoscopic imaging system | |
| WO2024188160A1 (en) | Imaging and display method for endoscope system, and endoscope system | |
| CN114677676B (en) | Target phenomenon monitoring method, device, computer equipment and storage medium | |
| WO2016194446A1 (en) | Information processing device, information processing method, and in-vivo imaging system | |
| JP2012213583A (en) | Stereoscopic display apparatus | |
| CN104887316A (en) | Virtual three-dimensional endoscope displaying method based on active three-dimensional displaying technology | |
| CN115696069A (en) | Imaging method for 3D endoscope imaging system and 3D endoscope imaging system | |
| US10855980B2 (en) | Medical-image display control device, medical image display device, medical-information processing system, and medical-image display control method | |
| US20220182538A1 (en) | Image-processing method, control device, and endoscope system | |
| CN114266817B (en) | Fluorescent depth image synthesis method and device, electronic equipment and storage medium | |
| JP6600442B2 (en) | Monocular Endoscopic Stereoscopic System Using Shape Reconstruction Method from Shadow and Method | |
| JP2000148983A (en) | Virtualized endoscope device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: Building 5, No. 828 Gaoxin Avenue, Donghu New Technology Development Zone, Wuhan City, Hubei Province, 430206 Applicant after: Wuhan Mindray Biomedical Technology Co.,Ltd. Applicant after: SHENZHEN MINDRAY BIO-MEDICAL ELECTRONICS Co.,Ltd. Address before: 430223 floor 3, building B1, zone B, high tech medical device Park, No. 818, Gaoxin Avenue, Donghu New Technology Development Zone, Wuhan, Hubei Province (Wuhan area of free trade zone) Applicant before: Wuhan Mairui Medical Technology Research Institute Co.,Ltd. Country or region before: China Applicant before: SHENZHEN MINDRAY BIO-MEDICAL ELECTRONICS Co.,Ltd. |
|
| CB02 | Change of applicant information |