Skip to content

doc(tutorial_py_fourier_transform): Correct errors in tutorial - #13152

Merged
alalek merged 1 commit into
opencv:3.4from
ssnover:docfix/fourier-transform-py-tutorial
Nov 13, 2018
Merged

alalek merged 1 commit into
opencv:3.4from
ssnover:docfix/fourier-transform-py-tutorial

Conversation

@ssnover

@ssnover ssnover commented Nov 13, 2018 •

Copy link
Copy Markdown

for integer division and filter symmetry.

resolves #13139

This pullrequest changes

Changes the second snippet of example code lines 2, 3, and 6.

  • Changes the calculation of crow and ccol to use integer division since they're used as indices for slicing.
  • Changes the slicing on line 3 to have symmetry.
  • Change call from np.abs() to np.real() as a symmetric filter from the previous change will cause a real value to be calculated in the inverse transform.
force_builders=linux,docs

@alalek

alalek commented Nov 13, 2018

Copy link
Copy Markdown
Member

Thank you!

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".

@ssnover
ssnover force-pushed the docfix/fourier-transform-py-tutorial branch from 0cc6ac0 to b24a815 Compare November 13, 2018 17:45
@ssnover
ssnover changed the base branch from master to 3.4 November 13, 2018 17:46
@ssnover

ssnover commented Nov 13, 2018

Copy link
Copy Markdown
Author

Thanks for the complete instructions! I have never contributed to a project which maintains multiple major release branches so I wasn't sure what my base branch should be. I've updated my branch and PR with the changes.

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done! Thank you 👍

@alalek
alalek merged commit 70ac734 into opencv:3.4 Nov 13, 2018
@alalek alalek mentioned this pull request Nov 14, 2018
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants