CN110349171A - A kind of scoliosis back contour curve extracting method based on gray scale intermediate value - Google Patents
A kind of scoliosis back contour curve extracting method based on gray scale intermediate value Download PDFInfo
- Publication number
- CN110349171A CN110349171A CN201910500374.2A CN201910500374A CN110349171A CN 110349171 A CN110349171 A CN 110349171A CN 201910500374 A CN201910500374 A CN 201910500374A CN 110349171 A CN110349171 A CN 110349171A
- Authority
- CN
- China
- Prior art keywords
- image
- human body
- gray
- gray level
- obtains
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 206010039722 scoliosis Diseases 0.000 title claims abstract description 27
- 238000000605 extraction Methods 0.000 claims abstract description 5
- 239000004744 fabric Substances 0.000 claims abstract description 5
- 238000000926 separation method Methods 0.000 claims description 5
- 238000006243 chemical reaction Methods 0.000 claims 1
- 238000001514 detection method Methods 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 238000005259 measurement Methods 0.000 description 4
- 238000000691 measurement method Methods 0.000 description 4
- 230000001066 destructive effect Effects 0.000 description 3
- 238000007689 inspection Methods 0.000 description 3
- 238000000053 physical method Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000002612 cardiopulmonary effect Effects 0.000 description 2
- 210000004705 lumbosacral region Anatomy 0.000 description 2
- 206010051093 Cardiopulmonary failure Diseases 0.000 description 1
- 206010061296 Motor dysfunction Diseases 0.000 description 1
- 238000005452 bending Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000037237 body shape Effects 0.000 description 1
- 230000007850 degeneration Effects 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 230000004064 dysfunction Effects 0.000 description 1
- 230000004630 mental health Effects 0.000 description 1
- 230000002028 premature Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 210000000115 thoracic cavity Anatomy 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/181—Segmentation; Edge detection involving edge growing; involving edge linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30008—Bone
- G06T2207/30012—Spine; Backbone
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
本发明公开了一种基于灰度中值的脊柱侧弯背部轮廓曲线提取方法,首先布置蓝色背景布和摄影照明灯,采用普通数码相机拍摄正立人体背部图像,之后提取RGB图像红色通道信息,二值化处理得到人体背部轮廓,再将背部图像进行灰度化处理并与二值化人体背部轮廓图点乘得到除去背景干扰的灰度图像,再将灰度图像减去像素点灰度均值得到新的灰度图像,之后逐行求取灰度中值像素特征点,再对特征点进行最小二乘法多项式拟合得到脊柱轮廓拟合曲线。本发明的方法简单实用,算法易于实现,能够有效的完成人体背部脊柱轮廓曲线提取的目的。
The invention discloses a scoliosis back contour curve extraction method based on the gray scale median value. Firstly, a blue background cloth and a photographic lighting lamp are arranged, and an ordinary digital camera is used to take an image of the back of an upright human body, and then the red channel information of the RGB image is extracted. , the back contour of the human body is obtained by binarization processing, and then the back image is grayscaled and multiplied with the binarized human back contour map to obtain a grayscale image that removes background interference, and then the grayscale image is subtracted from the pixel grayscale The average value is used to obtain a new grayscale image, and then the grayscale median pixel feature points are calculated line by line, and then the feature points are subjected to polynomial fitting by the least square method to obtain the spine contour fitting curve. The method of the invention is simple and practical, and the algorithm is easy to realize, and can effectively complete the purpose of extracting the contour curve of the back spine of the human body.
Description
技术领域technical field
本发明属于图像处理技术领域,尤其涉及一种基于灰度中值的脊柱侧弯背部轮廓曲线提取方法。The invention belongs to the technical field of image processing, and in particular relates to a scoliosis back contour curve extraction method based on gray-scale median value.
背景技术Background technique
脊柱是人体的中轴,脊柱侧弯严重时不仅会造成身体外观异常、运动功能障碍,还可因胸廓畸形而造成心肺功能障碍,降低生活质量,严重影响青少年身心健康的发育。该病如果不及早发现并积极治疗,不仅影响患儿的体型和外观,而且可能造成心肺功能异常,使脊柱过早退变,出现疼痛,躯干不平衡。畸形严重的病儿,甚至早期出现心肺功能的衰竭,导致死亡。The spine is the central axis of the human body. When scoliosis is severe, it will not only cause abnormal body appearance and motor dysfunction, but also cause cardiopulmonary dysfunction due to thoracic deformity, reduce the quality of life, and seriously affect the physical and mental health of adolescents. If the disease is not detected early and treated actively, it will not only affect the child's body shape and appearance, but also may cause abnormal cardiopulmonary function, premature spine degeneration, pain, and trunk imbalance. Sick children with severe deformities may even suffer early cardiopulmonary failure, leading to death.
检查脊柱侧弯的方法有很多,大致可分为物理测量及图像测量两类。物理测量是指与人体背部直接接触测量脊柱侧弯,主要有Adams向前弯腰试验、应用脊柱侧凸尺测量躯干旋转角度、测量肋骨隆凸等方法;图像测量是指不与人体背部进行直接接触的检查方法,主要有莫尔图像测量法、X光片测量法、结构光测量法、激光扫描仪测量法等。There are many methods for checking scoliosis, which can be roughly divided into two categories: physical measurement and image measurement. Physical measurement refers to the measurement of scoliosis in direct contact with the back of the human body, mainly including the Adams forward bending test, the application of the scoliosis ruler to measure the rotation angle of the trunk, and the measurement of the rib protuberance; image measurement refers to methods that do not directly contact the back of the human body Contact inspection methods mainly include Moiré image measurement method, X-ray film measurement method, structured light measurement method, laser scanner measurement method, etc.
现有方法虽然能够对脊柱侧弯进行检查,但由于现有的普查方法是大多是基于人工的物理检测,在对大量的人群进行普查尤其是青少年体检时,人工检测繁琐,效率低,由于检查人员疲劳也会造成错判和误判。而用X光片来进行普查,会对青少年特别是儿童造成很多不必要的辐射伤害,并且费用较高。Although the existing methods can check scoliosis, because most of the existing census methods are based on manual physical detection, manual detection is cumbersome and inefficient when conducting a general survey on a large number of people, especially adolescents. Staff fatigue can also lead to errors and miscalculations. Carrying out censuses with X-ray films will cause a lot of unnecessary radiation damage to teenagers, especially children, and the cost is relatively high.
发明内容Contents of the invention
发明目的:提供一种基于灰度中值的脊柱侧弯背部轮廓曲线提取方法,无损无辐射,简单实用,快速有效,算法容易实现,可以有效地提取脊柱背部轮廓曲线,完成脊柱侧弯检查的任务。Purpose of the invention: To provide a scoliosis back contour curve extraction method based on the gray value median, which is non-destructive and radiation-free, simple and practical, fast and effective, and the algorithm is easy to implement, which can effectively extract the spine back contour curve and complete the examination of scoliosis Task.
技术方案:为实现上述发明目的,本发明采用以下技术方案:Technical solution: In order to realize the above-mentioned invention purpose, the present invention adopts the following technical solutions:
一种基于灰度中值的脊柱侧弯背部轮廓曲线提取方法,包括以下步骤:A method for extracting scoliosis back contour curve based on gray value, comprising the following steps:
(1)布置蓝色背景布和摄影照明灯,照明灯需均匀照射在人体背部;(1) Arrange blue background cloth and photographic lighting, and the lighting should be evenly irradiated on the back of the human body;
(2)采用数码相机拍摄获取人体背部图像,采集正立人体背部彩色图像信息,包括RGB三通道亮度信息和图像分辨率大小n×m;(2) Use a digital camera to capture images of the back of the human body, and collect color image information on the back of the human body upright, including RGB three-channel brightness information and image resolution size n×m;
(3)对步骤(2)中获取的人体背部彩色图像进行灰度化处理,得到灰度图像;(3) grayscale processing is carried out to the color image of the back of the human body acquired in step (2), to obtain a grayscale image;
(4)对步骤(2)中获取的人体背部彩色图像进行通道分离,获取红色通道灰度图像信息;(4) Carry out channel separation to the color image of the back of the human body acquired in step (2), and obtain the grayscale image information of the red channel;
(5)将步骤(4)中的红色通道灰度图像进行二值化处理,得到人体背部二值图像;(5) Binarize the red channel grayscale image in step (4) to obtain a binary image of the back of the human body;
(6)将步骤(3)中的人体背部灰度图像与步骤(5)中的人体背部二值图像进行点乘,得到除去背景干扰的背部灰度图像;(6) dot product the human body back grayscale image in step (3) and the human body back binary image in step (5), obtain the back grayscale image that removes background interference;
(7)将步骤(6)中的背部灰度图像减去图像灰度基值,得到新的灰度图像;(7) Subtract the image grayscale base value from the back grayscale image in step (6), to obtain a new grayscale image;
(8)对步骤(7)得到的新的灰度图像逐行求取灰度中值像素特征点;(8) obtain the gray-scale median pixel feature point line by line to the new gray-scale image that step (7) obtains;
(9)将步骤(8)得到的特征点拟合成脊柱背部轮廓特征曲线。(9) Fit the feature points obtained in step (8) into a characteristic curve of the back contour of the spine.
进一步的,步骤(2)中对人体背部彩色图像进行采集时,被采集人需要站正,图像包含从颈椎最上端到腰椎最下端。Further, when collecting the color image of the back of the human body in step (2), the person to be collected needs to stand upright, and the image includes the uppermost end of the cervical spine to the lowermost end of the lumbar spine.
进一步的,步骤(3)中对步骤(2)得到的人体背部彩色图像按照公式Gray1(i,j)=0.30R(i,j)+0.59G(i,j)+0.11B(i,j)进行RGB三分量加权平均处理得到灰度图像Gray1,R(i,j)、G(i,j)、B(i,j)分别是红绿蓝三通道分量像素点亮度值,Gray1(i,j)是得到的灰度图像像素点灰度值。Further, the color image of the back of the human body obtained in step (2) is obtained according to the formula Gray1(i,j)=0.30R(i,j)+0.59G(i,j)+0.11B(i,j) in step (3). ) to perform RGB three-component weighted average processing to obtain grayscale image Gray1, R(i,j), G(i,j), B(i,j) are the brightness values of red, green and blue three-channel component pixels respectively, Gray1(i , j) is the gray value of the gray image pixel obtained.
进一步的,步骤(4)中对步骤(2)得到的人体背部彩色图像进行RGB三分量通道分离,按照公式Gray2(i,j)=R(i,j)单独提取红色通道图像信息得到红色通道灰度图像Gray2,R(i,j)是红色通道分量像素点亮度值,Gray2(i,j)是红色通道灰度图像像素点灰度值。Further, in step (4), the RGB three-component channel separation is performed on the human body back color image obtained in step (2), and the red channel image information is extracted separately according to the formula Gray2(i,j)=R(i,j) to obtain the red channel In the grayscale image Gray2, R(i,j) is the brightness value of the pixel of the red channel component, and Gray2(i,j) is the grayscale value of the pixel of the grayscale image of the red channel.
进一步的,步骤(5)中将红色通道灰度图像Gray2转化为二值图像具体包括以下分步骤:Further, converting the red channel grayscale image Gray2 into a binary image in step (5) specifically includes the following sub-steps:
(51)设定灰度阈值T;(51) Set the gray scale threshold T;
(52)对步骤(4)得到的红色通道灰度图像Gray2按照(51)设定的灰度阈值T进行二值化处理,若Gray2(i,j)>T,则Binary(i,j)=1;若Gray2(i,j)≤T,则Binary(i,j)=0,得到人体背部轮廓二值图像Binary1。(52) Binarize the red channel grayscale image Gray2 obtained in step (4) according to the grayscale threshold T set in (51), if Gray2(i,j)>T, then Binary(i,j) =1; if Gray2(i,j)≤T, then Binary(i,j)=0, to obtain the binary image Binary1 of the back contour of the human body.
进一步的,步骤(6)中按照式Gray3(i,j)=Gray1(i,j)*Binary(i,j)将步骤(3)得到的灰度图像Gray1与步骤(5)得到的人体背部二值图像Binary进行点乘,删除背景信息,得到背部灰度图像Gray3。Further, in step (6), according to the formula Gray3(i,j)=Gray1(i,j)*Binary(i,j), the grayscale image Gray1 obtained in step (3) and the human body back obtained in step (5) are combined The binary image Binary is dot-multiplied, the background information is deleted, and the back grayscale image Gray3 is obtained.
进一步的,步骤(7)中将步骤(6)得到的背部灰度图像Gray3减去图像灰度基值具体包括以下步骤:Further, in step (7), the back grayscale image Gray3 that step (6) obtains subtracts image grayscale base value and specifically comprises the following steps:
(71)按照式求取图像每行灰度值均值(71) according to formula Find the mean value of the gray value of each row of the image
Average(i,1),设定每行灰度基值为0.5Average(i,1);Average(i,1), set the gray base value of each row to 0.5Average(i,1);
(72)按照式Gray4(i,j)=Gray3(i,j)-0.5Average(i,1)将步骤(6)得到的Gray3图像每行像素点灰度值减去步骤(71)得到的灰度基值0.5Average(i,1),得到新的灰度图像Gray4。(72) according to formula Gray4 (i, j)=Gray3 (i, j)-0.5Average (i, 1) the Gray3 image that step (6) obtains every line pixel point gray value subtracts step (71) to obtain The grayscale base value is 0.5Average(i,1), and a new grayscale image Gray4 is obtained.
进一步的,步骤(8)对步骤(7)得到的新的灰度图像逐行求取灰度中值像素特征点具体包括以下步骤:Further, step (8) obtains the gray-scale median pixel feature point row by row to the new gray-scale image that step (7) obtains specifically comprises the following steps:
(81)创建一幅新的分辨率大小为n×m的空白二值图像Binary2,Binary2(i,j)=0;(81) creating a new resolution size is a blank binary image Binary2 of n * m, Binary2 (i, j)=0;
(82)对步骤(7)得到的新的灰度图像Gray4按照式进行行求和得到Sum(i,1);(82) For the new grayscale image Gray4 obtained in step (7) according to the formula Perform row summation to get Sum(i,1);
(83)对二值图像Binary2进行赋值,若步骤(7)得到的新的灰度图像Gray4按照式像素点按行从左到右相加之和与步骤(82)得到的每行之和0.5Sum(i,1)的一半相差在0.5Average(i,1)以内,则Binary2(i,k)=1,最终得到脊柱背部轮廓特征点图像。(83) Assign a value to the binary image Binary2, if the new grayscale image Gray4 obtained in step (7) is according to the formula The sum of the pixel points added from left to right by row is within 0.5Average(i,1) of the half of the sum of each row obtained in step (82) 0.5Sum(i,1), then Binary2(i,k) =1, finally get the feature point image of the back contour of the spine.
进一步的,步骤(9)将步骤(8)得到的脊柱背部轮廓特征点拟合成脊柱背部轮廓特征曲线具体包括以下步骤:Further, in step (9), fitting the spine back contour feature points obtained in step (8) into a spine back contour characteristic curve specifically includes the following steps:
(91)将步骤(8)得到的特征点从图像坐标系转化到实际常用坐标系,逐点按照式Point(k).x=Point(k).i、Point(k).y=Point(k).j将特征点从图像坐标系转化到实际常用坐标系;(91) Convert the feature points obtained in step (8) from the image coordinate system to the actual common coordinate system, point by point according to the formula Point(k).x=Point(k).i, Point(k).y=Point( k).j convert the feature points from the image coordinate system to the actual common coordinate system;
(92)将步骤(91)得到的实际常用坐标系特征点拟合成人体背部脊柱轮廓特征曲线,拟合方式为最小二乘法多项式拟合。(92) Fitting the characteristic points of the actual common coordinate system obtained in step (91) into the characteristic curve of the spine contour of the human body, and the fitting method is polynomial fitting by the least squares method.
有益效果:与现有技术相比,本发明采用白光图像采集,无损无辐射,快速方便,实时检测,算法容易实现,可以有效地提取脊柱背部轮廓曲线,完成脊柱侧弯检查的任务。Beneficial effects: Compared with the prior art, the present invention adopts white light image acquisition, which is non-destructive and radiation-free, fast and convenient, real-time detection, and algorithm is easy to implement, and can effectively extract the back contour curve of the spine to complete the task of scoliosis inspection.
附图说明Description of drawings
图1是本发明方法流程示意图;Fig. 1 is a schematic flow sheet of the method of the present invention;
图2是数码相机获取的人体背部图像;Figure 2 is an image of the back of a human body obtained by a digital camera;
图3是人体背部灰度图像;Figure 3 is a grayscale image of the back of a human body;
图4是红色通道灰度图像;Figure 4 is a grayscale image of the red channel;
图5是人体背部二值轮廓图像;Fig. 5 is a binary contour image of the back of a human body;
图6是除去背景干扰的背部灰度图像;Fig. 6 is the back gray scale image that removes background interference;
图7是减去图像灰度基值的灰度图像;Fig. 7 is the grayscale image of subtracting image grayscale base value;
图8是脊柱背部轮廓特征点图像;Fig. 8 is the feature point image of the spine back contour;
图9是脊柱背部轮廓特征曲线图像。Fig. 9 is an image of the characteristic curve of the back contour of the spine.
具体实施方式Detailed ways
以下结合附图和具体实施例对本发明的技术方案进行详细说明。The technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.
为减少人工钱财的浪费,提高脊柱侧弯检测效率,避免物理测量主观因素带来的误检,基于灰度中值的脊柱侧弯背部轮廓曲线提取方法能够从体表间接勾勒出脊柱轮廓曲线,从而判断脊柱侧弯程度,是一种无损、无辐射且简单有效的脊柱侧弯检查方法。In order to reduce the waste of labor and money, improve the detection efficiency of scoliosis, and avoid the false detection caused by the subjective factors of physical measurement, the scoliosis back contour curve extraction method based on the gray value median can indirectly outline the spine contour curve from the body surface. It is a non-destructive, radiation-free, simple and effective scoliosis inspection method to judge the degree of scoliosis.
如图1所示,一种基于灰度中值的脊柱侧弯背部轮廓曲线提取方法,包括如下步骤:As shown in Figure 1, a method for extracting scoliosis back contour curve based on gray-scale median value comprises the following steps:
(1)布置蓝色背景布和摄影照明灯,保证光线均匀照射在人体背部;(1) Arrange blue background cloth and photographic lighting to ensure that the light is evenly irradiated on the back of the human body;
(2)采用数码相机拍摄获取人体背部图像,采集正立人体背部彩色图像信息,包括RGB三通道亮度信息和图像分辨率大小n×m;得到如图2所示的背部彩色图像。对人体背部彩色图像进行采集时,被采集人需要站正,图像包含从颈椎最上端到腰椎最下端。(2) The back image of the human body is captured by a digital camera, and the color image information of the back of the upright human body is collected, including RGB three-channel brightness information and image resolution size n×m; the color image of the back as shown in Figure 2 is obtained. When collecting color images of the back of the human body, the person to be collected needs to stand upright, and the image includes the uppermost end of the cervical spine to the lowermost end of the lumbar spine.
(3)对步骤(2)中获取的人体背部彩色图像进行灰度化处理,得到灰度图像;(3) grayscale processing is carried out to the color image of the back of the human body acquired in step (2), to obtain a grayscale image;
对步骤(2)得到的彩色图像按照以下公式,进行RGB三分量加权平均处理得到图3所示灰度图像Gray1;According to the following formula to the color image that step (2) obtains, carry out the RGB three-component weighted mean processing and obtain the grayscale image Gray1 shown in Figure 3;
Gray1(i,j)=0.30R(i,j)+0.59G(i,j)+0.11B(i,j);Gray1(i,j)=0.30R(i,j)+0.59G(i,j)+0.11B(i,j);
其中,R(i,j)、G(i,j)、B(i,j)分别是红绿蓝三通道分量像素点亮度值,Gray1(i,j)是得到的灰度图像像素点灰度值;Among them, R(i,j), G(i,j), and B(i,j) are the brightness values of red, green, and blue three-channel component pixels, respectively, and Gray1(i,j) is the obtained grayscale image pixel gray degree value;
(4)对步骤(2)中获取的人体背部彩色图像进行通道分离,获取红色通道灰度图像信息;(4) Carry out channel separation to the color image of the back of the human body acquired in step (2), and obtain the grayscale image information of the red channel;
对步骤(2)中获取的人体背部彩色图像进行RGB三分量通道分离,按照公式Gray2(i,j)=R(i,j)单独提取红色通道图像信息,得到如图4所示的红色通道灰度图像Gray2,R(i,j)是红色通道分量像素点亮度值,Gray2(i,j)是红色通道灰度图像像素点灰度值。Separate the RGB three-component channel on the color image of the back of the human body obtained in step (2), and extract the red channel image information separately according to the formula Gray2(i,j)=R(i,j), and obtain the red channel as shown in Figure 4 In the grayscale image Gray2, R(i,j) is the brightness value of the pixel of the red channel component, and Gray2(i,j) is the grayscale value of the pixel of the grayscale image of the red channel.
(5)将步骤(4)中的红色通道灰度图像Gray2转化为二值图像,得到人体背部二值图像;具体包括以下分步骤:(5) Convert the red channel grayscale image Gray2 in step (4) into a binary image to obtain a binary image of the back of the human body; specifically include the following sub-steps:
(51)设定灰度阈值T;(51) Set the gray scale threshold T;
(52)对步骤(4)得到的红色通道灰度图像Gray2按照(51)设定的灰度阈值T进行二值化处理,若Gray2(i,j)>T,则Binary(i,j)=1;若Gray2(i,j)≤T,则Binary1(i,j)=0,得到如图5所示人体背部轮廓二值图像Binary1。(52) Binarize the red channel grayscale image Gray2 obtained in step (4) according to the grayscale threshold T set in (51), if Gray2(i,j)>T, then Binary(i,j) =1; if Gray2(i,j)≦T, then Binary1(i,j)=0, to obtain the binary image Binary1 of the back contour of the human body as shown in FIG. 5 .
(6)将步骤(3)中的人体背部灰度图像与步骤(5)中的人体背部二值图像进行点乘,得到除去背景干扰的背部灰度图像;(6) dot product the human body back grayscale image in step (3) and the human body back binary image in step (5), obtain the back grayscale image that removes background interference;
按照式Gray3(i,j)=Gray1(i,j)*Binary1(i,j)将步骤(3)得到的灰度图像Gray1与步骤(5)得到的人体背部轮廓二值图像Binary1进行点乘,删除背景信息,得到如图6所示除去背景干扰的背部灰度图像;According to the formula Gray3(i,j)=Gray1(i,j)*Binary1(i,j), the grayscale image Gray1 obtained in step (3) and the binary image Binary1 of the human back contour obtained in step (5) are dot-multiplied , delete the background information, and obtain the grayscale image of the back that removes the background interference as shown in Figure 6;
(7)将步骤(6)中的背部灰度图像Gray3减去图像灰度基值,得到新的灰度图像Gray4,具体包括以下步骤:(7) Subtract the image grayscale base value from the back grayscale image Gray3 in step (6) to obtain a new grayscale image Gray4, which specifically includes the following steps:
(71)按照式求取图像每行灰度均值Average(i,1),设定每行灰度基值为0.5Average(i,1);(71) According to formula Calculate the average gray value of each row of the image, Average(i,1), and set the gray value of each row as 0.5Average(i,1);
(72)按照式Gray4(i,j)=Gray3(i,j)-0.5Average(i,1)将步骤(6)得到的Gray3图像每行像素点灰度值减去步骤(71)得到的灰度基值0.5Average(i,1),得到如图7所示新的灰度图像Gray4。(72) according to formula Gray4 (i, j)=Gray3 (i, j)-0.5Average (i, 1) the Gray3 image that step (6) obtains every line pixel point gray value subtracts step (71) to obtain The grayscale base value is 0.5Average(i,1), and a new grayscale image Gray4 as shown in FIG. 7 is obtained.
(8)对步骤(7)得到的新的灰度图像Gray4逐行求取灰度中值像素特征点,具体包括以下步骤:(8) Obtain gray-scale median pixel feature points line by line to the new gray-scale image Gray4 that step (7) obtains, specifically comprise the following steps:
(81)创建一幅新的分辨率大小为n×m的空白二值图像Binary2,Binary2(i,j)=0;(81) creating a new resolution size is a blank binary image Binary2 of n * m, Binary2 (i, j)=0;
(82)对步骤(7)得到的新的灰度图像Gray4按照式进行行求和得到Sum(i,1);(82) For the new grayscale image Gray4 obtained in step (7) according to the formula Perform row summation to get Sum(i,1);
(83)对二值图像Binary2进行赋值,若步骤(7)得到的新的灰度图像Gray4按照式像素点按行从左到右相加之和与步骤(82)得到的每行之和的一半相差在0.5Average(i,1)以内,则Binary2(i,k)=1,最终得到如图8所示脊柱背部轮廓特征点图像。(83) Assign a value to the binary image Binary2, if the new grayscale image Gray4 obtained in step (7) is according to the formula The difference between the sum of pixels added from left to right by row and the half of the sum of each row obtained in step (82) is within 0.5Average(i, 1), then Binary2(i, k)=1, and finally get as shown in Figure 8 shows the feature point image of the back contour of the spine.
(9)将步骤(8)得到的脊柱背部轮廓特征点拟合成脊柱背部轮廓特征曲线,具体包括以下步骤:(9) the spine back contour characteristic point that step (8) obtains is fitted into the spine back contour characteristic curve, specifically comprising the following steps:
(91)将步骤(83)得到的特征点从图像坐标系转化到实际常用坐标系,逐点按照式Point(k).x=Point(k).i、Point(k).y=Point(k).j将特征点从图像坐标系转化到实际常用坐标系;(91) Convert the feature points obtained in step (83) from the image coordinate system to the actual common coordinate system, point by point according to the formula Point(k).x=Point(k).i, Point(k).y=Point( k).j convert the feature points from the image coordinate system to the actual common coordinate system;
(92)将步骤(91)得到的实际常用坐标系特征点拟合成人体背部脊柱轮廓特征曲线,如图9所示,拟合方式为最小二乘法多项式拟合。(92) Fitting the feature points of the actual common coordinate system obtained in step (91) into the characteristic curve of the spine contour of the human back, as shown in Figure 9, the fitting method is polynomial fitting by least squares method.
本发明的一种基于灰度中值的脊柱侧弯背部轮廓曲线提取方法,首先布置蓝色背景布和摄影照明灯,采用普通数码相机拍摄正立人体背部图像,之后提取RGB图像红色通道信息,二值化处理得到人体背部轮廓,再将背部图像进行灰度化处理并与二值化人体背部轮廓图点乘得到除去背景干扰的灰度图像,再将灰度图像减去像素点灰度均值得到新的灰度图像,之后逐行求取灰度中值像素特征点,再对特征点进行最小二乘法多项式拟合得到脊柱轮廓拟合曲线。本发明的方法简单实用,算法易于实现,能够有效的完成人体背部脊柱轮廓曲线提取的目的。A method for extracting the scoliosis back contour curve based on the gray value median of the present invention, first arranges the blue background cloth and photographic lighting, adopts the ordinary digital camera to take the image of the back of the human body upright, and then extracts the red channel information of the RGB image, Binarize the back contour of the human body, then grayscale the back image and multiply it with the binarized human back contour map to obtain a grayscale image that removes background interference, and then subtract the average grayscale value of the pixels from the grayscale image A new grayscale image is obtained, and then the grayscale median pixel feature points are calculated line by line, and then the feature points are polynomially fitted by the least square method to obtain the spine contour fitting curve. The method of the invention is simple and practical, and the algorithm is easy to realize, and can effectively complete the purpose of extracting the contour curve of the back spine of the human body.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910500374.2A CN110349171B (en) | 2019-06-11 | 2019-06-11 | Scoliosis back contour curve extraction method based on gray median |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910500374.2A CN110349171B (en) | 2019-06-11 | 2019-06-11 | Scoliosis back contour curve extraction method based on gray median |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110349171A true CN110349171A (en) | 2019-10-18 |
CN110349171B CN110349171B (en) | 2021-09-17 |
Family
ID=68181739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910500374.2A Active CN110349171B (en) | 2019-06-11 | 2019-06-11 | Scoliosis back contour curve extraction method based on gray median |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110349171B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112033250A (en) * | 2020-10-26 | 2020-12-04 | 湖南大学 | A kind of steel ruler automatic verification device and verification method |
CN112258516A (en) * | 2020-09-04 | 2021-01-22 | 温州医科大学附属第二医院、温州医科大学附属育英儿童医院 | Method for generating scoliosis image detection model |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7502503B2 (en) * | 2002-01-22 | 2009-03-10 | Canon Kabushiki Kaisha | Radiographic image composition and use |
CN103630496A (en) * | 2013-12-12 | 2014-03-12 | 南京大学 | Traffic video visibility detecting method based on road surface brightness and least square approach |
CN104966049A (en) * | 2015-06-01 | 2015-10-07 | 江苏大为科技股份有限公司 | Lorry detection method based on images |
CN105184216A (en) * | 2015-07-24 | 2015-12-23 | 山东大学 | Cardiac second region palm print digital extraction method |
US9324244B1 (en) * | 2010-05-15 | 2016-04-26 | David Sol | Distributed multi-nodal operant conditioning system and method |
CN106370668A (en) * | 2016-08-22 | 2017-02-01 | 华中农业大学 | Online visual inspection apparatus and method of internal quality of salted egg |
CN109431511A (en) * | 2018-11-14 | 2019-03-08 | 南京航空航天大学 | A kind of human body back scoliosis angle measurement method based on Digital Image Processing |
-
2019
- 2019-06-11 CN CN201910500374.2A patent/CN110349171B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7502503B2 (en) * | 2002-01-22 | 2009-03-10 | Canon Kabushiki Kaisha | Radiographic image composition and use |
US9324244B1 (en) * | 2010-05-15 | 2016-04-26 | David Sol | Distributed multi-nodal operant conditioning system and method |
CN103630496A (en) * | 2013-12-12 | 2014-03-12 | 南京大学 | Traffic video visibility detecting method based on road surface brightness and least square approach |
CN104966049A (en) * | 2015-06-01 | 2015-10-07 | 江苏大为科技股份有限公司 | Lorry detection method based on images |
CN105184216A (en) * | 2015-07-24 | 2015-12-23 | 山东大学 | Cardiac second region palm print digital extraction method |
CN106370668A (en) * | 2016-08-22 | 2017-02-01 | 华中农业大学 | Online visual inspection apparatus and method of internal quality of salted egg |
CN109431511A (en) * | 2018-11-14 | 2019-03-08 | 南京航空航天大学 | A kind of human body back scoliosis angle measurement method based on Digital Image Processing |
Non-Patent Citations (5)
Title |
---|
HUI YU 等: ""construction of biological model of human lumbar and analysis of its mechanical properties"", 《INTERNATIONAL JOURNAL OF PATTERN RECOGNITION AND ARTIFICIAL INTELLIGENCE》 * |
JUNLIN YANG: ""Determination of spinal curvature from scoliosis X-ray images using k-means and curve fitting for early detection of scoliosis disease"", 《ICITISEE》 * |
刘同海: ""基于双目视觉的猪体体尺参数提取算法优化及三维重构"", 《中国博士学位论文全文数据库信息科技辑》 * |
区炳煜: ""基于机器视觉的锯条缺陷检测系统开发"", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
惠宇 等: ""一种基于法曲率极大值和向量内积的脊椎光学模型特征点自动识别方法"", 《西北工业大学学报》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112258516A (en) * | 2020-09-04 | 2021-01-22 | 温州医科大学附属第二医院、温州医科大学附属育英儿童医院 | Method for generating scoliosis image detection model |
CN112258516B (en) * | 2020-09-04 | 2023-04-07 | 温州医科大学附属第二医院、温州医科大学附属育英儿童医院 | Method for generating scoliosis image detection model |
CN112033250A (en) * | 2020-10-26 | 2020-12-04 | 湖南大学 | A kind of steel ruler automatic verification device and verification method |
Also Published As
Publication number | Publication date |
---|---|
CN110349171B (en) | 2021-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109431511B (en) | A feature curve fitting method of human back scoliosis spine profile based on digital image processing | |
JP5576782B2 (en) | Image processing apparatus, image processing method, and image processing program | |
US10776667B2 (en) | Speckle contrast analysis using machine learning for visualizing flow | |
CN102930534B (en) | Method for automatically positioning acupuncture points on back of human body | |
CN111294589A (en) | Camera module lens surface detection method | |
CN109961426A (en) | A kind of detection method of human face skin | |
CN106251328B (en) | A method of pollutants on surface of whole chicken rinses is identified using two-dimentional high spectrum image | |
WO2011151821A1 (en) | Inspection of region of interest | |
WO2008115547A1 (en) | A method of automated image color calibration | |
CN108805862B (en) | A Tag Identification Method Based on Improved Structural Similarity | |
CN109583376B (en) | Ancient ceramic source breaking and generation breaking method based on multi-feature information fusion | |
JP2015500722A (en) | Method and apparatus for detecting and quantifying skin symptoms in a skin zone | |
Lin et al. | An automatic and effective tooth isolation method for dental radiographs | |
CN110349171A (en) | A kind of scoliosis back contour curve extracting method based on gray scale intermediate value | |
CN111325754A (en) | An automatic positioning method of lumbar vertebrae based on CT sequence images | |
CN109241963A (en) | Blutpunkte intelligent identification Method in capsule gastroscope image based on Adaboost machine learning | |
JP2001184510A (en) | Defect detecting method | |
Liu et al. | Automatic detection and classification of dental fluorosis in vivo using white light and fluorescence imaging | |
Bogo et al. | Automated detection of new or evolving melanocytic lesions using a 3D body model | |
CN114240893A (en) | A method for measuring the spine Cobb angle in external images | |
CN110477851A (en) | A kind of method of accurate measurement pupil and iris absolute diameter | |
CN103500439B (en) | Drawing method is beaten based on image processing techniques | |
CN111951216B (en) | Automatic measuring method for balance parameters of spine coronal plane based on computer vision | |
CN110674737B (en) | Iris recognition enhancement method | |
KR20180109676A (en) | 2D skin image analysis system and analysis method using thereof |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |