The invention provides a method for nondestructively extracting rice spike character through X-
ray-visible light dual-mode imaging. The method comprises the following steps: synchronously acquiring arice spike reflected light surface image and a transmission light image through a dual-mode imaging
system, extracting rice spike neck, spike grain contour,
rice grain contour, spike
branch skeleton and like characteristics by applying
ellipse detection,
watershed segmentation, refining
processing and
Hough transform, obtaining a
fusion image through
image registration and establishing a mathematical characterization of the rice spike yield trait; representing the total spike
grain number by adopting mark numbers of the rice spike grain visible light segmentation image communicating region; representing the grouting degree of the spike grain by adopting the ratio of a registered
rice grain area to the
rice grain contour area, thereby distinguishing filled grains and blighted grains, performing effective spike judgment and computing a seed percentage; calibrating through a standard sample, and establishing a thousand seed weight
mathematical model by combining the spike grain region area integral based on the
linear regression analysis and the least square method; computing the spike length, primary
branch number, primary
branch average length and secondary
branch number through a rice spike skeleton path, and representing the grain setting density by using the ratio of the
grain number and the spike length. The method provided by the invention has the advantages that the rick spike yield trait can be quickly and accurately acquired under the condition of not
threshing and separating the filled grains and blighted grains, and a feasible path is provided for the application of the dual-mode imaging in the rice spike yield trait
nondestructive analysis.