Re: [Tutor] Image Analysis

2007-09-12 Thread Bill Campbell
On Wed, Sep 12, 2007, Kent Johnson wrote:
>Bill Campbell wrote:
>> Most mailing lists limit the size
>> of messages to 40k or less.
>
>On this list large messages go to moderation. I think I was so 
>captivated with the images that I forgot about the size. A better way to 
>present this would be to put the images on a web site and reference them 
>from email.
>
>Sorry about that...

I've done the same thing on occassion on lists I manage :-).

One of the things I really like about the IMP webmail package is
that it makes it easy for people to provide links to attachments
rather than sending the files.  It automatically copies the files
to the web server, adding the links to the bottom of the message.

I don't generally like web e-mail interfaces, but do use IMP when
dealing with large attachment.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

I don't make jokes, I just watch the Government and report the facts...
Will Rogers
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-12 Thread Alan Gauld

"wormwood_3" <[EMAIL PROTECTED]> wrote

> Could not find it. The searchable interface at ActiveState's site 
> does not have it,
> and I don't know of any way to search the zipped archives...

I use the gmane news inteface, I dunno about Eike, but its possible 
the
problem lies in gmane's interface to the mailing list!

> Very strange. This is the second time that I know of in the last 
> month
> that I have not received some emails from the list. I did not get 
> the
> message Eike Welk sent out.


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-12 Thread Eike Welk
On Wednesday 12 September 2007 05:09, Dave Kuhlman wrote:
> Please do not stuff 1 MB emails in my mailbox.  Either (1) post the
> images on the Web and provide a link or (2) ask before emailing
> large attachments.

Sorry! I guess I'm spoiled by my ADSL connection. I did not know that 
the limit is so low (40 KB). 

I did really consider to put the images on a web server, but the 
Berlios ftp server was down last night. (It's the only one where I 
have bookmarked the upload directory.) It was also late and I wanted 
to send the message before it would become pointless; so I sent it 
with the images attached.

To the moderators: 
Thank you for posting my big message.

Kind regards,
Eike.
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-12 Thread Eike Welk
On Wednesday 12 September 2007 15:43, wormwood_3 wrote:
> Eike, if you would be able to send me your post, even just to my
> address and not the tutor list, I would greatly appreciate it!
> Seems it had some neat things in it.

I've sent it to your e-mail address ([EMAIL PROTECTED]).
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-12 Thread Kent Johnson
wormwood_3 wrote:
> Could not find it. The searchable interface at ActiveState's site does not 
> have it, and I don't know of any way to search the zipped archives...

There is a plaintext archive at
http://mail.python.org/pipermail/tutor/

Here is the post you want though without the attachments:
http://mail.python.org/pipermail/tutor/2007-September/057012.html

Kent
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-12 Thread wormwood_3
Could not find it. The searchable interface at ActiveState's site does not have 
it, and I don't know of any way to search the zipped archives...

Eike, if you would be able to send me your post, even just to my address and 
not the tutor list, I would greatly appreciate it! Seems it had some neat 
things in it.

-Sam

- Original Message 
From: wormwood_3 <[EMAIL PROTECTED]>
To: Python Tutorlist 
Sent: Wednesday, September 12, 2007 9:21:28 AM
Subject: Re: [Tutor] Image Analysis

Very strange. This is the second time that I know of in the last month that I 
have not received some emails from the list. I did not get the message Eike 
Welk sent out.

Checking archives...

- Original Message 
From: Dave Kuhlman <[EMAIL PROTECTED]>
To: tutor@python.org
Sent: Tuesday, September 11, 2007 11:09:36 PM
Subject: Re: [Tutor] Image Analysis

On Wed, Sep 12, 2007 at 01:57:35AM +0200, Eike Welk wrote:

> I have attached the program, the input image, and the output image.
> 

Please do not stuff 1 MB emails in my mailbox.  Either (1) post the
images on the Web and provide a link or (2) ask before emailing
large attachments.

Thank you.

Dave


-- 
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-12 Thread wormwood_3
Very strange. This is the second time that I know of in the last month that I 
have not received some emails from the list. I did not get the message Eike 
Welk sent out.

Checking archives...

- Original Message 
From: Dave Kuhlman <[EMAIL PROTECTED]>
To: tutor@python.org
Sent: Tuesday, September 11, 2007 11:09:36 PM
Subject: Re: [Tutor] Image Analysis

On Wed, Sep 12, 2007 at 01:57:35AM +0200, Eike Welk wrote:

> I have attached the program, the input image, and the output image.
> 

Please do not stuff 1 MB emails in my mailbox.  Either (1) post the
images on the Web and provide a link or (2) ask before emailing
large attachments.

Thank you.

Dave


-- 
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-12 Thread Kent Johnson
Bill Campbell wrote:
> Most mailing lists limit the size
> of messages to 40k or less.

