Skip to content

Fixed dst size in cv::dft#2930

Merged
opencv-pushbot merged 1 commit intoopencv:2.4from
akarsakov:dft_dst_size_fix
Jul 7, 2014
Merged

Fixed dst size in cv::dft#2930
opencv-pushbot merged 1 commit intoopencv:2.4from
akarsakov:dft_dst_size_fix

Conversation

@akarsakov
Copy link
Copy Markdown
Contributor

In case 1d real to complex transformation, result size is (width/2+1, height/2+1) - half of full complex output (without conjugate coefficients).
So rest of destination matrix is not initialized.

@akarsakov
Copy link
Copy Markdown
Contributor Author

@vpisarev, could you please review?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what's wrong with src.cols & src.rows?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My bad.. Thanks!

@akarsakov
Copy link
Copy Markdown
Contributor Author

Fixed.

@vpisarev
Copy link
Copy Markdown
Contributor

vpisarev commented Jul 7, 2014

👍

@opencv-pushbot opencv-pushbot merged commit 4b8fb6c into opencv:2.4 Jul 7, 2014
@akarsakov akarsakov deleted the dft_dst_size_fix branch July 24, 2014 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants