opencv/apps
MurtazaSaherwala 3a8d7ec75a
Merge pull request #26524 from MurtazaSaherwala:DocumentationUpdation
Updated trackbar callback function and improved documentation #26524

This Fixes #26467

Description:
This pull request improve the OpenCV documentation regarding the Trackbar functionality. The current documentation does not provide clear guidance on certain aspects, such as handling the value pointer deprecation and utilizing callback arguments in C. This update addresses those gaps and provides an updated example for better clarity.

Changes:
Updated Documentation:

Clarified the usage of the value pointer and explained how to pass an initial value, since the value pointer is deprecated.
Added more detailed explanations about callback arguments in C, ensuring that users understand how to access and use them in Trackbar callbacks.
Added a note on how to properly handle initial value passing without relying on the deprecated value pointer.
Updated Tutorial Example:

Renamed and used callback function parameters to make them more understandable.
Included a demonstration on how to utilize userdata in the callback function.
Additional Notes:

Removed reliance on the value pointer for updating trackbar values. Users are now encouraged to use other mechanisms as per the current implementation to avoid the runtime warning.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [] The feature is well documented and sample code can be built with the project CMake
2024-12-09 16:23:07 +03:00
..
annotation cmake: function for application creation (#11736) 2018-06-25 17:02:58 +03:00
createsamples Merge pull request #26524 from MurtazaSaherwala:DocumentationUpdation 2024-12-09 16:23:07 +03:00
interactive-calibration remove unused var 2023-05-15 17:51:12 +02:00
model-diagnostics Merge pull request #25582 from fengyuentau:dnn/dump_pbtxt 2024-05-17 11:07:05 +03:00
opencv_stitching_tool Merge pull request #22005 from lukasalexanderweber:delete_stitching_tool 2022-05-26 22:30:24 +03:00
traincascade Partially back-port #25075 to 4.x 2024-03-05 12:15:39 +03:00
version opencv_version: dump threads information 2020-03-12 16:41:03 +03:00
visualisation Add missing <sstream> includes 2023-09-05 22:04:26 +03:00
CMakeLists.txt Merge pull request #19693 from LupusSanctus:onnx_diagnostic 2021-03-29 16:38:28 +00:00
python_app_test.py Merge pull request #23363 from vovka643:4.x_generate_charuco 2023-05-19 20:25:59 +03:00