Skip to content

fix just a typo of the word 'word' - #14297

Merged
alalek merged 1 commit into
opencv:3.4from
shxuy:patch-1
Apr 12, 2019
Merged

alalek merged 1 commit into
opencv:3.4from
shxuy:patch-1

Conversation

@shxuy

@shxuy shxuy commented Apr 11, 2019

Copy link
Copy Markdown
Contributor

This pullrequest changes

@alalek

alalek commented Apr 11, 2019

Copy link
Copy Markdown
Member

As a "bugfix" this patch should go into 3.4 branch first. We will merge changes from 3.4 into master regularly (weekly/bi-weekly).

So, please:

  • change "base" branch of this PR: master => 3.4 (use "Edit" button near PR title)
  • rebase your commits from master onto 3.4 branch. For example:
    git rebase -i --onto upstream/3.4 upstream/master
    (check list of your commits, save and quit (Esc + "wq" + Enter)
    where upstream is configured by following this GitHub guide and fetched (git fetch upstream).
  • push rebased commits into source branch of your fork (with --force option)

Note: no needs to re-open PR, apply changes "inplace".

@shxuy
shxuy changed the base branch from master to 3.4 April 11, 2019 15:18
@shxuy

shxuy commented Apr 12, 2019

Copy link
Copy Markdown
Contributor Author

Thanks. I have changed "base" branch of this PR. Since I just modified the document on Github and I have not downloaded the repository to my own computer and I have not configured the upstream , it seems that I should not worry about pushing rebased commits into source branch of my fork.

@shxuy

shxuy commented Apr 12, 2019

Copy link
Copy Markdown
Contributor Author

By the way, I found another tiny problem of Python tutorial which puzzled me and raised a question in the forum. The problem is due to the change of matplotlib. I think maybe we have to modify the code example on the page and I am sure how to fix it.
In my opinion, in order to work with the new version of matplotlib, perhaps we have to reverse the order of color channels of every images which is time-consuming but I do not have a better idea. Here is my idea:

import cv2 as cv
from matplotlib import pyplot as plt
BLUE = [255,0,0]
img1 = cv.imread('opencv-logo.png')
replicate = cv.copyMakeBorder(img1,10,10,10,10,cv.BORDER_REPLICATE)[...,::-1]
reflect = cv.copyMakeBorder(img1,10,10,10,10,cv.BORDER_REFLECT)[...,::-1]
reflect101 = cv.copyMakeBorder(img1,10,10,10,10,cv.BORDER_REFLECT_101)[...,::-1]
wrap = cv.copyMakeBorder(img1,10,10,10,10,cv.BORDER_WRAP)[...,::-1]
constant = cv.copyMakeBorder(img1,10,10,10,10,cv.BORDER_CONSTANT,value=BLUE)[...,::-1]
plt.subplot(231),plt.imshow(img1,'gray'),plt.title('ORIGINAL'),plt.xticks([]),plt.yticks([])
plt.subplot(232),plt.imshow(replicate,'gray'),plt.title('REPLICATE'),plt.xticks([]),plt.yticks([])
plt.subplot(233),plt.imshow(reflect,'gray'),plt.title('REFLECT'),plt.xticks([]),plt.yticks([])
plt.subplot(234),plt.imshow(reflect101,'gray'),plt.title('REFLECT_101'),plt.xticks([]),plt.yticks([])
plt.subplot(235),plt.imshow(wrap,'gray'),plt.title('WRAP'),plt.xticks([]),plt.yticks([])
plt.subplot(236),plt.imshow(constant,'gray'),plt.title('CONSTANT'),plt.xticks([]),plt.yticks([])
plt.show()

Could you fix it for the perspective learners? Thanks.

@alalek
alalek merged commit 169dc9c into opencv:3.4 Apr 12, 2019
@shxuy
shxuy deleted the patch-1 branch April 13, 2019 04:33
@alalek alalek mentioned this pull request Apr 13, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug category: documentation Documentation fix or update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants