Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cvGet2D incorrect parameter passing #35

Closed
GoogleCodeExporter opened this issue Feb 3, 2016 · 2 comments
Closed

cvGet2D incorrect parameter passing #35

GoogleCodeExporter opened this issue Feb 3, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Hello Samuel,
Hope you are doing well.  I believe I have found a bug in cvGet2D(image, x,y).  
It behaves as if the x coordinate is actually the y coordinate.  I passed in a 
320 x 240 image and as soon as x gets to be 240 it throws an out of range 
exception. I've downloaded the latest version and this is still occurring.

Best Regards,
Greg.  

P.S. Wow, had a lot of imports to change on that last update :D !

What steps will reproduce the problem?
1.pass in 320 x 240 image
2.when x becomes > 240 error is thrown


What is the expected output? What do you see instead?
return the pixel scalar

What version of the product are you using? On what operating system?
the latest release
Fedora Core 13

Please provide any additional information below.


Original issue reported on code.google.com by supert...@gmail.com on 20 Nov 2010 at 7:22

@GoogleCodeExporter
Copy link
Author

It's actually cvGet2D(matrix, i, j) where i is the row index, and j the column 
index... For completeness, it can also access an image as if it were a matrix, 
but it's not recommended.

Original comment by samuel.a...@gmail.com on 20 Nov 2010 at 8:37

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

Thanks.

Original comment by supert...@gmail.com on 20 Nov 2010 at 3:29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant