image data is mishaped for format7 with point grey scorpion
Bug #618004 reported by
Brett
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyDC1394 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Running the following code with a point grey scorpion camera attached (not sure if this is true for other cameras) returns an image that is incorrectly shaped (more on that after the code):
from pydc1394 import *
l = DC1394Library()
cams = l.enumerate_
c = Camera(l, cams[0]['guid'])
# set camera to a format 7 mode (1392, 1040, 'FORMAT7_0')
c.mode = c.modes[4]
c.start()
i = c.shot()
c.stop()
the resulting image i does not appear correct (when viewed with pylab.imshow) but if I reshape the data with i = i.reshape(
To post a comment you must log in.
works for me correctly (Point Gray Scorpion camera). Which version are you using?