Similarity between integers in a list
Similarity between integers in a list
- Subject: Similarity between integers in a list
- From: Martin Orpen <email@hidden>
- Date: Wed, 19 May 2004 00:01:24 +0100
I'm working on a Photoshop script that tries to work out whether an RGB
image is colourful or neutral.
The script gets RGB values from 6 (or more) randomly chosen pixels in the
form:
Image 1
{{71, 94, 97}, {95, 96, 98}, {60, 68, 73}, {41, 49, 56}, {21, 23, 36}, {44,
47, 52}}
Image 2
{{89, 89, 89}, {82, 82, 82}, {77, 77, 77}, {48, 49, 49}, {48, 49, 50}, {66,
68, 68}}
I'd like to process each list so that I can differentiate between the images
- image 1 being a conventional colour image where the lists show greater
variation and image 2 being neutral and the pixel values tend to be nearly
equal.
I need to get some sleep now, but if anybody has any ideas on how to crash
through these lists quickly I'd love to read about them in the morning :-)
Regards
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.