Note we adopt a cubical complex discretization, which is more suitable for images.
as shown in the figure on the right, with the additional frame, a Y -shaped branching structure cropped within the patch will create two handles and be captured by persistent homology.