Eye fundus cross-modal generation method and system based on registration, blood vessel constraint and multi-scale style

By employing a cross-modal fundus generation method based on registration and multi-scale style, the problems of misalignment and vascular structure constraints in the generation of fundus color images to fluorescence angiography images are solved, achieving more consistent and detailed generation results and reducing reliance on invasive examinations.

CN123160719APending Publication Date: 2026-11-24BEI JING NORMAL UNIV HONG KONG BAPTIST UNIV UNITED INT COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611654449.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies suffer from several problems in the process of generating fluorescein angiography images from fundus color photographs. These problems include image misalignment affecting the supervised training effect, insufficient constraints on vascular structure, difficulty in characterizing the scale differences of angiography images with a single style representation, and pixel-level errors leading to smoothing of the generated results. These issues affect the structural consistency and detail preservation ability of the generated images.

Method used

A generative method based on registration, vascular constraint, and multi-scale style is adopted. Through image registration, vascular structure encoding, and multi-scale style modeling, a fluorescein fundus angiography image consistent with the input fundus structure is generated. This includes feature point detection, descriptor extraction, Hamming distance matching, multi-scale feature stitching, and joint loss function training.

Benefits of technology

It improves the spatial consistency, vascular structure preservation, and fluorescence angiography appearance of the generated images, enhances the structural accuracy and detail of the generated images, and reduces the risk of vascular rupture and artifacts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160719A_ABST
    Figure CN123160719A_ABST
Patent Text Reader

Abstract

This invention relates to a method and system for cross-modal fundus image generation based on registration, vascular constraint, and multi-scale style modulation. Based on fundus color images combined with prior knowledge of vascular structures and a multi-scale style modulation mechanism, this invention generates synthetic angiographic images that are consistent with the input CFP fundus structure and possess the appearance characteristics of fluorescein fundus angiography. This reduces reliance on invasive angiography data and provides technical support for assisted diagnosis of fundus diseases, data augmentation, and cross-modal medical image analysis. This invention improves the spatial consistency of cross-modal image generation. By introducing an image registration process before generation, this invention makes the fluorescein fundus angiography image and the fundus color image more spatially consistent, reducing supervision errors caused by image misalignment, thereby improving model training stability and the accuracy of generated image structures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method and system for generating cross-modal fundus images based on registration, vascular constraint, and multi-scale style, belonging to the field of medical image processing technology. Background Technology

[0002] Fundus color imaging can directly reflect the retinal surface structure, optic disc morphology, macular region, and some vascular distribution, and is a commonly used imaging type in ophthalmic screening and fundus assessment for chronic diseases. Fluorescein fundus angiography images can further display information such as retinal vascular perfusion, leakage, non-perfusion areas, and microvascular abnormalities, and have important reference value in the diagnosis of diabetic retinopathy, retinal vein occlusion, choroidal-related diseases, and other fundus vascular diseases. However, fluorescein fundus angiography usually requires the injection of contrast agent into the subject, making the procedure somewhat invasive and potentially limited by factors such as patient tolerance, equipment conditions, imaging timing, and clinical resources. Therefore, how to infer or generate fundus angiography images with angiographic features using more readily available fundus color images has become a problem with practical application value in the field of medical image analysis.

[0003] In recent years, deep learning methods have been used for cross-modal translation tasks in medical images, such as mapping one medical image to another using generative models. These methods typically extract features from the input image using an encoder, and then reconstruct the target modality image using a decoder. For fundus images, although color fundus photographs and fluorescein angiography images originate from the same fundus anatomical structure, they differ significantly in imaging mechanisms, brightness distribution, vascular visualization, background texture, and lesion manifestation. When relying solely on ordinary image-to-image translation networks for conversion, the model easily learns pixel-level average mappings, leading to problems such as blurred vessel boundaries, missing small vessels, abnormal local bright spots, unstable background angiography style, or excessive retention of the color photograph appearance in the generated image.

[0004] Furthermore, fundus color images and fluorescein angiography images often exhibit differences in visual field, eye movement, shooting angle, scale variations, and local deformations during actual acquisition. If unaligned image pairs are directly used for supervised training, pixel-level loss will be affected by misaligned regions, causing the model to mistake registration errors for image differences during training, thus reducing the structural consistency of the generated images. Especially in areas with dense blood vessels, near the optic disc, and at image edges, even slight misalignments can lead to vascular rupture, ghosting, or erroneous enhancement. Therefore, reliable spatial alignment of images before cross-modal generation and assessment of registration quality are crucial steps in improving the stability of the generated results.

[0005] Existing generative methods typically emphasize overall appearance transformation but lack explicit constraints on retinal vascular structures. The core diagnostic value of fundus fluorescein angiography images largely stems from vascular morphology, orientation, bifurcation, and perfusion features. If the generative model lacks prior knowledge of vascular structures, it may produce visually natural images, but its vascular topology will be inconsistent with the input fundus structure, affecting the reliability of subsequent medical analysis. Therefore, it is necessary to incorporate vascular segmentation results or vascular structure maps as conditional information into the generative process, enabling the model to maintain a consistent vascular spatial layout with the input fundus image while generating angiographic styles.

[0006] Furthermore, stylistic differences in fundus angiography images are not only reflected in global brightness or color distribution, but also in details at different scales. For example, deep features reflect the overall retinal layout and large-scale fluorescence distribution, intermediate features are related to the main blood vessels and local transitions, while superficial features affect the edges of fine blood vessels, local textures, and background details. If only a single global style vector is used to uniformly modulate all decoding layers, it may be difficult to simultaneously capture both global angiography style and local vascular details; without scale correspondence, the generated results may also suffer from unstable local textures or insufficient structural details. Therefore, it is necessary to construct a multi-scale feature representation mechanism that enables image content features, vascular structure features, and angiography style features to be collaboratively modeled at different resolution levels.

[0007] In summary, existing technologies still have the following shortcomings in the process of generating fluorescein angiography images from fundus color images: First, spatial misalignment between the input and target images affects the supervised training effect; second, the generative network's constraint on vascular structure is insufficient, making it difficult to ensure that the generated image is consistent with the original fundus vascular layout; third, single-style representation is insufficient to characterize the appearance differences of the angiography image at different scales; fourth, pixel-level error optimization easily leads to smoothing of the generated result, reducing vascular detail and angiography realism. Therefore, there is an urgent need for a cross-modal generation method for fundus images that can integrate image registration, vascular structure constraint, and multi-scale style modeling to improve the structural consistency, detail preservation ability, and visual realism when generating fluorescein fundus angiography images from fundus color images. Summary of the Invention

[0008] To address the shortcomings of existing technologies, this invention provides a cross-modal fundus image generation method and system based on registration, vascular constraint, and multi-scale style. It utilizes color fundus photography (CFP) combined with vascular structure priors and multi-scale style modulation mechanisms to generate a synthetic angiography (FFA) image that maintains consistency with the input CFP fundus structure and exhibits the appearance characteristics of fluorescein angiography. This reduces reliance on invasive angiography data and provides technical support for assisted diagnosis of fundus diseases, data augmentation, and cross-modal medical image analysis.

[0009] The technical solution of the present invention is as follows:

[0010] The first aspect of the present invention provides a method for cross-modal generation of fundus images based on registration, vascular constraint, and multi-scale style, comprising:

[0011] Step 1: Obtain the original fundus color image and the corresponding fluorescein fundus angiography image, and preprocess them. After preprocessing, input them into the pre-trained vascular segmentation model to obtain the vascular structure map of the color image and the vascular structure map of the angiography.

[0012] Step 2: Perform feature point detection and descriptor extraction on the color vascular structure image and angiography vascular structure image, calculate the Hamming distance of the descriptors, select feature points that meet the Hamming distance conditions, and form a candidate matching point set;

[0013] Step 3: Calculate the final homography matrix of the candidate matching point set, register the fluorescein fundus angiography image according to the final homography matrix, obtain the registered fluorescein fundus angiography image, and perform quality evaluation. The registered fluorescein fundus angiography images that pass the quality evaluation are retained.

[0014] Step 4: Construct a multi-scale structural style joint generator, including an image content encoder, a vascular structure encoder, a style modeling module, and an encoding generation module;

[0015] The preprocessed original fundus color image is input into the image content encoder to extract multi-scale image features; the color image vascular structure map is input into the vascular structure encoder to extract multi-scale vascular structure features.

[0016] The style modeling module concatenates multi-scale image features and multi-scale vascular structure features, and performs reparameterized sampling to obtain multi-scale style vectors.

[0017] The encoding generation module performs multi-level decoding on multi-scale style vectors, multi-scale image features and color vascular structure maps to generate fluorescein fundus angiography images.

[0018] Step 5: Construct a joint loss function and a discriminator loss function to train the multi-scale structural style joint generator, and use the trained multi-scale structural style joint generator to generate fluorescein fundus angiography images.

[0019] According to a preferred embodiment of the present invention, the specific implementation process of step 1 includes:

[0020] Acquire fundus images, including raw fundus color images and corresponding fluorescein fundus angiography images, and scale them up;

[0021] For the scaled image ,in This represents a scaled-down version of the original fundus image. This represents a scaled-down image of a fluorescein fundus angiography, the first... Each channel at pixel position The normalized value of the pixel at that location is:

[0022] ;

[0023] in, This indicates the pixel position in the c-th channel of the image. Pixel value at; Indicates the result after linear normalization The pixel value of the location;

[0024] The linearly normalized image is transformed to obtain the preprocessed original fundus color image and the corresponding fluorescein fundus angiography image, which are denoted as x and y respectively.

[0025] The preprocessed original fundus color image and the corresponding fluorescein fundus angiography image were compared. Inputting each data point into a pre-trained blood vessel segmentation model yields a blood vessel probability prediction map. and ,in, This represents a pre-trained blood vessel segmentation model. , The probability prediction maps for blood vessels are shown for x and y, respectively.

[0026] The blood vessel probability prediction map is thresholded as follows:

[0027] ;

[0028] in, This represents a color photograph of vascular structures. This represents a diagram of the angiographic vascular structure. Indicates the blood vessel segmentation threshold; Indicates an indicator function;

[0029] Further preferred, blood vessel segmentation threshold It is 0.5.

[0030] According to a preferred embodiment of the present invention, step 2 includes the following specific implementation process:

[0031] The AKAZE algorithm was used to analyze the color-coded vascular structure image. Feature point detection and descriptor extraction were performed to obtain the feature set of the color image of blood vessel structure:

[0032] ;

[0033] in, This represents the set of features in a color Doppler image of vascular structures. This represents the coordinates of the i-th feature point in the color vascular structure image. A binary descriptor representing a feature point. This represents the total number of detected feature points;

[0034] Using the AKAZE algorithm to analyze angiographic vascular structures Feature point detection and descriptor extraction are performed to obtain the feature set of the angiographic vascular structure image:

