problem using the PIL why is this error coming

13 views
Skip to first unread message

union of indian chainge

unread,
Jun 23, 2008, 9:28:48 AM6/23/08
to python
hi guys i am new at python i am a biotech student and have a image of
a tissue that i am trying to mathematically simulate but i need to
collect data from the image but i all ways get a error like this when
i use the image module PIL i would appreciate your help
>>>
PNG (352, 288) RGB

Traceback (most recent call last):
File "C:\Documents and Settings\Leonbaby\Desktop\my py prog
\cellpro", line 8, in <module>
im.filter('Edge-enhance')
File "C:\Python25\Lib\site-packages\PIL\Image.py", line 783, in
filter
filter = filter()
TypeError: 'str' object is not callable
>>>

zavandi

unread,
Jun 30, 2008, 3:39:54 PM6/30/08
to pyt...@googlegroups.com
Hi Leonbaby,

Could you post a fragment of your code that's generating that exception?

forgot

unread,
Jul 24, 2008, 3:35:58 AM7/24/08
to python
Hello,

Here is demo for PIL filter
===
import ImageFilter

im1 = im.filter(ImageFilter.BLUR)

im2 = im.filter(ImageFilter.MinFilter(3))
im3 = im.filter(ImageFilter.MinFilter) # same as MinFilter(3)
===
You used string instead of filter object.


On 6月23日, 下午9时28分, union of indian chainge <leonandmorel...@gmail.com>
wrote:
> - 隐藏被引用文字 -
>
> - 显示引用的文字 -
Reply all
Reply to author
Forward
0 new messages