image data is mishaped for format7 with point grey scorpion

Bug #618004 reported by Brett
6
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_cameras()
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((1040,1392)) everything looks fine.

Revision history for this message
SirVer (sirver) wrote :

works for me correctly (Point Gray Scorpion camera). Which version are you using?

Changed in pydc1394:
status: New → Incomplete
Revision history for this message
SirVer (sirver) wrote :

Note that handling of format 7 has changed in r32, have a look at the example provided and please report back with your success.

Revision history for this message
Brett (this-is-spam-mail) wrote : Re: [Bug 618004] Re: image data is mishaped for format7 with point grey scorpion

Good to know :) Looks like I was working with rev29. Thanks for the help.

On Mon, Aug 16, 2010 at 8:13 AM, SirVer <email address hidden> wrote:

> Note that handling of format 7 has changed in r32, have a look at the
> example provided and please report back with your success.
>
> --
> image data is mishaped for format7 with point grey scorpion
> https://bugs.launchpad.net/bugs/618004
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Brett (this-is-spam-mail) wrote :

I tested format7 mode with rev32 and everything seems to work fine.

On Mon, Aug 16, 2010 at 8:50 AM, spam <email address hidden> wrote:

> Good to know :) Looks like I was working with rev29. Thanks for the help.
>
>
> On Mon, Aug 16, 2010 at 8:13 AM, SirVer <email address hidden> wrote:
>
>> Note that handling of format 7 has changed in r32, have a look at the
>> example provided and please report back with your success.
>>
>> --
>> image data is mishaped for format7 with point grey scorpion
>> https://bugs.launchpad.net/bugs/618004
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>
>

Changed in pydc1394:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.