40 #include <visp3/core/vpIoTools.h>
41 #include <visp3/core/vpXmlParserRectOriented.h>
45 #ifdef ENABLE_VISP_NAMESPACE
48 #if defined(VISP_HAVE_PUGIXML)
53 std::cout <<
"Create: " << tmp_dir << std::endl;
57 std::string filename = tmp_dir +
"test_write_rect_oriented.xml";
61 std::cout <<
"Write to: " << filename << std::endl;
71 double eps = std::numeric_limits<double>::epsilon();
72 if (rect_oriented.getCenter() != rect_oriented_read.
getCenter() ||
76 std::cerr <<
"Issue when parsing XML file: " << filename << std::endl;
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
static double rad(double deg)
static bool equal(double x, double y, double threshold=0.001)
Defines an oriented rectangle in the plane.
double getHeight() const
Get the rectangle height.
double getOrientation() const
Get the rectangle orientation (rad).
double getWidth() const
Get the rectangle width.
vpImagePoint getCenter() const
Get the rectangle center point.
XML parser to load and save an oriented rectangle in a file.
vpRectOriented getRectangle() const
void setRectangle(const vpRectOriented &rectangle)
void save(const std::string &filename, bool append=false)
void parse(const std::string &filename)