I'm getting an error using imops.mono_to_rgb8 that I hadn't been getting before. <br><br>Here is code that reproduces the error:<br><br><span style="font-family: courier new,monospace;">import numpy</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">import motmot.imops.imops as imops</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">image = numpy.zeros((100,200),dtype='uint8')</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">out = imops.mono8_to_rgb8(image)</span><br style="font-family: courier new,monospace;"><br>Gives the error message:<br><br><span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> File "<stdin>", line 1, in <module></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> File "imops.pyx", line 95, in imops.mono8_to_rgb8 (src/imops.c:1138)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">TypeError: must be uint8 arrays</span><br style="font-family: courier new,monospace;"><br>The original error appeared in Ctrax:<br><br><span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> File "/home/kristin/FLIES/code/Ctrax/Ctrax/settings.py", line 372, in OnSettingsBG</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> self.bg_imgs.DoSub()</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> File "/home/kristin/FLIES/code/Ctrax/Ctrax/bg.py", line 1284, in DoSub</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> self.img_wind.update_image_and_drawings('bg',img_8,format='MONO8')</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> File "/var/lib/python-support/python2.5/motmot/wxvideo/wxvideo.py", line 69, in update_image_and_drawings</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> rgb8 = imops.to_rgb8(format,image)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> File "imops.pyx", line 356, in imops.to_rgb8 (src/imops.c:4147)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> File "imops.pyx", line 95, in imops.mono8_to_rgb8 (src/imops.c:1138)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">TypeError: must be uint8 arrays</span><br style="font-family: courier new,monospace;">
<br>This did not used to give an error. Am I using to_rgb8 incorrectly?<br><br>Thanks!<br>Kristin<br>