15 principalPointY(0.0), focalLengthX(0.0), focalLengthY(0.0),
16 distortionModel(), isOptional(false) {}
33 intrinsic.
put(
"distortionModel",
"none");
36 intrinsic.
put(
"distortionModel",
"plumb_bob");
47 intrinsic.
check(
"focalLengthY") &&
48 intrinsic.
check(
"principalPointX") &&
49 intrinsic.
check(
"principalPointY"));
59 if (intrinsic.
find(
"distortionModel").
asString() !=
"plumb_bob") {
72 bool ok = prop.
read(reader);
82 return prop.
write(writer);
An interface for reading from a network connection.
An interface for writing to a network connection.
A class for storing options and configuration information.
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
bool check(const std::string &key) const override
Check if there exists a property of the given name.
bool write(ConnectionWriter &writer) const override
Write this object to a network connection.
bool read(ConnectionReader &reader) override
Read this object from a network connection.
A single value (typically within a Bottle).
virtual yarp::conf::float64_t asFloat64() const
Get 64-bit floating point value.
virtual std::string asString() const
Get string value.
double now()
Return the current time in seconds, relative to an arbitrary starting point.
@ YARP_PLUM_BOB
Plumb bob distortion model.
double focalLengthY
Result of the product of the physical focal length(mm) and the size sy of the individual imager eleme...
DistortionModel distortionModel
Distortion model of the image.
void fromProperty(const yarp::os::Property &intrinsic)
fromProperty, fill the struct using the data stored in a Property.
double focalLengthX
Result of the product of the physical focal length(mm) and the size sx of the individual imager eleme...
bool read(yarp::os::ConnectionReader &reader) override
Read this object from a network connection.
IntrinsicParams()
IntrinsicParams, default constructor.
double physFocalLength
Physical focal length of the lens (m)
void toProperty(yarp::os::Property &intrinsic) const
toProperty, convert the struct to a Property.
double principalPointX
Horizontal coordinate of the principal point of the image, as a pixel offset from the left edge.
bool write(yarp::os::ConnectionWriter &writer) const override
Write this object to a network connection.
double principalPointY
Vertical coordinate of the principal point of the image, as a pixel offset from the top edge.