-
Notifications
You must be signed in to change notification settings - Fork 406
Totally removed OpenCV dependency #272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
set. Removed unuseful code comments
| #pragma parallel for | ||
| for (int x = 0; x < depth.getWidth(); x++) { | ||
| sl::float1 value; | ||
| depth.getValue<sl::float1>(x, y, &value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getValue is not very efficient and shouldn't be used in a loop. It's better to iterate over a pointer.
Is there a data reorganization? If not it could be converted to an iteration over 1 loop
| sl::float1 value; | ||
| disparityZEDMat.getValue<sl::float1>(x, y, &value); | ||
| value *= -1.0f; | ||
| disparityZEDMat.setValue<sl::float1>(x, y, value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly, if possible this should be a 1 loop iteration over the pointer
| confMapFloat, sensor_msgs::image_encodings::TYPE_32FC1, | ||
| confidenceOptFrameId, t)); | ||
|
|
||
| //confMapFloat = sl_tools::toCVMat(confMapZEDMat); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed
Improved Disparity conversion
No description provided.