#include <visp3/core/vpIoTools.h>
#include <visp3/core/vpXmlParserRectOriented.h>
int main()
{
#ifdef ENABLE_VISP_NAMESPACE
#endif
#if defined(VISP_HAVE_PUGIXML)
std::cout << "Create: " << tmp_dir << std::endl;
std::string filename = tmp_dir + "test_write_rect_oriented.xml";
{
std::cout << "Write to: " << filename << std::endl;
}
{
double eps = std::numeric_limits<double>::epsilon();
std::cerr << "Issue when parsing XML file: " << filename << std::endl;
return EXIT_FAILURE;
}
}
#endif
return EXIT_SUCCESS;
}
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)