Skip to main content

render_diff_image

Function render_diff_image 

Source
pub fn render_diff_image(
    candidate: &RgbaImage,
    _diff_mask: &[bool],
    _component_labels: &[u32],
    regions: &[Region],
) -> RgbaImage
Expand description

Generate a visual diff image showing the candidate with highlighted change regions.

The candidate image is shown at full fidelity. Each region’s bounding box gets a semi-transparent color fill and a solid border outline, making it easy to see exactly which areas of the page changed.