Ask Your Question

stephan's profile - activity

2016-10-04 20:38:18 -0600 received badge  Popular Question (source)
2016-10-04 20:38:18 -0600 received badge  Notable Question (source)
2016-07-27 07:04:30 -0600 received badge  Student (source)
2016-06-08 23:55:14 -0600 asked a question Forum is dead. Nobody cares!

Forum is dead. Nobody cares!

2016-06-08 23:55:14 -0600 asked a question convert grayscale image to false color / pseudocolor

Hallo,

I want to convert the depth-images from a kinect (640x480px, 256 grayscales) to 256 colors (i.E. from red to blue). I tried to use the ColorMap, but it does not work. Maybe I do it wrong.

Have someone a idea?

This is the code:

from SimpleCV import Kinect, Display, Image, Color, ColorMap

kin = Kinect()
win = Display()

#cm = ColorMap(startcolor = Color.RED, endcolor = Color.BLUE, startmap = 0, endmap = 1)

while not win.isDone():

    depth = kin.getDepth()    

    #convert depth to depth_color with ColorMap or on an other way. How?

    depth_color.save(win)