⚙️ How FRD Works: Step-by-Step
The goal is to compare two sets of medical images (D₁ and D₂) to determine if they come from the same distribution.
For example, D₁ might be real patient MRI scans, while D₂ is synthetically translated from a different imaging protocol.
Here's how FRD makes this comparison:
Extract 464 Radiomic Features
For each image in D₁ and D₂, extract 464 standardized radiomic features using PyRadiomics. These include first-order statistics, texture descriptors, and crucially, frequency-domain features from wavelet decompositions.
Z-Score Normalization
Apply z-score normalization (not min-max) to each feature type using the combined distribution of D₁ and D₂. This makes FRD robust to outliers and ensures features are on comparable scales.
Model Distributions
Compute the mean (μ₁, μ₂) and covariance (Σ₁, Σ₂) of the 464-dimensional feature distributions for each image set
Compute Fréchet Distance
Calculate FRD = ||μ₁ - μ₂||² + Tr(Σ₁ + Σ₂ - 2(Σ₁Σ₂)^(1/2)), which measures how "far apart" the two distributions are. Lower FRD = more similar images.