[visionegg] Re: mysterious image borders
- From: Andrew Straw <astraw@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Mon, 09 Nov 2009 07:49:53 -0800
Gary Lupyan wrote:
Thanks, that's very helpful. Will your suggestions!
Can you give me an example of "simply pass a PIL Image instance of a
.gif or other
palletized instance"
It should be automatic:
bg_filename = 'palettized.gif'
bg_texture = vet.Texture(bg_filename)
bg = vet.TextureStimulus(texture = bg_texture,
size = bg_texture.size,
shrink_texture_ok=False,
mipmaps_enabled=False,
)
Right now, I load graphics using the stim.parameters.texture attribute
and it seems to only work with images already converted to RGB.
Ahh, it seems the auto-conversion is failing for some reason. You can
help it along by doing the above. But, can you send an example of
something where the auto-conversion failed? This should work.
--
Andrew D. Straw, Ph.D.
California Institute of Technology
http://www.its.caltech.edu/~astraw/
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
Other related posts: