Summary of the invention
Technical matters to be solved by this invention provides a kind of collaurum detection method and device thereof based on Digital Image Processing, can realize the quantitative identification of gold marking spot method low concentration sample.
The technical solution adopted for the present invention to solve the technical problems is: a kind of collaurum detection method based on Digital Image Processing is provided, may further comprise the steps:
(1) obtains the RGB coloured image of reaction plate;
(2) the RGB coloured image that obtains is converted into gray level image;
(3) utilize edge algorithms from gray level image, to extract the edge of target area to be analyzed;
(4) confirm the center of spot in the image, distinguish central area and neighboring area;
(5) in central area and neighboring area, select four test zones respectively, and the pixel in the test zone is compared the concentration of quantitative Analysis sample.
Obtained the RGB coloured image of reaction plate in the described step (1) by the area array CCD detector, described reaction plate receives the irradiation of area source.
Also comprise following substep in the described step (4):
(a) establish a square area in picture centre, the center of said square area is overlapped with the test paper center;
(b) around image, be provided with four rectangular areas;
The position of spot is confirmed in the requirement that (c) must cover described square area according to spot and can not get into any one described rectangular area.
All contain 3600 pixels in each test zone of selecting in the described step (5).
The device of a kind of use based on the collaurum detection method of Digital Image Processing also is provided; Comprise light source, detector, DSP image digitization processing platform and display, described DSP image digitization processing platform comprises image conversion module, edge extracting module, speckle displacement determination module, zone selection module and the comparison computing module that links to each other successively; Described light source is an area source, with rayed on reaction plate; Described detector is the area array CCD detector, is used to obtain the RGB coloured image of reaction plate; Described image conversion module is used for converting the RGB coloured image into gray level image; Described edge extracting module is used for extracting from gray level image the edge of target area to be analyzed; Described speckle displacement determination module is used for confirming the center of image spot; Described zone selects module to be used for selecting four test zones respectively in speckle regions and neighboring area; Described relatively computing module is used for the pixel of the test zone of selecting is compared, and the concentration of quantitative Analysis sample; Described display is used to show the concentration results of sample correspondence.
Described speckle displacement determination module comprises regional setting module and position determination module; Described regional setting module is used for establishing a square area and around image, setting four rectangular areas in picture centre; The position of spot is confirmed in the requirement that described position determination module must cover described square area according to spot and can not get into any one described rectangular area.
All contain 3600 pixels in each test zone that described zone selects module to select.
Beneficial effect
Owing to adopted above-mentioned technical scheme; The present invention compared with prior art; Have following advantage and good effect: adopt the area array CCD detector to replace the photodiode of single-point in the U2 instrument; So can obtain a width of cloth digital image of target area, for Flame Image Process provides good basis.Adopt single led the comparing in area source and the U2 instrument, the homogeneity of its irradiation and the stability of luminous intensity are guaranteed.The image that opposite battle array ccd detector collects carries out after processing such as gradation conversion, edge extracting, the background inhibition operation finally rapidly and accurately that quantitative Analysis goes out the corresponding concentration results of sample, thereby can realize the quantitative identification of gold marking spot method low concentration sample.
Embodiment
Below in conjunction with specific embodiment, further set forth the present invention.Should be understood that these embodiment only to be used to the present invention is described and be not used in the restriction scope of the present invention.Should be understood that in addition those skilled in the art can do various changes or modification to the present invention after the content of having read the present invention's instruction, these equivalent form of values fall within the application's appended claims institute restricted portion equally.
The present invention relates to a kind of collaurum detection method based on Digital Image Processing; This method is to collecting after digital image carried out gradation conversion, edge extracting, background inhibition etc. and handle operation; Final quantitative calculation goes out the corresponding concentration results of sample; Utilize this method not only can realize the qualitative judgement of sample yin and yang attribute, can also realize quantitative application at low side.Its concrete steps are as shown in Figure 1, may further comprise the steps:
(1) closely obtains the RGB coloured image of reaction plate through the area array CCD detector; Wherein, Reaction plate receives the irradiation of area source, receive light more even owing to adopt area source to replace original single led reaction plate that makes, and the luminous intensity of area source is also more stable.Adopt the area array CCD detector to replace the photodiode of single-point, so can obtain a width of cloth digital image of target area, for Flame Image Process provides good basis.
(2) the RGB coloured image that obtains is converted into gray level image, can uses floating-point arithmetic to realize usually, promptly get Gray=R*0.3+G*0.59+B*0.11, original RGB (R; G, the R in B), G, B is unified to be replaced with Gray; (Gray, Gray Gray), replace original RGB (R with it to form new color RGB; G B), has just become gray-scale map.
(3) utilize edge algorithms from gray level image, to extract the edge of target area to be analyzed;
(4) confirm the center of spot in the image, distinguish central area and neighboring area.Because this method is come identification plate colour developing situation based on Flame Image Process, so higher to the status requirement of reaction plate spot.As shown in Figure 2; The image range that the area array CCD detector is obtained is rectangle (being the rectangle that has oblique line among Fig. 2); This rectangle size is made as 10.70*8.56mm (720*526 pixel); Diameter (being the diameter of test paper) at this assumed response plate center pit is 7.4mm (being white background border circular areas among Fig. 2), and this moment, the diameter range of spot was exactly the center of confirming.In this step, also comprise following substep, comprising the pixel gray-scale value in two kinds of zones, i.e. central area pixel and neighboring area pixel:
(a) establish a square area in picture centre; It is the dashed square at Fig. 2 center; The size of this square area is made as 1.93*1.93mm (130*130 pixel), the center of said square area and test paper center heavy with, in described square area, choose the central area pixel;
(b) around image, be provided with four rectangular areas, i.e. dashed rectangle among Fig. 2, the size of each rectangular area is made as 1.78*0.45mm (120*30 pixel), in described rectangular area, chooses the neighboring area pixel;
The position of spot is confirmed in the requirement that (c) must cover described square area according to spot and can not get into any one described rectangular area.That is to say that get a little correctly in order to guarantee the central area, spot must cover described square area; In order to guarantee that the neighboring area gets a little correctly, spot can not get in any one described rectangular area.According to above-mentioned 2 requirements the position of spot is carried out confirming as follows: at first; It is the center of circle that spot should cover with the test paper center; Diameter should be greater than the cornerwise border circular areas of square area (guaranteeing to cover the value of central area); For
secondly big I according to the square area of above-mentioned hypothesis obtains diameter; It is the center of circle that the edge of spot can not surpass with the test paper center; Diameter should be less than the border circular areas (guaranteeing not get into the neighboring area value) of distance between short relative rectangular area; The distance of two groups of rectangular areas among Fig. 2 is identical, and according to the size of rectangular area, is that 3.6mm (<test paper diameter/2) can guarantee not get into the neighboring area value so locate diameter.Therefore, the diameter of spot should be greater than interior diameter of a circle among Fig. 2 less than the diameter of cylindrical.So pass through to confirm the position of spot, thereby central area and neighboring area are distinguished.
(5) has the shortcoming of unevenness through the spot that in reaction plate, forms after the diafiltration for fear of collaurum; In central area and neighboring area, select four test zones (be among Fig. 3 four square area on the spot and four rectangular areas on the test paper) respectively; And the pixel in the test zone compared the concentration of quantitative Analysis sample.Wherein, each test zone contains 3600 pixels.
The invention still further relates to the device of a kind of use based on the collaurum detection method of Digital Image Processing; As shown in Figure 4; Comprise light source, detector, DSP image digitization processing platform and display, described DSP image digitization processing platform comprises image conversion module, edge extracting module, speckle displacement determination module, zone selection module and the comparison computing module that links to each other successively; Described light source is an area source, with rayed on reaction plate; Described detector is the area array CCD detector, is used to obtain the RGB coloured image of reaction plate; Described image conversion module is used for converting the RGB coloured image into gray level image; Described edge extracting module is used for extracting from gray level image the edge of target area to be analyzed; Described speckle displacement determination module is used for confirming the center of image spot; Described zone selects module to be used for selecting four test zones respectively in speckle regions and neighboring area, wherein, all contains 3600 pixels in each test zone.Described relatively computing module is used for the pixel of the test zone of selecting is compared, and the concentration of quantitative Analysis sample; Described display is used to show the concentration results of sample correspondence.
Described speckle displacement determination module comprises regional setting module and position determination module; Described regional setting module is used for establishing a square area and around image, setting four rectangular areas in picture centre; The position of spot is confirmed in the requirement that described position determination module must cover described square area according to spot and can not get into any one described rectangular area.
Collaurum pick-up unit based on Digital Image Processing counts 0.5% through its survey read stability of test shows with CV, meet requirements for clinical application fully, and the CV of original U2 instrument is approximately 1%.
HCG serum specimen kit with the gold marking spot method is an example below, compares with regard to U2 instrument and the present invention.The low side detection line only can reach 100mIU on the U2 instrument, and the relative U2 instrument of low side sensing range of the present invention has extended to 10mIU.This is significant to clinical practice: because 25mIU is the negative positive critical point of HCG; Because low side sensing range of the present invention has covered this point; Therefore not only can realize the qualitative judgement of sample yin and yang attribute, can also realize quantitative application at low side.
In addition; The CRP project also gets a promotion along with low side detectability of the present invention; (sensing range: 5mg/L~160mg/L) can realize detection (scope: the 0.1mg/L~5mg/L) of ultra quick CRP again simultaneously to the detection that in the present invention, can realize conventional CRP with the application extension of CRP on the U2 instrument.
Following table is the measurement range contrast of the present invention and U2 instrument.