[0035] ;

[0036] in, This represents the set of features in angiographic vascular structure diagrams. This represents the coordinates of the j-th feature point in the angiographic vascular structure map. A binary descriptor representing the feature points of angiographic vascular structure map. This represents the total number of feature points detected in the angiographic vascular structure map;

[0037] After obtaining the feature sets of color vascular structure images and angiographic vascular structure images, the Hamming distance is used to measure the difference between two descriptors of different feature sets:

[0038] ;

[0039] in, Indicates Hamming distance, and This represents two descriptors to be compared, where r represents the bit index of the descriptor. , These represent two descriptors at bit index r. Indicates an indicator function;

[0040] For each descriptor in the angiographic vascular structure map, the descriptor with the closest Hamming distance and the second closest Hamming distance are obtained from the descriptors in the color vascular structure map, and candidate matching retention conditions are constructed:

[0041] ;

[0042] in, This represents the Hamming distance between the nearest descriptors. This represents the Hamming distance between the second-closest descriptors. This represents the distance ratio threshold; feature point pairs that meet the candidate matching retention criteria are grouped into a candidate matching point set:

[0043] ;

[0044] in, Represents the set of candidate matching points. This represents the k-th candidate matching point, or feature point, in the angiographic vascular structure map. These represent candidate matching points for the corresponding color Doppler vascular structure images. This represents the total number of candidate matching points;

[0045] Further preferred, distance ratio threshold .

[0046] According to a preferred embodiment of the present invention, step 3 specifically includes the following steps:

[0047] If the number of candidate matching points is less than 8, it is marked as a registration failure;

[0048] When the number of candidate matching points is greater than or equal to 8, the Random Sample Consensus Algorithm (RANSAC) is used to further filter the candidate matching point set and estimate the homography matrix between the angiographic vascular structure image and the color Doppler vascular structure image. :

[0049] ;

[0050] in, Represents the candidate homography matrix. express The Middle Line number Column matrix elements;

[0051] Let the coordinates of the candidate matching points in the angiographic vascular structure image be... , and Let x and y represent the x and y coordinates of the candidate matching points, respectively. Convert to homogeneous coordinates Candidate matching points are mapped to the coordinate space of the color Doppler vascular structure image using the candidate homography matrix H.

[0052] ;

[0053] in, This indicates the two-dimensional positions of feature points in the color vascular structure image obtained from the candidate homography matrix. Represents the homogeneous coordinates after mapping. This represents the homogeneity dehomogenization operation, i.e. Subsequently, calculations were performed. Candidate matching points with color Doppler images of vascular structures Reprojection error between:

[0054] ;

[0055] in, This indicates the reprojection error. Indicates Euclidean distance;

[0056] Determine whether the candidate matching point satisfies the current candidate homography matrix error based on the reprojection error:

[0057] ;

[0058] in, This represents the interior point label of the k-th candidate matching point. Indicates the reprojection error threshold; when hour, The interior points of candidate matching points are marked as interior points; when hour, The interior points of candidate matching points are marked as exterior points;

[0059] After screening using the Random Sample Consensus (RANSAC) algorithm, the candidate homography matrix with the highest number of interior points identified as interior points is selected as the optimal model. Then, the final homography matrix is ​​re-estimated using all interior points corresponding to the optimal model.

[0060] ;

[0061] in, Represents the final homography matrix. This represents the dehomogenization operation that converts homogeneous coordinates to two-dimensional coordinates. Represents the square of the Euclidean distance;

[0062] Based on the final homography matrix, the fluorescein fundus angiography image y is mapped to the coordinate space of the original fundus color image x to obtain the registered fluorescein fundus angiography image:

[0063] ;

[0064] in, This shows the registered fluorescein fundus angiography image. Indicates perspective transformation operation;

[0065] After obtaining the registered fluorescein fundus angiography images Subsequently, the registration quality was evaluated from two aspects: feature point matching consistency and the degree of spatial overlap of vascular structures; including: calculating the inlier rate based on the number of inlier points and the total number of candidate matching points.

[0066] ;

[0067] in, This indicates that the final homography matrix is ​​satisfied. The number of interior points, Indicates the total number of candidate matching points. Represents the interior point rate; uses the final homography matrix. Image of angiography Perform perspective transformation:

[0068] ;

[0069] in, This represents the angiographic vascular structure image after registration, i.e., the image obtained through the final homography matrix. An angiographic image of the vascular structure after perspective transformation;

[0070] Color image of blood vessel structure And the registered angiographic vascular structure diagram Convert to a binary angiography and calculate the Dice coefficient:

[0071] ;

[0072] in, Represents the Dice coefficient. This indicates the number of pixels representing blood vessels in a color vascular structure image. This indicates the number of blood vessel pixels in the registered angiographic vascular structure image. This indicates the number of blood vessel pixels in the overlapping region. To prevent numerical stability constants with a denominator of zero;

[0073] Set Dice coefficient threshold Set the interior point ratio threshold When the interior point ratio is greater than or equal to And the Dice coefficient is greater than or equal to At the same time, retain the registered fluorescein fundus angiography images. Registered fluorescein fundus angiography images As a monitoring target; otherwise, the current registration result is considered unreliable.

[0074] Further preferred, reprojection error threshold Dice coefficient threshold 0.5; Inner point rate threshold It is 0.5.

[0075] According to a preferred embodiment of the present invention, the preprocessed original fundus color image is input into an image content encoder to extract multi-scale image features; the color image vascular structure map is input into a vascular structure encoder to extract multi-scale vascular structure features; including:

[0076] The image content encoder includes a first convolutional coding layer, a second convolutional coding layer, and a third convolutional coding layer;

[0077] The vascular structure encoder includes a first vascular structure convolutional coding layer, a second vascular structure convolutional coding layer, and a third vascular structure convolutional coding layer;

[0078] Preprocessed original fundus color image The input image content encoder processes the preprocessed raw fundus color image through the first convolutional coding layer. After boundary padding, the first-scale image features are obtained through convolution operations and the non-linear activation function LeakyReLU, as shown below:

[0079] ;

[0080] in, Indicates boundary filling. This represents the convolution operation. and These are the convolution weights and biases, respectively. LeakyReLU is a non-linear activation function. Represents the image features at the first scale;

[0081] The first-scale image features are processed through the second convolutional coding layer. After performing downsampling convolution, the second-scale image features are obtained through the LeakyReLU activation function:

[0082] ;

[0083] in, Represents the second-scale image features. and These represent the learnable convolutional weights and biases of the second convolutional coding layer, respectively.

[0084] The second-scale image features are processed through the third convolutional coding layer. Perform convolution operations and apply the LeakyReLU activation function to obtain the third-scale image features:

[0085] ;

[0086] in, Represents the features of a third-scale image. and These represent the learnable convolutional weights and biases of the third convolutional coding layer, respectively.

[0087] Multi-scale image features are obtained, including first-scale image features, second-scale image features, and third-scale image features;

[0088] Color image of blood vessel structure The input vascular structure encoder processes the input through the first vascular structure convolutional coding layer. Convolution operations are performed, and intermediate features are obtained through the LeakyReLU nonlinear activation function; then, convolution operations are performed again, and the first-scale vascular structure features are obtained through the LeakyReLU activation function.

[0089] ;

[0090] in, This represents the first-scale vascular structure features, and * indicates a convolution operation. , This represents the convolution weights in the first vascular structure convolutional coding layer. , This indicates the corresponding bias. LeakyReLU represents the non-linear activation function.

[0091] The second vascular structure convolutional coding layer performs convolution operations on... Spatial downsampling is performed, and intermediate features are obtained through the nonlinear activation function LeakyReLU. Subsequently, convolution operations are used to further extract structural features, and second-scale vascular structural features are obtained through a nonlinear activation function.

[0092] ;

[0093] in, This indicates the characteristics of vascular structures at the second scale. , This represents the convolution weights of the second vascular structure convolutional coding layer. , Indicates the corresponding bias;

[0094] The third vascular structure convolutional coding layer uses convolution operations to... Spatial downsampling is performed, and intermediate features are obtained through the nonlinear activation function LeakyReLU. Then, convolution operations are used again to further extract deep vascular structure features, and the third-scale vascular structure features are obtained through the nonlinear activation function LeakyReLU.

[0095] ;

[0096] in, This indicates the structural features of blood vessels at the third scale. , This represents the convolution weights of the third vascular structure convolutional coding layer. , Indicates the corresponding bias;

[0097] Multi-scale vascular structural features were obtained, including first-scale vascular structural features, second-scale vascular structural features, and third-scale vascular structural features.

[0098] According to a preferred embodiment of the present invention, a multi-scale image feature and a multi-scale vascular structure feature are concatenated by a style modeling module and reparameterized sampling is performed to obtain a multi-scale style vector; including:

[0099] Multiscale image features Multiscale vascular structural features The features are concatenated along the channel dimension and integrated using convolutional mapping to obtain joint features:

[0100] ;

[0101] in, Indicates joint features, This represents multi-scale image features, specifically the image features at the i-th scale. ; This represents the multi-scale vascular structural features, specifically the vascular structural features at the i-th scale. This indicates a channel splicing operation. This represents the convolution mapping function, which includes a convolution operation, a LeakyReLU activation function, a convolution operation, and a LeakyReLU activation function connected in sequence.

[0102] After obtaining the joint features, Perform global average pooling to obtain compact scale-level feature vectors. :

[0103] ;

[0104] in, This represents a global average pooling operation; it predicts the mean and variance parameters of the latent distribution using two independent parameter mapping functions:

[0105] ;

[0106] in, and They represent the first The mean and log-variance of the potential distribution at each scale. and Indicates a parameter mapping function;

[0107] The standard deviation is further calculated based on the obtained log-variance:

[0108] ;

[0109] in, Indicates standard deviation;

[0110] Latent variables are obtained from the conditional latent distribution using the reparameterization method:

[0111] ;

[0112] in, Indicates the first Potential variables at various scales Let be a standard normally distributed random variable. This represents element-wise multiplication;

[0113] Finally, obtain the latent variables. Style vectors corresponding to the scale:

[0114] ;

[0115] in, This represents a multi-scale style vector, specifically the style vector at the i-th scale. ; This represents a style mapping function.

[0116] According to a preferred embodiment of the present invention, a multi-scale style vector, multi-scale image features, and color vascular structure map are decoded in multiple layers through an encoding generation module to generate a fluorescein fundus angiography image; including:

[0117] Using third-scale image features As the initial feature for decoding, combined with the color Doppler vascular structure image and third-scale style vector Generate deep decoding features As shown below:

[0118] ;

[0119] in, This represents the deep decoding features output from the third-scale decoding stage; Represents third-scale image features; This represents a color photograph of a blood vessel structure. Represents the third-scale style vector; This indicates the third-scale decoding and modulation module;

