46 int width,
int height,
double fx,
double fy,
double cx,
double cy);
51 int width,
int height,
double fx,
double fy,
double cx,
double cy) {
54 intrinsic_matrix_.setIdentity();
55 intrinsic_matrix_(0, 0) = fx;
56 intrinsic_matrix_(1, 1) = fy;
57 intrinsic_matrix_(0, 2) = cx;
58 intrinsic_matrix_(1, 2) = cy;
62 return std::make_pair(intrinsic_matrix_(0, 0), intrinsic_matrix_(1, 1));
66 return std::make_pair(intrinsic_matrix_(0, 2), intrinsic_matrix_(1, 2));
69 double GetSkew()
const {
return intrinsic_matrix_(0, 1); }
71 bool IsValid()
const {
return (width_ > 0 && height_ > 0); }
73 bool ConvertToJsonValue(Json::Value &value)
const override;
74 bool ConvertFromJsonValue(
const Json::Value &value)
override;
Eigen::Matrix3d intrinsic_matrix_
Definition: PinholeCameraIntrinsic.h:79
std::pair< double, double > GetPrincipalPoint() const
Definition: PinholeCameraIntrinsic.h:65
std::pair< double, double > GetFocalLength() const
Definition: PinholeCameraIntrinsic.h:61
Definition: PinholeCameraIntrinsic.h:41
void SetIntrinsics(int width, int height, double fx, double fy, double cx, double cy)
Definition: PinholeCameraIntrinsic.h:50
double GetSkew() const
Definition: PinholeCameraIntrinsic.h:69
bool IsValid() const
Definition: PinholeCameraIntrinsic.h:71
Definition: PinholeCameraIntrinsic.cpp:33
PinholeCameraIntrinsicParameters
Definition: PinholeCameraIntrinsic.h:35
int height
Definition: FilePCD.cpp:68
int width
Definition: FilePCD.cpp:67
Definition: IJsonConvertible.h:41