Ask Your Question

beginner's profile - activity

2015-02-17 17:26:44 +0100 received badge  Famous Question (source)
2013-10-09 13:20:03 +0100 received badge  Notable Question (source)
2013-08-22 14:40:04 +0100 received badge  Popular Question (source)
2013-03-15 18:05:06 +0100 commented answer Image processing

Thank you so much!!!

2013-03-14 15:59:08 +0100 answered a question Image processing

Thank you this example works, but what about if my image is not Lena.png (I put that like example). If I put something like this:

I=misc.imread(DATA+'myexample.png') and put the rest of Your code I got "TypeError: mat must be a Matrix or a two dimensional array".

My image is color image so it's 3D. How I can easy convert to 2D?

Thank you in advance!

2013-03-14 14:39:31 +0100 asked a question Image processing

Dear all, I have question about manipulating image in Sage. Here is some example.

import pylab
img=pylab.imread(DATA+'lena.png')

Img is now array with float elements. But I want to add some shapes on this image like circle, rectangle, polygon etc, but c=Circle, b=Rectangle and a=Polygon are object of some clases so if I want to do something like this show(img+c) or show(img+b) it is not allowed. Another question is: How I can put circle on my position (position is corner of image) because Img is array so I don't know where new row start.

Is there some simple way to do this?

Thank you in advance