Commit 1e807d2cd46cdb174cac29c68f991492622e0adc

Authored by Josh Klontz
1 parent cbbdb801

using new ctfe operator

share/openbr/likely/face_recognition.tex
@@ -46,13 +46,13 @@ The resulting feature vectors are smaller in size and faster to compare, with ge @@ -46,13 +46,13 @@ The resulting feature vectors are smaller in size and faster to compare, with ge
46 The training data is used to determine the scaling parameters. 46 The training data is used to determine the scaling parameters.
47 47
48 \begin{likely} 48 \begin{likely}
  49 +lo := [ data.min-element ]
  50 +hi := [ data.max-element ]
  51 +scale := [ (/ 255 (- hi lo)) ]
  52 +
49 train-quantize := 53 train-quantize :=
50 () :-> 54 () :->
51 { 55 {
52 - lo := data.min-element  
53 - hi := data.max-element  
54 - scale := (/ 255 (- hi lo))  
55 -  
56 src :-> 56 src :->
57 { 57 {
58 dst := (imitate-size src (imitate-dimensions u8 src.type)) 58 dst := (imitate-size src (imitate-dimensions u8 src.type))