Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try the getMatrix() method.

SimpleCV:3> img = Image("lenna")
SimpleCV:4> img.drawRectangle(10,10,100,100,color=Color.RED)
SimpleCV:5> img = img.applyLayers()
SimpleCV:6> mat = img.getMatrix() #OpenCV matrix
SimpleCV:7> img2 = Image(mat)
SimpleCV:8> img2.show()

See the documentation here