Ask Your Question

beginner's profile - activity

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

Thank you so much!!!

2013-03-14 09:59:08 -0500 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 08:39:31 -0500 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