1 | initial version |
depth16.at<uint16_t>(y,x);
// welcome to row major world !
also, if your image is CV_16U, you must not try to access it as depth16.at<cv::Vec3b>
2 | No.2 Revision |
depth16.at<uint16_t>(y,x);
// welcome to row major world !
also, if your image is CV_16U, you must not try to access it as depth16.at<cv::Vec3b>
why do you start indexing at 1 ? this is NOT matlab
3 | No.3 Revision |
writing for loops here is a terrible idea, and should be avoided at any cost. there are acouple of pitfalls there, and id seems, you hit ALL of them:
depth16.at<uint16_t>(y,x);
// welcome to row major world !also,
depth16.at<cv::Vec3b>
why do you start indexing at 1 ?
4 | No.4 Revision |
writing for loops here is a terrible idea, and should be avoided at any cost.
there are acouple a couple of pitfalls there, and id it seems, you hit ALL of them:
depth16.at<uint16_t>(y,x);
// welcome to row major world !depth16.at<cv::Vec3b>
(verboten)5 | No.5 Revision |
writing for loops here is a terrible idea, and should be avoided at any cost.
there are a couple of pitfalls there, and it seems, you hit ALL of them:
depth16.at<uint16_t>(y,x);
// welcome to row major world !depth16.at<cv::Vec3b>
(verboten)6 | No.6 Revision |
writing for loops here is a terrible idea, and should be avoided at any cost.
there are a couple of pitfalls there, and it seems, you hit ALL of them:
depth16.at<uint16_t>(y,x);
// welcome to row major world !depth16.at<cv::Vec3b>
(verboten)please delete all of it, and rather use builtin functions, like setTo():
depthimg.setTo(some_number, depthimg>3000);