[0120] right Upsampling is performed and compared with second-scale image features. The images were stitched together and then combined with color Doppler images of vascular structures. Second-scale style vector Generate mid-level decoding features As shown below:

[0121] ;

[0122] in, This represents the mid-level decoding features output from the second-scale decoding stage; Indicates deep decoding features Upsampling operations are performed, including convolution operations and the LeakyReLU activation function; Represents second-scale image features; Indicates concatenation of channel dimensions; Represents the second-scale style vector; This indicates the second-scale decoding and modulation module;

[0123] right Continue upsampling and compare with the first-scale image features. The images were then pieced together and combined with a diagram of the vascular structure. and first-scale style vector Generate shallow decoding features As shown below:

[0124] ;

[0125] in, This represents the shallow decoding features output from the first-scale decoding stage; Indicates the decoding features of the middle layer Upsampling is performed, including convolution operations and the LeakyReLU activation function; Represents the image features at the first scale; Represents the first-scale style vector; This indicates the first-scale decoding and modulation module;

[0126] Finally, the output mapping function will... Converted into generated fluorescein fundus angiography images ;

[0127] ;

[0128] in, This represents the generated fluorescein fundus angiography image; This represents the output mapping function, including convolution operations and the Tanh activation function;

[0129] More preferably, the first-scale decoding and modulation module, the second-scale decoding and modulation module, and the third-scale decoding and modulation module all include a spatial adaptive normalization module and an adaptive instance normalization module;

[0130] The spatial adaptive normalization module is based on the color Doppler image of the vascular structure. Differential constraints are applied to different spatial locations of the decoded features, as shown below:

[0131] ;

[0132] in, This indicates the characteristics after being constrained by vascular structures. Represents the result of adaptive normalization of the representation space. This represents the input to the first-scale decoding and modulation module, the second-scale decoding and modulation module, and the third-scale decoding and modulation module; This indicates a normalization operation. and Color image of vascular structure Spatial scaling and translation parameters are dynamically generated through learnable mapping. This represents element-wise multiplication;

[0133] The adaptive instance normalization module AdaIN is used to normalize the features constrained by the vascular structure. Then, channel-related scaling and translation parameters are generated from the multi-scale style vector to obtain the adaptive instance normalization result, as shown below:

[0134] ;

[0135] in, This represents the structure-style modulation feature. Representing multi-scale style vectors For the conditional adaptive instance normalization result, and These represent the channel scaling parameters and channel translation parameters generated from the multi-scale style vectors, respectively.

[0136] Structure-style modulation features After performing convolution operations and calculating the LeakyReLU activation function, the calculation results of the i-th scale decoding and modulation module are obtained.

[0137] According to a preferred embodiment of the present invention, step 5 includes the following specific implementation process:

[0138] The joint loss function for the multi-scale structural style joint generator is constructed as follows:

[0139]

[0140] in, Denotes the joint loss function. , , , These represent the adversarial loss, feature matching loss, perceptual loss, and KL divergence loss, respectively. and These represent the weight coefficients of the adversarial loss, feature matching loss, perceptual loss, and KL divergence loss, respectively.

[0141] The losses from the confrontation are:

[0142] ;

[0143] in, Indicating resistance to loss, This refers to the generated image, specifically the generated fluorescein fundus angiography image. Expectations; This represents the discriminator's discriminative response to the generated image;

[0144] Feature matching loss is used to constrain And the registered fluorescein fundus angiography images Consistency in the intermediate feature space of the discriminator; feature matching loss is as follows:

[0145] ;

[0146] in, This represents the intermediate feature output by the k-th layer of the discriminator;

[0147] Perceptual loss is used to constrain the generated image The fluorescein fundus angiography image is registered with the target fluorescein angiography image. Consistency in the pre-trained visual feature space; and Input each of the same frozen pre-trained VGG feature extraction network into the network and extract feature maps from each selected layer. and and by layer weight calculate difference:

[0148]

[0149] in, This indicates the pre-trained VGG network's... Feature maps output by the layer This represents the corresponding loss weight;

[0150] The KL divergence loss is used to constrain the latent distribution in the style modeling module. The KL divergence loss at the i-th scale is:

[0151] ;

[0152] in, Denotes the KL divergence loss at the i-th scale. The first in the style modeling module The first scale The mean of each potential dimension, The logarithmic variance is represented by ; the average KL divergence loss over the three scales is taken to obtain the overall KL divergence loss:

[0153] ;

[0154] The discriminator loss function is:

[0155] ;

[0156] in, This represents the discriminator loss function. This indicates the registered fluorescein fundus angiography image. Expectations Indicates the generated image Expectations; Indicates that the discriminator is in Below image The discriminant response, Indicates the generated image under the same conditions The discriminative response.

[0157] Further optimized, weighting coefficients , , , .

[0158] A computer device includes a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of a cross-modal fundus generation method based on registration, vascular constraint, and multi-scale style.

[0159] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a cross-modal fundus generation method based on registration, vascular constraint, and multi-scale style.

[0160] A second aspect of the present invention provides a cross-modal fundus generation system based on registration, vascular constraint, and multi-scale style, comprising:

[0161] The preprocessing unit is configured to: acquire the original fundus color image and the corresponding fluorescein fundus angiography image, perform preprocessing, and input the preprocessed image into the pre-trained vascular segmentation model to obtain the vascular structure map of the color image and the vascular structure map of the angiography.

[0162] The candidate matching point set acquisition unit is configured to: perform feature point detection and descriptor extraction on color vascular structure images and angiographic vascular structure images, calculate the Hamming distance of the descriptors, select feature points that meet the Hamming distance condition, and form a candidate matching point set.

[0163] The registration unit is configured to: calculate the final homography matrix of the candidate matching point set, register the fluorescein fundus angiography image according to the final homography matrix, obtain the registered fluorescein fundus angiography image, perform quality evaluation, and retain the registered fluorescein fundus angiography image that passes the quality evaluation.

[0164] The image generation unit is configured to: construct a multi-scale structural style joint generator, including an image content encoder, a vascular structure encoder, a style modeling module, and an encoding generation module;

[0165] The preprocessed original fundus color image is input into the image content encoder to extract multi-scale image features; the color image vascular structure map is input into the vascular structure encoder to extract multi-scale vascular structure features.

[0166] The style modeling module concatenates multi-scale image features and multi-scale vascular structure features, and performs reparameterized sampling to obtain multi-scale style vectors.

[0167] The encoding generation module performs multi-level decoding on multi-scale style vectors, multi-scale image features and color vascular structure maps to generate fluorescein fundus angiography images.

[0168] The loss function training unit is configured to: construct a joint loss function and a discriminator loss function to train the multi-scale structural style joint generator, obtain a trained multi-scale structural style joint generator, and use the trained multi-scale structural style joint generator to generate fluorescein fundus angiography images.

[0169] The beneficial effects of this invention are as follows:

[0170] 1. Improved spatial consistency in cross-modal image generation. This invention introduces an image registration process before generation, making the fluorescein fundus angiography image and the fundus color photograph more consistent in spatial position, reducing supervision errors caused by image misalignment, thereby improving model training stability and the structural accuracy of generated images.

[0171] 2. Enhanced ability to maintain vascular structure. This invention uses the fundus vascular structure map as a generation condition and constrains the generation process through vascular structure encoding and spatial modulation mechanisms, ensuring that the vascular orientation, bifurcation positions, and overall topology in the generated image are consistent with the input fundus color image, reducing the risk of vascular rupture, misalignment, and artifacts.

[0172] 3. Improved modeling capabilities for fluorescence imaging appearance. This invention employs a multi-scale style modeling approach, extracting scale-related style representations at the shallow, intermediate, and deep layers, enabling the model to simultaneously express global fluorescence brightness, mesoscale vascular visualization, and local detail texture, thereby enhancing the realism and detail representation of the generated images.

[0173] 4. Improves the expressive limitations of single-style representation. Compared with generation methods that use only a single global style vector, this invention uses multi-scale content-structure joint modeling, enabling different decoding stages to obtain style modulation information that matches their spatial scale, which is beneficial for taking into account both the overall imaging style and local vascular details. Attached Figure Description

[0174] Figure 1 This is a structural diagram of the fundus cross-modal generation method based on registration, vascular constraint, and multi-scale style of the present invention;

[0175] Figure 2 This is a schematic diagram of the results of extracting vascular structures from fundus color images according to the present invention;

[0176] Figure 3 This is a schematic diagram illustrating the extraction of local AKAZE features from fundus color imaging vascular structures and fluorescein fundus angiography structures according to the present invention.

[0177] Figure 4 This is a schematic diagram illustrating the process of estimating the image homography transformation matrix based on the retained effective matching points according to the present invention.

[0178] Figure 5 This is a schematic diagram of a fluorescein fundus angiography image mapped to the fundus color imaging coordinate system according to the present invention;

[0179] Figure 6 This is a visual illustration of the synthesized images in the five categories of this invention. Detailed Implementation

[0180] The present invention will be further described below with reference to the embodiments and accompanying drawings, but is not limited thereto.

[0181] Example 1

[0182] Terminology Explanation:

[0183] The AKAZE (Accelerated KAZE Features) algorithm is a local feature detection and description method based on a nonlinear diffusion scale space. This algorithm detects local extrema on image representations at different scales and can use M-LDB binary descriptors to characterize the neighborhood structure of feature points. This invention utilizes this algorithm to establish candidate correspondences between two modalities of vascular structure images.

[0184] Registration, vascular constraint, and multi-scale style cross-modal generation methods for fundus, such as Figure 1 As shown, it includes:

[0185] Step 1: Obtain the original fundus color image and the corresponding fluorescein fundus angiography image, and preprocess them. After preprocessing, input them into the pre-trained vascular segmentation model to obtain the vascular structure map of the color image and the vascular structure map of the angiography.

[0186] Step 2: Perform feature point detection and descriptor extraction on the color vascular structure image and angiography vascular structure image, calculate the Hamming distance of the descriptors, select feature points that meet the Hamming distance conditions, and form a candidate matching point set;

[0187] Step 3: Calculate the final homography matrix of the candidate matching point set, register the fluorescein fundus angiography image according to the final homography matrix, obtain the registered fluorescein fundus angiography image, and perform quality evaluation. The registered fluorescein fundus angiography images that pass the quality evaluation are retained.

[0188] Step 4: Construct a multi-scale structural style joint generator, including an image content encoder, a vascular structure encoder, a style modeling module, and an encoding generation module;

[0189] The preprocessed original fundus color image is input into the image content encoder to extract multi-scale image features; the color image vascular structure map is input into the vascular structure encoder to extract multi-scale vascular structure features.

