From 1e807d2cd46cdb174cac29c68f991492622e0adc Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 14 Apr 2015 16:27:24 -0400 Subject: [PATCH] using new ctfe operator --- share/openbr/likely/face_recognition.tex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/openbr/likely/face_recognition.tex b/share/openbr/likely/face_recognition.tex index 6d28ea0..3bda16f 100644 --- a/share/openbr/likely/face_recognition.tex +++ b/share/openbr/likely/face_recognition.tex @@ -46,13 +46,13 @@ The resulting feature vectors are smaller in size and faster to compare, with ge The training data is used to determine the scaling parameters. \begin{likely} +lo := [ data.min-element ] +hi := [ data.max-element ] +scale := [ (/ 255 (- hi lo)) ] + train-quantize := () :-> { - lo := data.min-element - hi := data.max-element - scale := (/ 255 (- hi lo)) - src :-> { dst := (imitate-size src (imitate-dimensions u8 src.type)) -- libgit2 0.21.4