func Frame(binarizedSegmented *matrix.M) types.Frame {
	h := findHorizontalAxis(binarizedSegmented, false)
	v := findVerticalAxis(binarizedSegmented, false)
	d := image.Rect(h.Min.X, v.Min.Y, h.Max.X, v.Max.Y)
	hx, hy := halfPoint(h)
	vx, vy := halfPoint(v)
	angle := math.Sin(float64(hx-vx) / float64(hy-vy))
	log.Printf("frame angle: %f", angle*180/math.Pi)
	return types.Frame{Horizontal: h, Vertical: v, Diagonal: d, Angle: angle}
}
Frame detects the boundaries of the fingerprint and establishes
a reference point and the angle of such reference point.
package extraction
import (
	"image"
	"log"
	"math"
	"github.com/alevinval/fingerprints/internal/matrix"
	"github.com/alevinval/fingerprints/internal/types"
)