The invention belongs to the technical field of medical image
digital image processing, and particularly relates to a
prostate TRUS-MRI registration method based on multi-scale weighting and an adaptive window, and the method comprises the steps: firstly collecting an ultrasonic image and a magnetic
resonance image of a
prostate, dividing the ultrasonic image and the magnetic
resonance image into a
training set, a
verification set and a
test set, and sketching a
mask for a
prostate gland in each image; then the input image is preprocessed; then, UNet is adopted as a feature extractor, a deformation field is output in combination with a
spatial transformation network, deformation is applied through an STN pair, and a registration image is obtained; the method comprises the following steps: firstly, acquiring three parts of an ultrasonic image, then constructing a network
loss function, finally, acquiring a total
loss function according to the three parts of the network
loss function, performing staged training, finally, outputting the total network loss function,
processing a subsequent ultrasonic image and a magnetic
resonance image, and outputting a registration image. Compared with the prior art, the method has the comprehensive advantages of cross-
modal adaptability, detail optimization capability, calculation efficiency and generalization performance, so that the method is remarkably improved.