50 if (mask.type() != CV_8UC1) {
91 return mask_.at<uchar>(int(imagePoint[1]), int(imagePoint[0]));
97 if (imagePoint[0] < 0.0 || imagePoint[1] < 0.0) {
int imageHeight_
image height in pixels
Definition: CameraBase.hpp:350
bool removeMask()
stop masking
Definition: CameraBase.hpp:65
bool isInImage(const Eigen::Vector2d &imagePoint) const
Check if the keypoint is in the image.
Definition: CameraBase.hpp:95
int imageWidth_
image width in pixels
Definition: CameraBase.hpp:349
bool setMask(const cv::Mat &mask)
Set the mask. It must be the same size as the image and comply with OpenCV: 0 == masked, nonzero == valid. Type must be CV_8U1C.
Definition: CameraBase.hpp:47
bool hasMask() const
Was a nonzero mask set?
Definition: CameraBase.hpp:72
const cv::Mat & mask() const
Get the mask.
Definition: CameraBase.hpp:78
cv::Mat mask_
The mask – empty by default.
Definition: CameraBase.hpp:347
bool isMasked(const Eigen::Vector2d &imagePoint) const
Check if the keypoint is masked.
Definition: CameraBase.hpp:83