All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
gr_2D_bounding_box.cpp File Reference
#include <l_cpp/l_exception.h>
#include <l_cpp/l_util.h>
#include <i_cpp/i_image.h>
#include <gr_cpp/gr_camera.h>
#include <gr_cpp/gr_opengl.h>
#include <gr_cpp/gr_opengl_headers.h>
#include <gr_cpp/gr_2D_bounding_box.h>
#include <gr_cpp/gr_line_segment.h>
#include <iostream>
#include <cmath>
#include <iomanip>


 Classes and functions for dealing with trajectory files.


void kjb::scale (kjb::Axis_aligned_rectangle_2d &box, const kjb::Vector &s)
void kjb::get_projected_bbox_from_3Dpoints (Axis_aligned_rectangle_2d &bb, const std::vector< Vector > &points, const Base_gl_interface &camera, double img_width, double img_height)
 Projects a set of 3D points onto the image plane, and finds a bounding box (aligned with the image axes), such that it contains all the projected points. More...
std::ostream & kjb::operator<< (std::ostream &ost, const Axis_aligned_rectangle_2d &box)
std::istream & kjb::operator>> (std::istream &ist, Axis_aligned_rectangle_2d &box)
Bounding_Box2D kjb::intersect (const Bounding_Box2D &b1, const Bounding_Box2D &b2)
double kjb::get_rectangle_intersection (const kjb::Bounding_Box2D &b1, const kjb::Bounding_Box2D &b2)
 Compute area of intersection of two rectangles. More...