Skip to contents

Estimate a square's background level from its four corners

Usage

sq_background(mat)

Arguments

mat

A SQUARE_PX by SQUARE_PX grayscale square matrix.

Value

The median corner value (the estimated background level).