On this list large messages go to moderation. I think I was so 
captivated with the images that I forgot about the size. A better way to 
present this would be to put the images on a web site and reference them 
from email.

Sorry about that...
Kent
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-11 Thread Bill Campbell
On Tue, Sep 11, 2007, Eric Brunson wrote:
>
>Just my opinion, but I didn't mind the attachments, I felt they added 
>quite a bit to the discussion and I certainly appreciated the input on 
>the application of the libraries.
>
>My opinion on your tone, I'll keep to myself.

Figure out the total size sending a megabyte+ mail message to
hundreds of list recipients.  Most mailing lists limit the size
of messages to 40k or less.

While large messages aren't much of an issue on broadband
connections, they can be a problem for those on dialup or with
tight disk quotas.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

We'll show the world we are prosperous, even if we have to go broke to do
it.  Will Rogers
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-11 Thread Eric Brunson

Just my opinion, but I didn't mind the attachments, I felt they added 
quite a bit to the discussion and I certainly appreciated the input on 
the application of the libraries.

My opinion on your tone, I'll keep to myself.

Dave Kuhlman wrote:
> On Wed, Sep 12, 2007 at 01:57:35AM +0200, Eike Welk wrote:
>
>   
>> I have attached the program, the input image, and the output image.
>>
>> 
>
> Please do not stuff 1 MB emails in my mailbox.  Either (1) post the
> images on the Web and provide a link or (2) ask before emailing
> large attachments.
>
> Thank you.
>
> Dave
>
>
>   

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-11 Thread Dave Kuhlman
On Wed, Sep 12, 2007 at 01:57:35AM +0200, Eike Welk wrote:

> I have attached the program, the input image, and the output image.
> 

Please do not stuff 1 MB emails in my mailbox.  Either (1) post the
images on the Web and provide a link or (2) ask before emailing
large attachments.

Thank you.

Dave


-- 
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-11 Thread wormwood_3
Thanks very much! This may be exactly what I need, and in any case will be a 
great starting point!

-Sam

___
- Original Message 
From: "Carnell, James E" <[EMAIL PROTECTED]>
To: tutor@python.org
Sent: Tuesday, September 11, 2007 9:45:30 AM
Subject: Re: [Tutor] Image Analysis




"wormwood_3" <[EMAIL PROTECTED]> wrote

> I need some way to analyze an image for color patterns.
>
> My only lead right now is PIL, and I am not sure if it will meet my
> needs.

I am using PIL and numpy


# something hat at least looks sorta like
 import numpy
 import PIL
 myImage = Image.open("C:\\file.bmp")

 myImage.assarray(stuff) 

I can't remember the code and am at work, but this will give you a big
array to work with. Each pixel for RGB looks kind of like [100,150,250]
then each line is in a matrix etc. It's a bit of a pain traversing the
matrices, but you can do anything you would do to an array. Pyro
Robotics also has a small tutorial about this.

http://pyrorobotics.org/?page=PyroModuleVisionSystem

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-11 Thread Carnell, James E



"wormwood_3" <[EMAIL PROTECTED]> wrote

> I need some way to analyze an image for color patterns.
>
> My only lead right now is PIL, and I am not sure if it will meet my
> needs.

I am using PIL and numpy


# something hat at least looks sorta like
 import numpy
 import PIL
 myImage = Image.open("C:\\file.bmp")

 myImage.assarray(stuff) 

I can't remember the code and am at work, but this will give you a big
array to work with. Each pixel for RGB looks kind of like [100,150,250]
then each line is in a matrix etc. It's a bit of a pain traversing the
matrices, but you can do anything you would do to an array. Pyro
Robotics also has a small tutorial about this.

http://pyrorobotics.org/?page=PyroModuleVisionSystem

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Image Analysis

2007-09-11 Thread Alan Gauld

"wormwood_3" <[EMAIL PROTECTED]> wrote

> I need some way to analyze an image for color patterns.
>
> My only lead right now is PIL, and I am not sure if it will meet my 
> needs.

PIL should be usable but I think there is also a Pyton wrapper
for ImageMagick and I think it has some colour management type
functions exposed too.

Never tried any of this kind of thing though so I can't recommend
anything with certainty.

Alan G 


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Image Analysis

2007-09-10 Thread wormwood_3
I have thought up a project for myself that is rather beyond my current 
knowledge, but I think it will be fun and very informative. I'll leave out the 
details right now, but the task that will be the hardest is that I need some 
way to analyze an image for color patterns. I would like to be able to load an 
image file of some format, and be able to determine what color the pixels are, 
in short. From this, I need to generate statistics, such as what color is most 
common, find patterns in the image, etc.

If anyone knows ANYTHING about this sort of analysis in Python, or even any 
helpful tutorials on image analysis that are more general, I would greatly 
appreciate it. 

My only lead right now is PIL, and I am not sure if it will meet my needs.

Thanks,
Sam


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor