/** * Get the parameters describing the pose of the face. This doesn't include * the translation or scale. The values are {pitch, yaw, roll} * * @return the pose parameters */ public DoubleFV getPoseParameters() { return new DoubleFV(new double[] { this.getPitch(), this.getYaw(), this.getRoll() }); }
/** * Get a vector describing the pose (pitch, yaw and roll only) and shape of * the model. * * @return the combined pose and shape vector */ public DoubleFV getPoseShapeParameters() { final int len = this.shapeParameters.getRowDimension(); final double[] vector = new double[len + 3]; vector[0] = this.getPitch(); vector[1] = this.getYaw(); vector[2] = this.getRoll(); for (int i = 3; i < len + 3; i++) { vector[i] = this.shapeParameters.get(i, 0); } return new DoubleFV(vector); }