Merge pull request #12529 from gkaneto:master

Minor changes in docs (Python Tutorials)
This commit is contained in:
Alexander Alekhin 2018-09-15 22:52:37 +03:00 committed by GitHub
commit 3512cb2226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View File

@ -153,15 +153,15 @@ padding etc. This function takes following arguments:
- **borderType** - Flag defining what kind of border to be added. It can be following types: - **borderType** - Flag defining what kind of border to be added. It can be following types:
- **cv.BORDER_CONSTANT** - Adds a constant colored border. The value should be given - **cv.BORDER_CONSTANT** - Adds a constant colored border. The value should be given
as next argument. as next argument.
- **cv.BORDER_REFLECT** - Border will be mirror reflection of the border elements, - **cv.BORDER_REFLECT** - Border will be mirror reflection of the border elements,
like this : *fedcba|abcdefgh|hgfedcb* like this : *fedcba|abcdefgh|hgfedcb*
- **cv.BORDER_REFLECT_101** or **cv.BORDER_DEFAULT** - Same as above, but with a - **cv.BORDER_REFLECT_101** or **cv.BORDER_DEFAULT** - Same as above, but with a
slight change, like this : *gfedcb|abcdefgh|gfedcba* slight change, like this : *gfedcb|abcdefgh|gfedcba*
- **cv.BORDER_REPLICATE** - Last element is replicated throughout, like this: - **cv.BORDER_REPLICATE** - Last element is replicated throughout, like this:
*aaaaaa|abcdefgh|hhhhhhh* *aaaaaa|abcdefgh|hhhhhhh*
- **cv.BORDER_WRAP** - Can't explain, it will look like this : - **cv.BORDER_WRAP** - Can't explain, it will look like this :
*cdefgh|abcdefgh|abcdefg* *cdefgh|abcdefgh|abcdefg*
- **value** - Color of border if border type is cv.BORDER_CONSTANT - **value** - Color of border if border type is cv.BORDER_CONSTANT

View File

@ -37,6 +37,7 @@ cv.namedWindow('image')
# create trackbars for color change # create trackbars for color change
cv.createTrackbar('R','image',0,255,nothing) cv.createTrackbar('R','image',0,255,nothing)
cv.createTrackbar('G','image',0,255,nothing) cv.createTrackbar('G','image',0,255,nothing)
cv.createTrackbar('B','image',0,255,nothing) cv.createTrackbar('B','image',0,255,nothing)