Go to the documentation of this file.
26 double camera_distance,
36 double camera_distance,
49 double camera_distance,
59 double camera_distance,
62 template<
typename Cam_t,
typename GeometryTraits,
typename Po
int_t >
67 const GeometryTraits &geom_t,
73 double cdist = geom_t.length((0.5 * (p1 + p2) - cam));
75 double length = geom_t.length(p1 - p2);
85 return std::min(cpd, max_cpd);
88 template<
typename Cam_t,
90 typename HalfedgeGraph,
91 typename GeometryTraits,
95 const PointMap &point_map,
96 const HalfedgeGraph &mesh,
97 const GeometryTraits &geom_t,
108 geom_t.get_x(v1), geom_t.get_y(v1), geom_t.get_z(v1));
110 geom_t.get_x(v2), geom_t.get_y(v2), geom_t.get_z(v2));
boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::halfedge_descriptor next(typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::halfedge_descriptor h, const FEVV::DataStructures::AIF::AIFMesh &sm)
Returns the next halfedge around its face.
double compute_flat_frequency(const Cam_t &cam, const Point_t &p1, const Point_t &p2, const GeometryTraits &geom_t, const ScreenParam &screen, const UserParam &user, const SceneParam &scene)
The parameters of the user.
double cpd_to_wDistance(int screen_resX, int screen_resY, double screen_size, double user_distance, int camera_vportY, double camera_fov, double camera_distance, double cpd)
The parameters of the screen.
int wDistance_to_pixel(int camera_vportY, double camera_fov, double camera_distance, double wDistance)
The parameters of the scene.
boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::halfedge_descriptor opposite(typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::halfedge_descriptor h, const FEVV::DataStructures::AIF::AIFMesh &sm)
Returns the halfedge with source and target swapped.
int cpd_to_pixel(int screen_resX, int screen_resY, double screen_size, double user_distance, double cpd)
boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::halfedge_descriptor halfedge(typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::vertex_descriptor v, const FEVV::DataStructures::AIF::AIFMesh &sm)
Returns a halfedge with target v.
boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::vertex_descriptor target(typename boost::graph_traits< FEVV::DataStructures::AIF::AIFMesh >::edge_descriptor e, const FEVV::DataStructures::AIF::AIFMesh &)
Returns the target vertex of e.
double wDistance_to_cpd(int screen_resX, int screen_resY, double screen_size, double user_distance, int camera_vportY, double camera_fov, double camera_distance, double wDistance)
boost::property_map< FEVV::DataStructures::AIF::AIFMesh, boost::vertex_index_t >::const_type get(const boost::vertex_index_t &, const FEVV::DataStructures::AIF::AIFMesh &)
Returns the vertex index property map of the mesh.
double pixel_to_wDistance(int camera_vportY, double camera_fov, double camera_distance, int nb_pixel)
double pixel_to_cpd(int screen_resX, int screen_resY, double screen_size, double user_distance, int nb_pixel)