예제 #1
0
 void BuildLogOps(OpRcPtrVec & ops,
                  const Config& /*config*/,
                  const LogTransform& transform,
                  TransformDirection dir)
 {
     TransformDirection combinedDir =
         CombineTransformDirections(dir,
                                    transform.getDirection());
     CreateLogOp(ops, transform.getBase(), combinedDir);
 }
예제 #2
0
 void BuildLogOps(OpRcPtrVec & ops,
                  const Config& /*config*/,
                  const LogTransform& transform,
                  TransformDirection dir)
 {
     TransformDirection combinedDir = CombineTransformDirections(dir,
                                               transform.getDirection());
     
     float basescalar = transform.getBase();
     float base[3] = { basescalar, basescalar, basescalar };
     
     float k[3] = { 1.0f, 1.0f, 1.0f };
     float m[3] = { 1.0f, 1.0f, 1.0f };
     float b[3] = { 0.0f, 0.0f, 0.0f };
     float kb[3] = { 0.0f, 0.0f, 0.0f };
     
     // output = k * log(mx+b, base) + kb
     CreateLogOp(ops,
                 k, m, b, base, kb,
                 combinedDir);
 }