[0190] The style modeling module concatenates multi-scale image features and multi-scale vascular structure features, and performs reparameterized sampling to obtain multi-scale style vectors.

[0191] The encoding generation module performs multi-level decoding on multi-scale style vectors, multi-scale image features and color vascular structure maps to generate fluorescein fundus angiography images.

[0192] Step 5: Construct a joint loss function and a discriminator loss function to train the multi-scale structural style joint generator, and use the trained multi-scale structural style joint generator to generate fluorescein fundus angiography images.

[0193] Example 2

[0194] The specific implementation process of step 1 includes:

[0195] Acquire fundus images, such as Figure 2 As shown, the images include original fundus color images and corresponding fluorescein fundus angiography images (using the Multi-diseasePaired Ocular Synthesis (MPOS) dataset constructed and used by Wang et al. in their paper "Non-Invasive to Invasive: Enhancing FFA Synthesis from CFP with a Benchmark Dataset and a Novel Network"; this dataset contains paired CFP-FFA images of normal fundus and categories such as diabetic retinopathy (DR), retinal vein occlusion (RVO), age-related macular degeneration (AMD), and central serous chorioretinopathy (CSC), and were obtained and used in accordance with the data use and ethical requirements described in the original paper), and have been scaled (scaled to). );

[0196] For the scaled image ,in This represents a scaled-down version of the original fundus image. This represents a scaled-down image of a fluorescein fundus angiography, the first... Each channel at pixel position The normalized value of the pixel at that location is:

[0197] ;

[0198] in, This indicates the pixel position in the c-th channel of the image. Pixel value at; Indicates the result after linear normalization The pixel value of the location (normalized result is located at) (interval);

[0199] The linearly normalized images undergo dimensionality transformation (the dimensional order of the normalized original fundus color image and the corresponding fluorescein fundus angiography image is adjusted from height-width-channel format to channel-height-width format). Convert to After conversion, the preprocessed original fundus color image and the corresponding fluorescein fundus angiography image are obtained, and are denoted as x and y, respectively. );

[0200] The preprocessed original fundus color image and the corresponding fluorescein fundus angiography image were compared. Input the pre-trained vessel segmentation model (UNet_DCP, a retinal vessel segmentation model based on Dual Convolutional Prompting (DCP) from "Convolutional Prompting for Broad-Domain Retinal VesselSegmentation") to obtain the vessel probability prediction map. and ,in, This represents a pre-trained blood vessel segmentation model. , The probability prediction maps for blood vessels are shown for x and y, respectively.

[0201] The blood vessel probability prediction map is thresholded as follows:

[0202] ;

[0203] in, This represents a color photograph of vascular structures. This represents a diagram of the angiographic vascular structure. Indicates the blood vessel segmentation threshold; This indicates a function, for example, when the content of the parentheses is satisfied. , indicating pixel position It belongs to the vascular area, when hour, , indicating pixel position This area belongs to a non-vascular background region.

[0204] Blood vessel segmentation threshold It is 0.5.

[0205] The specific implementation process of step 2 includes:

[0206] The AKAZE algorithm was used to analyze the color-coded vascular structure image. Feature point detection and descriptor extraction were performed to obtain the feature set of the color image of blood vessel structure:

[0207] ;

[0208] in, This represents the set of features in a color Doppler image of vascular structures. This represents the coordinates of the i-th feature point in the color vascular structure image. A binary descriptor representing a feature point. This represents the total number of detected feature points;

[0209] Using the AKAZE algorithm to analyze angiographic vascular structures Feature point detection and descriptor extraction are performed to obtain the feature set of the angiographic vascular structure image:

[0210] ;

[0211] in, This represents the set of features in angiographic vascular structure diagrams. This represents the coordinates of the j-th feature point in the angiographic vascular structure map. A binary descriptor representing the feature points of angiographic vascular structure map. This represents the total number of feature points detected in the angiographic vascular structure map;

[0212] The AKAZE algorithm's feature point detection and descriptor extraction process involves constructing a scale space from the input vascular structure image using a nonlinear diffusion method.

[0213] ;

[0214] in, This represents the nonlinear diffusion-scale space construction process of the AKAZE algorithm. The AKAZE algorithm represents the first... Each scale parameter Indicates the first Image representation at various scales Indicates the number of scale layers; Color image of vascular structure Or angiographic vascular structure diagram This embodiment uses the default parameters of the AKAZE algorithm in OpenCV, with an initial scale of 1.6, and performs multi-layer feature detection on the input image according to the algorithm's default settings; for a 512×512 pixel input image, a total of 12 scale layers are set.

[0215] Image representation at various scales The local structural response at location p is calculated. In AKAZE feature point detection, the scale-normalized Hessian matrix determinant is used as the feature response, and its expression is:

[0216] ;

[0217] in, This represents the scale parameter corresponding to the i-th scale; and Representing scale images respectively The second-order partial derivatives at position p along the two spatial directions, Represents the cross-second partial derivative; This represents the local structural response value at position p at the i-th scale;

[0218] After obtaining the feature responses at each scale, extreme value detection is performed within the local scale-spatial neighborhood composed of the current scale and adjacent scales. When the response value of a candidate location is greater than the response values ​​of other locations in its neighborhood, and not lower than a preset feature response threshold, the location is determined as a feature point. The set of feature points is represented as follows:

[0219]

[0220] Where P represents the set of detected feature points, Indicated by position and the local scale-spatial neighborhood centered at the i-th scale; when the candidate location The response value is the maximum value within the local neighborhood and is not lower than the preset feature response threshold. When this location is determined, it is identified as a feature point; in this embodiment, it is taken as... It is 0.001;

[0221] For each feature point, the AKAZE algorithm generates a corresponding descriptor based on the vascular structure information in its neighborhood:

[0222] ;

[0223] in, Represented by feature points The local neighborhood centered on, This describes the descriptor generation process of the AKAZE algorithm. This represents the binary descriptor corresponding to the k-th feature point;

[0224] After obtaining the feature sets of color vascular structure images and angiographic vascular structure images, the Hamming distance is used to measure the difference between two descriptors of different feature sets:

[0225] ;

[0226] in, Indicates Hamming distance, and This represents two descriptors to be compared, where r represents the bit index of the descriptor. , These represent two descriptors at bit index r. The Hamming distance indicates the indicator function; the smaller the distance, the more similar the local vascular structures in the neighborhood of the two feature points.

[0227] For each descriptor in the angiographic vascular structure map, the descriptor with the closest Hamming distance and the second closest Hamming distance are obtained from the descriptors in the color vascular structure map. Ambiguous matches are eliminated using the distance ratio test, and candidate match retention conditions are constructed:

[0228] ;

[0229] in, This represents the Hamming distance between the nearest descriptors. This represents the Hamming distance between the second-closest descriptors. This represents the distance ratio threshold; feature point pairs that meet the candidate matching retention criteria are grouped into a candidate matching point set:

[0230] ;

[0231] in, Represents the set of candidate matching points. This represents the k-th candidate matching point, or feature point, in the angiographic vascular structure map. These represent candidate matching points for the corresponding color Doppler vascular structure images. This represents the total number of candidate matching points;

[0232] Distance ratio threshold .

[0233] The specific implementation process of step 3 includes:

[0234] When the number of candidate matching points is less than 8, it is marked as a registration failure; RANSAC screening and homography matrix estimation are no longer performed, and this image is not used as a supervised sample after registration to enter subsequent training in order to avoid interference caused by incorrect registration;

[0235] When the number of candidate matching points is greater than or equal to 8, since there may still be erroneous matches in the candidate matching point set, the Random Sample Consensus Algorithm (RANSAC) is used to further filter the candidate matching point set and estimate the homography matrix between the angiographic vascular structure image and the color Doppler vascular structure image. (In each iteration of the Random Sample Consensus Algorithm (RANSAC), four pairs of non-collinear matching points are randomly selected from the candidate matching point set as the minimum subset. The Direct Linear Transformation (DLT) is used to solve for the candidate homography matrix from the contrast coordinate space to the color photo coordinate space.)

[0236] ;

[0237] in, Represents the candidate homography matrix. express The Middle Line number Column matrix elements; It is a 3×3 matrix, and its scale can be normalized to . ;

[0238] Let the coordinates of the candidate matching points in the angiographic vascular structure image be... , and Let x and y represent the x and y coordinates of the candidate matching points, respectively. Convert to homogeneous coordinates Candidate matching points are mapped to the coordinate space of the color Doppler vascular structure image using the candidate homography matrix H.

[0239] ;

[0240] in, This indicates the two-dimensional positions of feature points in the color vascular structure image obtained from the candidate homography matrix. Represents the homogeneous coordinates after mapping. This represents the homogeneity dehomogenization operation, i.e. Subsequently, calculations were performed. Candidate matching points with color Doppler images of vascular structures Reprojection error between:

[0241] ;

[0242] in, This indicates the reprojection error. Indicates Euclidean distance;

[0243] Determine whether the candidate matching point satisfies the current candidate homography matrix error based on the reprojection error:

[0244] ;

[0245] in, This represents the interior point label of the k-th candidate matching point. Indicates the reprojection error threshold; when hour, The interior points of candidate matching points are marked as interior points; when hour, The interior points of candidate matching points are marked as exterior points;

[0246] The Random Sample Consensus Algorithm (RANSAC) repeatedly and randomly selects four pairs of minimum subsets to obtain candidate homography matrices. The inlier labels of candidate matching points are calculated, and after filtering using the Random Sample Consensus Algorithm (RANSAC) (maximum number of iterations 2000, target confidence level set to 0.995), the candidate homography matrix with the highest number of inlier labels identified as inliers is selected as the optimal model. Then, the final homography matrix is ​​re-estimated using all inliers corresponding to the optimal model.

[0247] ;

[0248] in, Represents the final homography matrix. This represents the dehomogenization operation that converts homogeneous coordinates to two-dimensional coordinates. Represents the square of the Euclidean distance;

[0249] Based on the final homography matrix, the fluorescein fundus angiography image y is mapped to the coordinate space of the original fundus color image x to obtain the registered fluorescein fundus angiography image:

[0250] ;

[0251] in, This shows the registered fluorescein fundus angiography image. This represents a perspective transformation operation (using the original fundus image coordinate system as the target coordinate space, and for each target pixel position, using the final homography matrix). The inverse matrix is ​​used to calculate the corresponding continuous coordinates of the original fluorescein fundus angiography image y, and the pixel value at that position is obtained by interpolation, thereby realizing the reverse mapping; in this embodiment, bilinear interpolation is used to calculate the mapped pixel value, and the constant 0 is used to fill the boundary of the area that exceeds the range of the original angiography image after mapping.

[0252] After obtaining the registered fluorescein fundus angiography images Subsequently, the registration quality was evaluated from two aspects: feature point matching consistency and the degree of spatial overlap of vascular structures; including: calculating the inlier rate based on the number of inlier points and the total number of candidate matching points.

