The invention relates to the technical field of
image processing, in particular to a
forging heat treatment deformation detection method and
system.The method comprises the steps that firstly, a gray image of a
forging is obtained, a gradient vector, gray saturation and local entropy are calculated, gradient credibility is determined, a local credible vector is calculated, and a guide
vector field is generated through
tensor diffusion; then, on the basis of the initialized
active contour model, an energy function of the initialized
active contour model is reconstructed during iterative updating, and an
external energy item is driven by a guide vector of a contour point; an
internal energy item is constrained by an anisotropic stiffness
tensor calculated based on a gradient vector and a local entropy, and deformation analysis is carried out after a final model is converged to a
thermal state contour. According to the method, internal and
external energy items of a traditional model are systematically corrected, so that halo and heat
haze interference is inhibited, the problem of feature
confusion is solved, and the accuracy and robustness of contour detection in a high-temperature and strong-interference environment are improved.