• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Similarity between integers in a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Similarity between integers in a list
      • From: BJ Terry <email@hidden>
    • Re: Similarity between integers in a list
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Finding the oldest date in a list
  • Next by Date: RE:First Applescript
  • Previous by thread: Controlling caps lock?
  • Next by thread: Re: Similarity between integers in a list
  • Index(es):
    • Date
    • Thread