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

label image widthstep incorrect #40

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 0 comments
Open

label image widthstep incorrect #40

GoogleCodeExporter opened this issue Apr 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Call cvLabel and produce a label image
2. Try to iterate through that image's data by adding widthStep to the data 
pointer for every row traversed, and retrieve values

What is the expected output? What do you see instead?
I run into a memory problem when the row number is 1/4 of the total number of 
rows in the image.  I took a closer look at the data and from what I can tell 
from the values I retrieve, widthStep seems to be 4x what it should be.  When I 
divide it by 4 during the traversal, everything works out great.  Something to 
do with storing a 1-byte uchar in what OpenCV expects to be an 4-byte unsigned 
integer space, maybe?

What version of the product are you using? On what operating system?
OpenCV 2.4.1
Windows 7 x64

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 25 Jul 2013 at 1:34

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