[0253] ;

[0254] in, This indicates that the final homography matrix is ​​satisfied. The number of interior points, Indicates the total number of candidate matching points. The inlier ratio represents the proportion of candidate matches that can be interpreted by the final homography matrix; a higher inlier ratio indicates that more candidate matches support the homography matrix obtained from RANSAC. After completing the evaluation at the feature point level, the final homography matrix is ​​used. Image of angiography Perform perspective transformation:

[0255] ;

[0256] in, This represents the angiographic vascular structure image after registration, i.e., the image obtained through the final homography matrix. An angiographic image of the vascular structure after perspective transformation;

[0257] Color image of blood vessel structure And the registered angiographic vascular structure diagram Convert to a binary angiography and calculate the Dice coefficient:

[0258] ;

[0259] in, Represents the Dice coefficient. This indicates the number of pixels representing blood vessels in a color vascular structure image. This indicates the number of blood vessel pixels in the registered angiographic vascular structure image. This indicates the number of blood vessel pixels in the overlapping region. To prevent numerical stability constants with a denominator of zero ( );

[0260] Set Dice coefficient threshold When the Dice coefficient is greater than or equal to When the Dice coefficient is less than 1, the two vascular structures have a good degree of spatial overlap; when the Dice coefficient is less than 1, the two vascular structures have a good degree of spatial overlap. At that time, the registration quality was considered low; an interior point rate threshold was set. When the interior point ratio is greater than or equal to And the Dice coefficient is greater than or equal to At that time, it was believed that the color Doppler image of the vascular structure was used to... Registered angiographic vascular structure diagram The constructed image meets the registration quality requirements, preserving the registered fluorescein fundus angiography image. Registered fluorescein fundus angiography images As a monitoring target; otherwise, the current registration result is considered unreliable.

[0261] The registration results that meet the conditions are used for subsequent cross-modal image generation tasks, and the registered fluorescein fundus angiography images are used. As a supervisory target, image pairs that do not meet the quality requirements are considered to have insufficient spatial correspondence and are not used for subsequent model training; the original fluorescein fundus angiography images are retained. As a supervision target, it is used to avoid misregistration from interfering with model training. Figure 3 This paper demonstrates the extraction of AKAZE local features from fundus color vascular structure maps and fluorescein fundus angiography structure maps, and the candidate feature correspondence obtained by screening through ratio test. Figure 4 This demonstrates the process of using a random sampling consensus algorithm to remove erroneous matches that do not conform to the overall geometric transformation relationship, and estimating the homography transformation matrix between images based on the retained valid matching points; Figure 5 The original fluorescein fundus angiography image before registration is used to represent the initial fluorescein angiography image to be corrected. The fluorescein fundus angiography image after being mapped to the fundus color imaging coordinate system according to the estimated homography transformation matrix represents the registration result after spatial alignment.

[0262] Reprojection error threshold Dice coefficient threshold 0.5; Inner point rate threshold It is 0.5.

[0263] The preprocessed original fundus image is input into an image content encoder to extract multi-scale image features; the vascular structure image from the image is input into a vascular structure encoder to extract multi-scale vascular structure features, including:

[0264] The image content encoder includes a first convolutional coding layer, a second convolutional coding layer, and a third convolutional coding layer;

[0265] The vascular structure encoder includes a first vascular structure convolutional coding layer, a second vascular structure convolutional coding layer, and a third vascular structure convolutional coding layer;

[0266] Preprocessed original fundus color image The input image content encoder processes the preprocessed raw fundus color image through the first convolutional coding layer. After boundary padding, the first-scale image features are obtained through convolution operations and the non-linear activation function LeakyReLU, as shown below:

[0267] ;

[0268] in, Indicates boundary filling. This represents the convolution operation (the kernel size is...). (Step size is 1) and These are the convolution weights and biases, respectively. LeakyReLU is a non-linear activation function. Represents the image features at the first scale;

[0269] The first-scale image features are processed through the second convolutional coding layer. Perform downsampling convolution operation (convolution kernel size is...) After a step size of 2 and padding of 1, the second-scale image features are obtained by applying the LeakyReLU activation function.

[0270] ;

[0271] in, Represents the second-scale image features. and These represent the learnable convolutional weights and biases of the second convolutional coding layer, respectively. This scale feature is used to characterize the mesoscale structural information in fundus images, including the course of the main blood vessels, the bifurcation regions of blood vessels, the structures around the optic disc, and the spatial relationships between local regions.

[0272] The second-scale image features are processed through the third convolutional coding layer. Perform convolution operation (convolution kernel size is...) (with a step size of 2 and padding of 1), and after passing through the LeakyReLU activation function, the third-scale image features are obtained:

[0273] ;

[0274] in, Represents the features of a third-scale image. and These represent the learnable convolutional weights and biases of the third convolutional coding layer, respectively. This scale feature is used to characterize the deep semantic information and global content layout of fundus images, including global structural information such as the overall blood vessel distribution, optic disc position, and background region distribution.

[0275] Multi-scale image features are obtained, including first-scale image features, second-scale image features, and third-scale image features;

[0276] Color image of blood vessel structure The input vascular structure encoder processes the input through the first vascular structure convolutional coding layer. Perform convolution operation (convolution kernel size is...) (with a stride of 1 and padding of 1), and intermediate features are obtained by applying the non-linear activation function LeakyReLU; then, a convolution operation is performed again (the kernel size is...). (Step size 1, padding 1), and obtained first-scale vascular structure features through the LeakyReLU activation function:

[0277] ;

[0278] in, This represents the first-scale vascular structure features, and * indicates a convolution operation. , This represents the convolution weights in the first vascular structure convolutional coding layer. , This indicates the corresponding bias. LeakyReLU represents the nonlinear activation function; the first-scale vascular structure features maintain the same spatial resolution as the input vascular structure map and are used to characterize fine vessel edges, local vessel distribution, and high-resolution vascular structure information.

[0279] The second vascular structure convolutional coding layer uses convolution operations (the convolution kernel size is...). (A pair with a step size of 2 and a padding size of 1) Spatial downsampling is performed, and intermediate features are obtained through the nonlinear activation function LeakyReLU; subsequently, convolution operations are used to further extract structural features (convolution kernel size is...). (Step size 1, padding 1), and obtained second-scale vascular structure features through a nonlinear activation function:

[0280] ;

[0281] in, This indicates the characteristics of vascular structures at the second scale. , This represents the convolution weights of the second vascular structure convolutional coding layer. , This indicates the corresponding bias; since this layer contains a convolution operation with a stride of 2, the spatial resolution of the second-scale vascular structure feature is half that of the input vascular structure map. This feature is used to characterize the main vascular region, vascular bifurcation structure, and mesoscale vascular topology.

[0282] The third vascular structure convolutional coding layer uses convolution operations (the convolution kernel size is...). (Step size 2, padding size 1) Spatial downsampling is performed, and intermediate features are obtained through the non-linear activation function LeakyReLU; then convolution is performed again (the kernel size is...). (Step size 1, padding 1) Further extract deep vascular structure features, and obtain third-scale vascular structure features through the nonlinear activation function LeakyReLU:

[0283] ;

[0284] in, This indicates the structural features of blood vessels at the third scale. , This represents the convolution weights of the third vascular structure convolutional coding layer. , This indicates the corresponding bias; since this layer performs downsampling again with a step size of 2, the spatial resolution of the third-scale vascular structure feature is one-quarter of the input vascular structure map. This feature is used to characterize the global vascular layout, vascular density distribution, and low-resolution vascular topology information.

[0285] The multi-scale vascular structure features and the multi-scale image features output by the image content coding branch maintain a correspondence in spatial resolution, providing structural priors for subsequent style modeling.

[0286] Multi-scale vascular structural features were obtained, including first-scale vascular structural features, second-scale vascular structural features, and third-scale vascular structural features.

[0287] The style modeling module concatenates multi-scale image features and multi-scale vascular structure features, and performs reparameterized sampling to obtain a multi-scale style vector; including:

[0288] Multiscale image features Multiscale vascular structural features The features are concatenated along the channel dimension and integrated using convolutional mapping to obtain joint features:

[0289] ;

[0290] in, Indicates joint features, This represents multi-scale image features, specifically the image features at the i-th scale. ; This represents the multi-scale vascular structural features, specifically the vascular structural features at the i-th scale. This indicates a channel splicing operation. The convolution mapping function consists of a series of convolution operations (3×3 convolution kernel, stride 1), a LeakyReLU activation function, a convolution operation (1×1 convolution kernel, stride 1), and a LeakyReLU activation function, which are used to fuse and compress the stitched features to achieve deep coupling between image content information and vascular structure information.

[0291] After obtaining the joint features, a variational autoencoder (VAE) structure is introduced to perform style modeling on the joint features. Perform global average pooling to obtain compact scale-level feature vectors. :

[0292] ;

[0293] in, This represents a global average pooling operation; it predicts the mean and variance parameters of the latent distribution using two independent parameter mapping functions:

[0294] ;

[0295] in, and (Base e) represent the first, second, and third digits respectively. The mean and log-variance of the potential distribution at each scale. and This represents a parameter mapping function (such as a single-layer fully connected linear mapping).

[0296] The standard deviation is further calculated based on the obtained log-variance:

[0297] ;

[0298] in, Indicates standard deviation;

[0299] Latent variables are obtained from the conditional latent distribution using the reparameterization method:

[0300] ;

[0301] in, Indicates the first Potential variables at various scales Let be a standard normally distributed random variable. This represents element-wise multiplication;

[0302] Finally, obtain the latent variables. Style vectors corresponding to the scale:

[0303] ;

[0304] in, This represents a multi-scale style vector, specifically the style vector at the i-th scale. ; This represents the style mapping function (the style mapping function can be an identity mapping, i.e., directly setting...). (It can also be a learnable nonlinear mapping).

[0305] The style vector The fluorescence angiography appearance information, determined by both image content and vascular structure, is used to modulate the generation process in the subsequent decoding stage. Among these, the first-scale style vector... Primarily used to characterize high-resolution local angiographic features, including fine blood vessel edges and texture details; second-scale style vectors Used to characterize mesoscale vascular visualization features, including vascular bifurcation and regional structural relationships; third-scale style vector. Used to characterize low-resolution global angiography features, including overall brightness distribution and vascular layout;

[0306] The encoding generation module performs multi-layer decoding on multi-scale style vectors, multi-scale image features, and color vascular structure maps to generate fluorescein fundus angiography images; including:

[0307] After obtaining image content features, vascular structure features, and multi-scale style vectors, these are input into the decoding and generation module to generate fluorescein fundus angiography images; using third-scale image features... As the initial feature for decoding, combined with the color Doppler vascular structure image and third-scale style vector Generate deep decoding features As shown below:

[0308] ;

[0309] in, This represents the deep decoding features output from the third-scale decoding stage; It represents the third-scale image features, used to provide overall structural and semantic information at low resolution; This represents a color image of the vascular structure, used to constrain the spatial distribution of blood vessels during the generation process; This represents the third-scale style vector, used to provide the brightness, texture, and angiographic features of fluorescein fundus angiography images at this scale. The third-scale decoding modulation module is used to fuse content features, vascular structure information, and style information to generate a deep decoding representation with angiographic features. In this embodiment, the number of third-scale feature channels is 256, and it is processed sequentially through 4 structure-style modulation residual units. The number of input and output channels of each residual unit is 256.

[0310] right Upsampling is performed and compared with second-scale image features. The images were stitched together to supplement the mesoscale vascular structures and local spatial relationships, and then combined with color vascular structure images. Second-scale style vector Generate mid-level decoding features As shown below:

[0311] ;

[0312] in, This represents the mid-level decoding features output from the second-scale decoding stage; Indicates deep decoding features Upsampling is performed, including convolution operations (a 3×3 convolution adjusts the number of feature channels from 256 to 128, with a stride of 1) and the LeakyReLU activation function, to restore it to the level of the second-scale features. Matching spatial resolution; This represents second-scale image features, used to supplement mesoscale spatial structure and local vascular information; This indicates channel-dimensional stitching to fuse image information at different scales; This represents the second-scale style vector, used to adjust the imaging style features at the mesoscale stage; This refers to the second-scale decoding and modulation module, which is used to generate mid-level decoding features based on the fused content features, vascular structure constraints, and style information. The concatenated feature channels number 256, and after processing by the structure-style modulation residual unit, a 128-channel mid-layer decoding feature is obtained. ;

[0313] right Continue upsampling and compare with the first-scale image features. The images are stitched together to supplement high-resolution edge information and local texture details, and then combined with the vascular structure map. and first-scale style vector Generate shallow decoding features As shown below:

[0314] ;

[0315] in, This represents the shallow decoding features output from the first-scale decoding stage; Indicates the decoding features of the middle layer Upsampling is performed, including convolution operations (adjusting the number of channels from 128 to 64 through 3×3 convolution with a stride of 1) and the LeakyReLU activation function to restore higher spatial resolution; This represents the first-scale image features, which include high-resolution edge information and local texture details in the input fundus color image; This represents the first-scale style vector, used to control the image texture and local visual style at high resolution. This represents the first-scale decoding modulation module, used to fuse multi-scale information and generate shallow decoding features containing rich details. The concatenated feature channels number 128, and after processing by the structure-style modulation residual unit, a shallow decoding feature of 64 channels is obtained. ;

[0316] Finally, the output mapping function will... Converted into generated fluorescein fundus angiography images ;

[0317] ;

[0318] in, This represents the generated fluorescein fundus angiography image; It also includes anatomical structure information, vascular spatial constraint information, and imaging style information learned at different scales from the input fundus color images; The output mapping function, including convolution operation and Tanh activation function (3-pixel reflection fill, 7×7 convolution kernel), is used to convert the decoded representation in the feature space into pixel values ​​in the image space, thereby generating a result that conforms to the distribution of the target fluorescein fundus angiography image.

[0319] The first-scale decoding and modulation module, the second-scale decoding and modulation module, and the third-scale decoding and modulation module all include a spatial adaptive normalization module and an adaptive instance normalization module.

[0320] The spatial adaptive normalization module is based on the color Doppler image of the vascular structure. Differential constraints are applied to different spatial locations of the decoded features, enabling the generated image to obtain different generated responses for the blood vessel region, background region, and blood vessel edge region; as shown below:

[0321] ;

[0322] in, This indicates the characteristics after being constrained by vascular structures. Represents the result of adaptive normalization of the representation space. This represents the input to the first-scale decoding and modulation module, the second-scale decoding and modulation module, and the third-scale decoding and modulation module; This indicates a normalization operation. and Color image of vascular structure Spatial scaling and translation parameters can be dynamically generated using learnable mappings (e.g., using a single-layer fully connected linear mapping). This represents element-wise multiplication;

[0323] Style modulation is applied to the decoded features along the channel dimension using multi-scale style vectors. An adaptive instance normalization module, AdaIN, controls the overall appearance distribution of the features, including fluorescence intensity, contrast, background style, and vascular imaging intensity. Features constrained by vascular structure are normalized, and then channel-related scaling and translation parameters are generated from the multi-scale style vectors to adjust the angiographic appearance of the generated image at that scale. The adaptive instance normalization result is shown below:

[0324] ;

[0325] in, This represents the structure-style modulation feature. Representing multi-scale style vectors For the conditional adaptive instance normalization result, and These represent the channel scaling and channel translation parameters generated from the multi-scale style vectors (e.g., generated using a single-layer fully connected linear mapping). The style vector dimension is 256, and a single-layer fully connected linear mapping layer is used to predict the style vector parameters. Specifically, in the 256-channel decoding stage of the third scale, the output dimension of the fully connected layer is 512, with 256 dimensions used to generate the scaling parameters and the other 256 dimensions used to generate the translation parameters; in the 128-channel decoding stage of the second scale, the output dimension of the fully connected layer is 256; and in the 64-channel decoding stage of the first scale, the output dimension of the fully connected layer is 128.

[0326] Structure-style modulation features After performing convolution operations (3×3 convolution, stride of 1, padding of 1) and calculating the LeakyReLU activation function, the calculation result of the i-th scale decoding modulation module is obtained.

[0327] In each decoding scale, the spatial adaptive normalization module is first used. Injecting vascular structural conditions into intermediate decoding features yields structural modulation features. Then utilize the adaptive instance normalization module. Channel modulation is performed on the style vector at the corresponding scale to obtain style modulation features. Finally, the style modulation features are input into a convolutional unit for processing to obtain the decoding features at that scale. Subsequently, Generated by upsampling and feature concatenation in sequence Finally, the output mapping function The generated image is obtained.

[0328] The specific implementation process of step 5 includes:

[0329] fundus photograph Corresponding vascular structure diagram Input multi-scale structural style joint generator The generator sequentially passes through an image content encoder, a vascular structure encoder, a multi-scale content-structure joint style modeling module, and an encoding generation module to obtain the generated fluorescein fundus angiography image:

[0330] ;

[0331] The joint loss function for the multi-scale structural style joint generator is constructed as follows:

[0332]

[0333] in, Denotes the joint loss function. , , , These represent the adversarial loss, feature matching loss, perceptual loss, and KL divergence loss, respectively. and These represent the weight coefficients of adversarial loss, feature matching loss, perceptual loss, and KL divergence loss, respectively; each loss weight coefficient was determined through pre-experimentation and validation results using multiple sets of parameter combinations.

[0334] The losses from the confrontation are:

[0335] ;

[0336] in, Indicating resistance to loss, This refers to the generated image, specifically the generated fluorescein fundus angiography image. Expectations; This represents the discriminant response of the PatchGAN discriminant to the generated image; minimizing this loss makes the generator produce a higher discriminant response to the real image.

[0337] This loss is used to encourage the generated image to obtain a higher real image discrimination response, so that the generated image is close to the real fluorescein fundus angiography image in terms of overall data distribution;

[0338] Feature matching loss is used to constrain And the registered fluorescein fundus angiography images Consistency in the intermediate feature space of the discriminator; and Respectively related to vascular structural conditions The discriminator is input, and intermediate features from different levels of the discriminator are extracted, and the differences between them are calculated. In this embodiment, a single-scale conditional PatchGAN discriminator is used. The input is a 4-channel conditional input formed by stitching together a 3-channel fluorescence angiography image and a 1-channel vascular structure image. The discriminator contains 4 feature extraction convolutional layers and 1 output convolutional layer, with a kernel size of 4×4. The stride of the first 3 layers is 2, and the stride of the 4th layer and the output layer is 1. The number of output channels of each feature extraction layer is 64, 128, 256 and 512 respectively, and a LeakyReLU activation function with a negative half-axis slope of 0.2 is used. The output layer maps the 512-channel features to a 1-channel local discrimination result. The feature matching loss is shown below:

[0339] ;

[0340] in, This represents the intermediate features output by the k-th layer of the discriminator (PatchGAN discriminator);

[0341] Perceptual loss is used to constrain the generated image The fluorescein fundus angiography image is registered with the target fluorescein angiography image. Consistency in the pre-trained visual feature space; and Input each of the same frozen pre-trained VGG feature extraction network into the network and extract feature maps from each selected layer. and and by layer weight calculate difference:

[0342]

[0343] in, This indicates the pre-trained VGG network's... Feature maps output by the layer These feature maps represent the corresponding loss weights; they are directly used to construct the perceptual loss in the above equation. To ensure that the generated image maintains consistency with the high-level semantic and multi-layer texture features of the target image;

[0344] KL divergence loss is used to constrain the latent distribution in the style modeling module, making the latent variables at each scale approximate the standard normal prior distribution, and using the same latent distribution constraint method to ensure the stability of the style latent space; the KL divergence loss at the i-th scale is:

[0345] ;

[0346] in, Denotes the KL divergence loss at the i-th scale. The first in the style modeling module The first scale The mean of each potential dimension, The logarithmic variance is represented by ; the average KL divergence loss over the three scales is taken to obtain the overall KL divergence loss:

[0347] ;

[0348] This loss is used to constrain the continuity and stability of the multi-scale style latent space, making the style representation have better sampleability and generalization ability.

[0349] The discriminator employs a hinge-like adversarial constraint on real fluorescein fundus angiography images. High output response, generating fluorescein fundus angiography images The output response is low; the discriminator loss function is:

[0350] ;

[0351] in, This represents the discriminator loss function. This indicates the registered fluorescein fundus angiography image. Expectations Indicates the generated image Expectations; Indicates that the discriminator is in Below image The discriminant response, Indicates the generated image under the same conditions The discriminative response.

[0352] During training, the generator G is first fixed, and real fluorescence imaging images are used. and generating images Update the discriminator D to enable it to distinguish between real and generated images; then, fix the discriminator D and update the generator G using generator adversarial loss, feature matching loss, perceptual loss, and KL divergence loss. The final generated result is as follows. Figure 6 As shown;

[0353] Weighting coefficient , , , .

[0354] Example 3

[0355] A computer device includes a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of the fundus cross-modal generation method based on registration, vascular constraint and multi-scale style described in Embodiment 1 or 2.

[0356] Example 4

[0357] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the fundus cross-modal generation method based on registration, vascular constraint, and multi-scale style as described in Embodiment 1 or 2.

[0358] Example 5

[0359] A cross-modal fundus generation system based on registration, vascular constraint, and multi-scale style includes:

[0360] The preprocessing unit is configured to: acquire the original fundus color image and the corresponding fluorescein fundus angiography image, perform preprocessing, and input the preprocessed image into the pre-trained vascular segmentation model to obtain the vascular structure map of the color image and the vascular structure map of the angiography.

[0361] The candidate matching point set acquisition unit is configured to: perform feature point detection and descriptor extraction on color vascular structure images and angiographic vascular structure images, calculate the Hamming distance of the descriptors, select feature points that meet the Hamming distance condition, and form a candidate matching point set.

[0362] The registration unit is configured to: calculate the final homography matrix of the candidate matching point set, register the fluorescein fundus angiography image according to the final homography matrix, obtain the registered fluorescein fundus angiography image, perform quality evaluation, and retain the registered fluorescein fundus angiography image that passes the quality evaluation.

[0363] The image generation unit is configured to: construct a multi-scale structural style joint generator, including an image content encoder, a vascular structure encoder, a style modeling module, and an encoding generation module;

[0364] The preprocessed original fundus color image is input into the image content encoder to extract multi-scale image features; the color image vascular structure map is input into the vascular structure encoder to extract multi-scale vascular structure features.

[0365] The style modeling module concatenates multi-scale image features and multi-scale vascular structure features, and performs reparameterized sampling to obtain multi-scale style vectors.

[0366] The encoding generation module performs multi-level decoding on multi-scale style vectors, multi-scale image features and color vascular structure maps to generate fluorescein fundus angiography images.

[0367] The loss function training unit is configured to: construct a joint loss function and a discriminator loss function to train the multi-scale structural style joint generator, obtain a trained multi-scale structural style joint generator, and use the trained multi-scale structural style joint generator to generate fluorescein fundus angiography images.

Claims

1. A cross-modal fundus generation method based on registration, vascular constraint, and multi-scale style, characterized in that, include: Step 1: Obtain the original fundus color image and the corresponding fluorescein fundus angiography image, and preprocess them. After preprocessing, input them into the pre-trained vascular segmentation model to obtain the vascular structure map of the color image and the vascular structure map of the angiography. Step 2: Perform feature point detection and descriptor extraction on the color vascular structure image and angiography vascular structure image, calculate the Hamming distance of the descriptors, select feature points that meet the Hamming distance conditions, and form a candidate matching point set; Step 3: Calculate the final homography matrix of the candidate matching point set, register the fluorescein fundus angiography image according to the final homography matrix, obtain the registered fluorescein fundus angiography image, and perform quality evaluation. The registered fluorescein fundus angiography images that pass the quality evaluation are retained. Step 4: Construct a multi-scale structural style joint generator, including an image content encoder, a vascular structure encoder, a style modeling module, and an encoding generation module; The preprocessed original fundus color image is input into the image content encoder to extract multi-scale image features; the color image vascular structure map is input into the vascular structure encoder to extract multi-scale vascular structure features. The style modeling module concatenates multi-scale image features and multi-scale vascular structure features, and performs reparameterized sampling to obtain multi-scale style vectors. The encoding generation module performs multi-level decoding on multi-scale style vectors, multi-scale image features and color vascular structure maps to generate fluorescein fundus angiography images. Step 5: Construct a joint loss function and a discriminator loss function to train the multi-scale structural style joint generator, and use the trained multi-scale structural style joint generator to generate fluorescein fundus angiography images.

2. The method for cross-modal generation of fundus cells based on registration, vascular constraint, and multi-scale style according to claim 1, characterized in that, The specific implementation process of step 1 includes: Acquire fundus images, including raw fundus color images and corresponding fluorescein fundus angiography images, and scale them up; For the scaled image ,in This represents a scaled-down version of the original fundus image. This represents a scaled-down image of a fluorescein fundus angiography, the first... Each channel at pixel position The normalized value of the pixel at that location is: ; in, This indicates the pixel position in the c-th channel of the image. Pixel value at; Indicates the result after linear normalization The pixel value of the location; The linearly normalized image is transformed to obtain the preprocessed original fundus color image and the corresponding fluorescein fundus angiography image, which are denoted as x and y respectively. The preprocessed original fundus color image and the corresponding fluorescein fundus angiography image were compared. Inputting each data point into a pre-trained blood vessel segmentation model yields a blood vessel probability prediction map. and ,in, This represents a pre-trained blood vessel segmentation model. , The probability prediction maps for blood vessels are shown for x and y, respectively. The blood vessel probability prediction map is thresholded as follows: ; in, This represents a color photograph of vascular structures. This represents a diagram of the angiographic vascular structure. Indicates the blood vessel segmentation threshold; Indicates an indicator function; Blood vessel segmentation threshold It is 0.

5.

3. The method for cross-modal generation of fundus cells based on registration, vascular constraint, and multi-scale style according to claim 2, characterized in that, The specific implementation process of step 2 includes: The AKAZE algorithm was used to analyze the color-coded vascular structure image. Feature point detection and descriptor extraction were performed to obtain the feature set of the color image of blood vessel structure: ; in, This represents the set of features in a color Doppler image of vascular structures. This represents the coordinates of the i-th feature point in the color vascular structure image. A binary descriptor representing a feature point. This represents the total number of detected feature points; Using the AKAZE algorithm to analyze angiographic vascular structures Feature point detection and descriptor extraction are performed to obtain the feature set of the angiographic vascular structure image: ; in, This represents the set of features in angiographic vascular structure diagrams. This represents the coordinates of the j-th feature point in the angiographic vascular structure map. A binary descriptor representing the feature points of angiographic vascular structure map. This represents the total number of feature points detected in the angiographic vascular structure map; After obtaining the feature sets of color vascular structure images and angiographic vascular structure images, the Hamming distance is used to measure the difference between two descriptors of different feature sets: ; in, Indicates Hamming distance, and This represents two descriptors to be compared, where r represents the bit index of the descriptor. , These represent two descriptors at bit index r. Indicates an indicator function; For each descriptor in the angiographic vascular structure map, the descriptor with the closest Hamming distance and the second closest Hamming distance are obtained from the descriptors in the color vascular structure map, and candidate matching retention conditions are constructed: ; in, This represents the Hamming distance between the nearest descriptors. This represents the Hamming distance between the second-closest descriptors. This represents the distance ratio threshold; feature point pairs that meet the candidate matching retention criteria are grouped into a candidate matching point set: ; in, Represents the set of candidate matching points. This represents the k-th candidate matching point, or feature point, in the angiographic vascular structure map. These represent candidate matching points for the corresponding color Doppler vascular structure images. This represents the total number of candidate matching points; Distance ratio threshold .

4. The method for cross-modal generation of fundus cells based on registration, vascular constraint, and multi-scale style according to claim 3, characterized in that, The specific implementation process of step 3 includes: If the number of candidate matching points is less than 8, it is marked as a registration failure; When the number of candidate matching points is greater than or equal to 8, the Random Sample Consensus Algorithm (RANSAC) is used to further filter the candidate matching point set and estimate the homography matrix between the angiographic vascular structure image and the color Doppler vascular structure image. : ; in, Represents the candidate homography matrix. express The Middle Line number Column matrix elements; Let the coordinates of the candidate matching points in the angiographic vascular structure image be... , and Let x and y represent the x and y coordinates of the candidate matching points, respectively. Convert to homogeneous coordinates Candidate matching points are mapped to the coordinate space of the color Doppler vascular structure image using the candidate homography matrix H. ; in, This indicates the two-dimensional positions of feature points in the color vascular structure image obtained from the candidate homography matrix. Represents the homogeneous coordinates after mapping. This represents the homogeneity dehomogenization operation, i.e. Subsequently, calculations were performed. Candidate matching points with color Doppler images of vascular structures Reprojection error between: ; in, This indicates the reprojection error. Indicates Euclidean distance; Determine whether the candidate matching point satisfies the current candidate homography matrix error based on the reprojection error: ; in, This represents the interior point label of the k-th candidate matching point. Indicates the reprojection error threshold; when hour, The interior points of candidate matching points are marked as interior points; when hour, The interior points of candidate matching points are marked as exterior points; After screening using the Random Sample Consensus (RANSAC) algorithm, the candidate homography matrix with the highest number of interior points identified as interior points is selected as the optimal model. Then, the final homography matrix is ​​re-estimated using all interior points corresponding to the optimal model. ; in, Represents the final homography matrix. This represents the dehomogenization operation that converts homogeneous coordinates to two-dimensional coordinates. Represents the square of the Euclidean distance; Based on the final homography matrix, the fluorescein fundus angiography image y is mapped to the coordinate space of the original fundus color image x to obtain the registered fluorescein fundus angiography image: ; in, This shows the registered fluorescein fundus angiography image. Indicates perspective transformation operation; After obtaining the registered fluorescein fundus angiography images Subsequently, the registration quality was evaluated from two aspects: feature point matching consistency and the degree of spatial overlap of vascular structures; including: calculating the inlier rate based on the number of inlier points and the total number of candidate matching points. ; in, This indicates that the final homography matrix is ​​satisfied. The number of interior points, Indicates the total number of candidate matching points. Represents the interior point rate; uses the final homography matrix. Image of angiography Perform perspective transformation: ; in, This represents the angiographic vascular structure image after registration, i.e., the image obtained through the final homography matrix. An angiographic image of the vascular structure after perspective transformation; Color image of blood vessel structure And the registered angiographic vascular structure diagram Convert to a binary angiography and calculate the Dice coefficient: ; in, Represents the Dice coefficient. This indicates the number of pixels representing blood vessels in a color vascular structure image. This indicates the number of blood vessel pixels in the registered angiographic vascular structure image. This indicates the number of blood vessel pixels in the overlapping region. To prevent numerical stability constants with a denominator of zero; Set Dice coefficient threshold Set the interior point ratio threshold When the interior point ratio is greater than or equal to And the Dice coefficient is greater than or equal to At the same time, retain the registered fluorescein fundus angiography images. Registered fluorescein fundus angiography images As a monitoring target; otherwise, the current registration result is considered unreliable. Reprojection error threshold Dice coefficient threshold 0.5; Inner point rate threshold It is 0.

5.

