CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 20:58:07 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/opencv/opencv.git
etag: W/"bbcd8f43cc08e8006bf974d4af2e1c61"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=DNAxa0FHzfhNqZTqR78X6TKMGmTXlTqZ2gjQlYn1EIxBu0%2B2uBDLGBVKw4nsPKVdDGd0%2B41Y4Hio1EFd%2BhUZiJEXGIZmCxG5UwphCJ4jN7vYHEci8C%2FUhjIo8TAp%2BI%2FqF5vaTqNstQ%2FfV7%2BEBcdvuvmYhv1NY2lA2h4036ys3Bxz7LVjucJQiyhq87%2B2c73h7WU3gYW4vhGGUX7f9leyx19PPIiFCS8EbtHZNptczHhhQ3%2Fa65mdbVz8ofJ%2BR1NpNiHVVb94rnZnyVOR%2FRQuOw%3D%3D--mvzLeMdxuucMuoD1--hJRlzHAXDOWqJUgWKHttFA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1033548914.1753649886; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 20:58:06 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 20:58:06 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 84CA:363053:119F73F:171F5E1:688692DE
Merge pull request #26836 from chacha21:thresholding_compute_threshol… · opencv/opencv@3cbb4ac · GitHub
Copy file name to clipboardExpand all lines: modules/imgproc/include/opencv2/imgproc.hpp
Copy file name to clipboardExpand all lines: modules/imgproc/include/opencv2/imgproc/types_c.h
Copy file name to clipboardExpand all lines: modules/imgproc/src/thresh.cpp
Copy file name to clipboardExpand all lines: modules/imgproc/test/ocl/test_imgproc.cpp
Copy file name to clipboardExpand all lines: modules/imgproc/test/test_thresh.cpp
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit 3cbb4ac
authored
Merge pull request #26836 from chacha21:thresholding_compute_threshold_only
Add cv::THRESH_DRYRUN flag to get adaptive threshold values without thresholding #26836
A first proposal for #26777
Adds a `cv::THRESH_DRYRUN` flag to let cv::threshold() compute the threshold (useful for OTSU/TRIANGLE), but without actually running the thresholding. This flags is a proposal instead of a new function cv::computeThreshold()
- [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 CMake1 parent ab77e1c commit 3cbb4acCopy full SHA for 3cbb4ac
File tree
Expand file treeCollapse file tree
5 files changed
+92
-7
lines changedFilter options
- modules/imgproc
- include/opencv2
- imgproc
- src
- test
- ocl
Expand file treeCollapse file tree
5 files changed
+92
-7
lines changedmodules/imgproc/include/opencv2/imgproc.hpp
Copy file name to clipboardExpand all lines: modules/imgproc/include/opencv2/imgproc.hpp+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
329 | 329 |
| |
330 | 330 |
| |
331 | 331 |
| |
332 |
| - | |
| 332 | + | |
| 333 | + | |
333 | 334 |
| |
334 | 335 |
| |
335 | 336 |
| |
|
modules/imgproc/include/opencv2/imgproc/types_c.h
Copy file name to clipboardExpand all lines: modules/imgproc/include/opencv2/imgproc/types_c.h+3-1Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
610 | 610 |
| |
611 | 611 |
| |
612 | 612 |
| |
613 |
| - | |
| 613 | + | |
614 | 614 |
| |
615 | 615 |
| |
| 616 | + | |
| 617 | + | |
616 | 618 |
| |
617 | 619 |
| |
618 | 620 |
| |
|
modules/imgproc/src/thresh.cpp
Copy file name to clipboardExpand all lines: modules/imgproc/src/thresh.cpp+24-5Lines changed: 24 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1404 | 1404 |
| |
1405 | 1405 |
| |
1406 | 1406 |
| |
| 1407 | + | |
| 1408 | + | |
1407 | 1409 |
| |
1408 |
| - | |
1409 |
| - | |
1410 |
| - | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
1411 | 1414 |
| |
1412 | 1415 |
| |
1413 | 1416 |
| |
| |||
1544 | 1547 |
| |
1545 | 1548 |
| |
1546 | 1549 |
| |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
1547 | 1553 |
| |
1548 | 1554 |
| |
1549 |
| - | |
1550 |
| - | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
1551 | 1558 |
| |
1552 | 1559 |
| |
1553 | 1560 |
| |
| |||
1574 | 1581 |
| |
1575 | 1582 |
| |
1576 | 1583 |
| |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
1577 | 1587 |
| |
1578 | 1588 |
| |
1579 | 1589 |
| |
| |||
1605 | 1615 |
| |
1606 | 1616 |
| |
1607 | 1617 |
| |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
1608 | 1621 |
| |
1609 | 1622 |
| |
1610 | 1623 |
| |
| |||
1632 | 1645 |
| |
1633 | 1646 |
| |
1634 | 1647 |
| |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
1635 | 1651 |
| |
1636 | 1652 |
| |
1637 | 1653 |
| |
| |||
1663 | 1679 |
| |
1664 | 1680 |
| |
1665 | 1681 |
| |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
1666 | 1685 |
| |
1667 | 1686 |
| |
1668 | 1687 |
| |
|
modules/imgproc/test/ocl/test_imgproc.cpp
Copy file name to clipboardExpand all lines: modules/imgproc/test/ocl/test_imgproc.cpp+44Lines changed: 44 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
386 | 386 |
| |
387 | 387 |
| |
388 | 388 |
| |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
389 | 423 |
| |
390 | 424 |
| |
391 | 425 |
| |
| |||
483 | 517 |
| |
484 | 518 |
| |
485 | 519 |
| |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
486 | 530 |
| |
487 | 531 |
| |
488 | 532 |
| |
|
modules/imgproc/test/test_thresh.cpp
Copy file name to clipboardExpand all lines: modules/imgproc/test/test_thresh.cpp+19Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
502 | 502 |
| |
503 | 503 |
| |
504 | 504 |
| |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
505 | 524 |
| |
506 | 525 |
| |
507 | 526 |
| |
|
You can’t perform that action at this time.
0 commit comments