Learn R Programming

rayimage (version 0.26.1)

find_border_alpha_gaps: Find Border Alpha Gaps

Description

Internal helper that classifies which low-alpha pixels are part of the exterior border region. Pixels below alpha_threshold are considered low alpha. The algorithm starts from low-alpha pixels on the image boundary and performs an 8-connected flood fill through other low-alpha pixels. Low-alpha regions enclosed by pixels at or above alpha_threshold are not reached, so they are protected from fill_alpha_gaps().

Usage

find_border_alpha_gaps(alpha, alpha_threshold = 0.25)

Value

Logical matrix marking low-alpha pixels connected to the image exterior.

Arguments

alpha

Numeric alpha matrix.

alpha_threshold

Default 0.25. Pixels below this alpha are considered low-alpha gap pixels.