Bossgaming099 / ctypes-opencv

Automatically exported from code.google.com/p/ctypes-opencv
0 stars 0 forks source link

Image created with IPL_DEPTH_32S has depth field (self.depth) equal to -2147483616 #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create ipl image of type IPL_DEPTH_32S
2. check that its depth field is equal to -2147483616 insted of IPL_DEPTH_32S
3. call image.as_numpy_array()

What is the expected output? What do you see instead?
the expected output is a numpy array containing the same data as the ipl
image object. Instead, interpreter failed to execute as_numpy_array() due
to unrecognized value -2147483616

What version of the product are you using? On what operating system?
ctypes-opencv 0.8
python 2.5
windows xp

Please provide any additional information below.
calling image.as_numpy_array() fails because this value is the int32
"complement" of IPL_DEPTH_SIGN + 32 and thus is not found inside
ipldepth2dtype (which expects IPL_DEPTH_SIGN + 32)

This problem seems to belinked with a constant coded as usigned int and a
field coded as int.

Original issue reported on code.google.com by laurent....@gmail.com on 31 Jul 2009 at 7:23

GoogleCodeExporter commented 8 years ago
Thanks. I'll take a look asap.

Minh Tri

Original comment by pmtri80@gmail.com on 31 Jul 2009 at 3:32

GoogleCodeExporter commented 8 years ago
Bug fixed. Thanks.

Original comment by pmtri80@gmail.com on 5 Aug 2009 at 12:24

GoogleCodeExporter commented 8 years ago
How I can sove the problem?
I have OpenCV 2.1 installed over Windows.

Salutations

Original comment by puntaent...@gmail.com on 17 Oct 2011 at 8:23

GoogleCodeExporter commented 8 years ago
How I can sove the problem?
I have OpenCV 2.1 installed over Windows.

puntaentinas@gmail.com

Salutations

Original comment by puntaent...@gmail.com on 17 Oct 2011 at 8:24