5. The cross-modal fundus generation method based on registration, vascular constraint, and multi-scale style according to claim 4, characterized in that, The preprocessed original fundus image is input into an image content encoder to extract multi-scale image features; the vascular structure image from the image is input into a vascular structure encoder to extract multi-scale vascular structure features, including: The image content encoder includes a first convolutional coding layer, a second convolutional coding layer, and a third convolutional coding layer; The vascular structure encoder includes a first vascular structure convolutional coding layer, a second vascular structure convolutional coding layer, and a third vascular structure convolutional coding layer; Preprocessed original fundus color image The input image content encoder processes the preprocessed raw fundus color image through the first convolutional coding layer. After boundary padding, the first-scale image features are obtained through convolution operations and the non-linear activation function LeakyReLU, as shown below: ; in, Indicates boundary filling. This represents the convolution operation. and These are the convolution weights and biases, respectively. LeakyReLU is a non-linear activation function. Represents the image features at the first scale; The first-scale image features are processed through the second convolutional coding layer. After performing downsampling convolution, the second-scale image features are obtained through the LeakyReLU activation function: ; in, Represents the second-scale image features. and These represent the learnable convolutional weights and biases of the second convolutional coding layer, respectively. The second-scale image features are processed through the third convolutional coding layer. Perform convolution operations and apply the LeakyReLU activation function to obtain the third-scale image features: ; in, Represents the features of a third-scale image. and These represent the learnable convolutional weights and biases of the third convolutional coding layer, respectively. Multi-scale image features are obtained, including first-scale image features, second-scale image features, and third-scale image features; Color image of blood vessel structure The input vascular structure encoder processes the input through the first vascular structure convolutional coding layer. Convolution operations are performed, and intermediate features are obtained through the LeakyReLU nonlinear activation function; then, convolution operations are performed again, and the first-scale vascular structure features are obtained through the LeakyReLU activation function. ; in, This represents the first-scale vascular structure features, and * indicates a convolution operation. , This represents the convolution weights in the first vascular structure convolutional coding layer. , This indicates the corresponding bias. LeakyReLU represents the non-linear activation function. The second vascular structure convolutional coding layer performs convolution operations on... Spatial downsampling is performed, and intermediate features are obtained through the nonlinear activation function LeakyReLU. Subsequently, convolution operations are used to further extract structural features, and second-scale vascular structural features are obtained through a nonlinear activation function. ; in, This indicates the characteristics of vascular structures at the second scale. , This represents the convolution weights of the second vascular structure convolutional coding layer. , Indicates the corresponding bias; The third vascular structure convolutional coding layer uses convolution operations to... Spatial downsampling is performed, and intermediate features are obtained through the nonlinear activation function LeakyReLU. Then, convolution operations are used again to further extract deep vascular structure features, and the third-scale vascular structure features are obtained through the nonlinear activation function LeakyReLU. ; in, This indicates the structural features of blood vessels at the third scale. , This represents the convolution weights of the third vascular structure convolutional coding layer. , Indicates the corresponding bias; Multi-scale vascular structural features were obtained, including first-scale vascular structural features, second-scale vascular structural features, and third-scale vascular structural features.

6. The method for cross-modal generation of fundus cells based on registration, vascular constraint, and multi-scale style according to claim 5, characterized in that, The style modeling module concatenates multi-scale image features and multi-scale vascular structure features, and performs reparameterized sampling to obtain a multi-scale style vector; including: Multiscale image features Multiscale vascular structural features The features are concatenated along the channel dimension and integrated using convolutional mapping to obtain joint features: ; in, Indicates joint features, This represents multi-scale image features, specifically the image features at the i-th scale. ; This represents the multi-scale vascular structural features, specifically the vascular structural features at the i-th scale. This indicates a channel splicing operation. This represents the convolution mapping function, which includes a convolution operation, a LeakyReLU activation function, a convolution operation, and a LeakyReLU activation function connected in sequence. After obtaining the joint features, Perform global average pooling to obtain compact scale-level feature vectors. : ; in, This represents a global average pooling operation; it predicts the mean and variance parameters of the latent distribution using two independent parameter mapping functions: ; in, and They represent the first The mean and log-variance of the potential distribution at each scale. and Indicates a parameter mapping function; The standard deviation is further calculated based on the obtained log-variance: ; in, Indicates standard deviation; Latent variables are obtained from the conditional latent distribution using the reparameterization method: ; in, Indicates the first Potential variables at various scales Let be a standard normally distributed random variable. This represents element-wise multiplication; Finally, obtain the latent variables. Style vectors corresponding to the scale: ; in, This represents a multi-scale style vector, specifically the style vector at the i-th scale. ; Represents style mapping function The encoding generation module performs multi-layer decoding on multi-scale style vectors, multi-scale image features, and color vascular structure maps to generate fluorescein fundus angiography images; including: Using third-scale image features As the initial feature for decoding, combined with the color Doppler vascular structure image and third-scale style vector Generate deep decoding features As shown below: ; in, This represents the deep decoding features output from the third-scale decoding stage; Represents third-scale image features; This represents a color photograph of a blood vessel structure. Represents the third-scale style vector; This indicates the third-scale decoding and modulation module; right Upsampling is performed and compared with second-scale image features. The images were stitched together and then combined with color Doppler images of vascular structures. Second-scale style vector Generate mid-level decoding features As shown below: ; in, This represents the mid-level decoding features output from the second-scale decoding stage; Indicates deep decoding features Upsampling operations are performed, including convolution operations and the LeakyReLU activation function; Represents second-scale image features; Indicates concatenation of channel dimensions; Represents the second-scale style vector; This indicates the second-scale decoding and modulation module; right Continue upsampling and compare with the first-scale image features. The images were then pieced together and combined with a diagram of the vascular structure. and first-scale style vector Generate shallow decoding features As shown below: ; in, This represents the shallow decoding features output from the first-scale decoding stage; Indicates the decoding features of the middle layer Upsampling is performed, including convolution operations and the LeakyReLU activation function; Represents the image features at the first scale; Represents the first-scale style vector; This indicates the first-scale decoding and modulation module; Finally, the output mapping function will... Converted into generated fluorescein fundus angiography images ; ; in, This represents the generated fluorescein fundus angiography image; This represents the output mapping function, including convolution operations and the Tanh activation function; More preferably, the first-scale decoding and modulation module, the second-scale decoding and modulation module, and the third-scale decoding and modulation module all include a spatial adaptive normalization module and an adaptive instance normalization module; The spatial adaptive normalization module is based on the color Doppler image of the vascular structure. Differential constraints are applied to different spatial locations of the decoded features, as shown below: ; in, This indicates the characteristics after being constrained by vascular structures. Represents the result of adaptive normalization of the representation space. This represents the input to the first-scale decoding and modulation module, the second-scale decoding and modulation module, and the third-scale decoding and modulation module; This indicates a normalization operation. and Color image of vascular structure Spatial scaling and translation parameters are dynamically generated through learnable mapping. This represents element-wise multiplication; The adaptive instance normalization module AdaIN is used to normalize the features constrained by the vascular structure. Then, channel-related scaling and translation parameters are generated from the multi-scale style vector to obtain the adaptive instance normalization result, as shown below: ; in, This represents the structure-style modulation feature. Representing multi-scale style vectors For the conditional adaptive instance normalization result, and These represent the channel scaling parameters and channel translation parameters generated from the multi-scale style vectors, respectively. Structure-style modulation features After performing convolution operations and calculating the LeakyReLU activation function, the calculation results of the i-th scale decoding and modulation module are obtained.

7. The cross-modal fundus generation method based on registration, vascular constraint, and multi-scale style according to claim 6, characterized in that, The specific implementation process of step 5 includes: The joint loss function for the multi-scale structural style joint generator is constructed as follows: in, Denotes the joint loss function. , , , These represent the adversarial loss, feature matching loss, perceptual loss, and KL divergence loss, respectively. and These represent the weight coefficients of the adversarial loss, feature matching loss, perceptual loss, and KL divergence loss, respectively. The losses from the confrontation are: ; in, Indicating resistance to loss, This refers to the generated image, specifically the generated fluorescein fundus angiography image. Expectations; This represents the discriminator's discriminative response to the generated image; Feature matching loss is used to constrain And the registered fluorescein fundus angiography images Consistency in the intermediate feature space of the discriminator; feature matching loss is as follows: ; in, This represents the intermediate feature output by the k-th layer of the discriminator; Perceptual loss is used to constrain the generated image The fluorescein fundus angiography image is registered with the target fluorescein angiography image. Consistency in the pre-trained visual feature space; and Input each of the same frozen pre-trained VGG feature extraction network into the network and extract feature maps from each selected layer. and and by layer weight calculate difference: in, This indicates the pre-trained VGG network's... Feature maps output by the layer This represents the corresponding loss weight; The KL divergence loss is used to constrain the latent distribution in the style modeling module. The KL divergence loss at the i-th scale is: ; in, Denotes the KL divergence loss at the i-th scale. The first in the style modeling module The first scale The mean of each potential dimension, The logarithmic variance is represented by ; the average KL divergence loss over the three scales is taken to obtain the overall KL divergence loss: ; The discriminator loss function is: ; in, This represents the discriminator loss function. This indicates the registered fluorescein fundus angiography image. Expectations Indicates the generated image Expectations; Indicates that the discriminator is in Below image The discriminant response, Indicates the generated image under the same conditions The discriminant response; Weighting coefficient , , , .

8. A computer device comprising a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of the fundus cross-modal generation method based on registration, vascular constraint and multi-scale style as described in any one of claims 1-7.

9. A computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the steps of the fundus cross-modal generation method based on registration, vascular constraint and multi-scale style as described in any one of claims 1-7.

10. A cross-modal fundus generation system based on registration, vascular constraint, and multi-scale style, characterized in that, include: The preprocessing unit is configured to: acquire the original fundus color image and the corresponding fluorescein fundus angiography image, perform preprocessing, and input the preprocessed image into the pre-trained vascular segmentation model to obtain the vascular structure map of the color image and the vascular structure map of the angiography. The candidate matching point set acquisition unit is configured to: perform feature point detection and descriptor extraction on color vascular structure images and angiographic vascular structure images, calculate the Hamming distance of the descriptors, select feature points that meet the Hamming distance condition, and form a candidate matching point set. The registration unit is configured to: calculate the final homography matrix of the candidate matching point set, register the fluorescein fundus angiography image according to the final homography matrix, obtain the registered fluorescein fundus angiography image, perform quality evaluation, and retain the registered fluorescein fundus angiography image that passes the quality evaluation. The image generation unit is configured to: construct a multi-scale structural style joint generator, including an image content encoder, a vascular structure encoder, a style modeling module, and an encoding generation module; The preprocessed original fundus color image is input into the image content encoder to extract multi-scale image features; the color image vascular structure map is input into the vascular structure encoder to extract multi-scale vascular structure features. The style modeling module concatenates multi-scale image features and multi-scale vascular structure features, and performs reparameterized sampling to obtain multi-scale style vectors. The encoding generation module performs multi-level decoding on multi-scale style vectors, multi-scale image features and color vascular structure maps to generate fluorescein fundus angiography images. The loss function training unit is configured to: construct a joint loss function and a discriminator loss function to train the multi-scale structural style joint generator, obtain a trained multi-scale structural style joint generator, and use the trained multi-scale structural style joint generator to generate fluorescein fundus angiography images.