Skip to main content
. 2026 Feb 24;12(3):95. doi: 10.3390/jimaging12030095
Algorithm 1: Hybrid Panoptic-Style Segmentation of Dense Breast Tumors

Input: Mammogram image I(x,y)

Output: Panoptic segmentation map P(x,y)

Step 1: Preprocessing

Normalize the input image to obtain In(x,y);

Step 2: Bias Correction

Perform intensity inhomogeneity correction using the MICO_2D model to obtain Ic(x,y)=In(x,y)/b(x,y);

Step 3: Global Segmentation

Apply distance-regularized multiphase Chan–Vese segmentation to obtain a coarse semantic mask Sg(x,y);

Step 4: Localized Refinement

Refine object boundaries using localized active contours with LIF energy to obtain Sr(x,y);

Step 5: Instance Extraction

Extract tumor instances {Tk} from Sr(x,y) using distance transform and watershed segmentation;

Step 6: Panoptic Assignment

Assign semantic and instance labels to construct the panoptic output P(x,y);