Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e813326

Browse filesBrowse files
authored
Merge pull request opencv#27039 from chacha21:threshold_otsu_doc_update
Threshold otsu doc update opencv#27039 PR for opencv#27038 (I had already done that, but encounters git madness after branch renaming) - [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 - [ ] 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
1 parent 3236436 commit e813326
Copy full SHA for e813326

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎modules/imgproc/include/opencv2/imgproc.hpp

Copy file name to clipboardExpand all lines: modules/imgproc/include/opencv2/imgproc.hpp
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3070,9 +3070,10 @@ Also, the special values #THRESH_OTSU or #THRESH_TRIANGLE may be combined with o
30703070
above values. In these cases, the function determines the optimal threshold value using the Otsu's
30713071
or Triangle algorithm and uses it instead of the specified thresh.
30723072
3073-
@note Currently, the Otsu's and Triangle methods are implemented only for 8-bit single-channel images.
3073+
@note Currently, the Otsu's method is implemented only for CV_8UC1 and CV_16UC1 images,
3074+
and the Triangle's method is implemented only for CV_8UC1 images.
30743075
3075-
@param src input array (multiple-channel, 8-bit or 32-bit floating point).
3076+
@param src input array (multiple-channel, CV_8U, CV_16S, CV_16U, CV_32F or CV_64F).
30763077
@param dst output array of the same size and type and the same number of channels as src.
30773078
@param thresh threshold value.
30783079
@param maxval maximum value to use with the #THRESH_BINARY and #THRESH_BINARY_INV thresholding

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.