[Motmot] change in usage of imops.mono8_to_rgb8?

Kristin Branson kristin at vision.caltech.edu
Fri Jul 17 15:19:02 UTC 2009


I'm getting an error using imops.mono_to_rgb8 that I hadn't been getting
before.

Here is code that reproduces the error:

import numpy
import motmot.imops.imops as imops
image = numpy.zeros((100,200),dtype='uint8')
out = imops.mono8_to_rgb8(image)

Gives the error message:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "imops.pyx", line 95, in imops.mono8_to_rgb8 (src/imops.c:1138)
TypeError: must be uint8 arrays

The original error appeared in Ctrax:

Traceback (most recent call last):
  File "/home/kristin/FLIES/code/Ctrax/Ctrax/settings.py", line 372, in
OnSettingsBG
    self.bg_imgs.DoSub()
  File "/home/kristin/FLIES/code/Ctrax/Ctrax/bg.py", line 1284, in DoSub
    self.img_wind.update_image_and_drawings('bg',img_8,format='MONO8')
  File "/var/lib/python-support/python2.5/motmot/wxvideo/wxvideo.py", line
69, in update_image_and_drawings
    rgb8 = imops.to_rgb8(format,image)
  File "imops.pyx", line 356, in imops.to_rgb8 (src/imops.c:4147)
  File "imops.pyx", line 95, in imops.mono8_to_rgb8 (src/imops.c:1138)
TypeError: must be uint8 arrays

This did not used to give an error. Am I using to_rgb8 incorrectly?

Thanks!
Kristin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://code.astraw.com/pipermail/motmot/attachments/20090717/52be631f/attachment.html 


More information about the Motmot mailing list