KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
d_facecom.cpp File Reference
#include <detector_cpp/d_facecom.h>
#include <g_cpp/g_camera.h>
#include <camera_cpp/perspective_camera.h>
#include <camera_cpp/camera_backproject.h>
#include <l/l_sys_lib.h>
#include <l/l_sys_io.h>
#include <l_cpp/l_util.h>
#include <istream>
#include <ostream>
#include <sstream>
#include <iterator>
#include <ios>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>

Functions

Vector gaze_direction (const Face_detection &face, const Perspective_camera &camera)
 Computes the direction of the gaze. More...
 
Vector face_location_3d (const Face_detection &face, const Perspective_camera &camera, const Bbox &body_box)
 Computes the 3D location of a face. More...
 
std::ostream & operator<< (std::ostream &ost, const Face_detection &face)
 Writes the face into ostream. More...
 
bool operator< (const Face_detection &f1, const Face_detection &f2)
 Compares to boxes using middle of box. Needed because we have associated containers of these. More...
 

Function Documentation

Vector face_location_3d ( const Face_detection face,
const Perspective_camera camera,
const Bbox body_box 
)

Computes the 3D location of a face.

Returns
Vector representing the 3D location the given face detection using the given camera.
Vector gaze_direction ( const Face_detection face,
const Perspective_camera camera 
)

Computes the direction of the gaze.

Returns
Vector representing the gaze direction of the given face detection using the given camera.
bool operator< ( const Face_detection f1,
const Face_detection f2 
)

Compares to boxes using middle of box. Needed because we have associated containers of these.

std::ostream& operator<< ( std::ostream &  ost,
const Face_detection face 
)

Writes the face into ostream.

Note
Pitch, yaw, and roll are in degrees to be consistent with the input files