• 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
Re: Similarity between integers in a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Similarity between integers in a list


  • Subject: Re: Similarity between integers in a list
  • From: Martin Orpen <email@hidden>
  • Date: Wed, 19 May 2004 12:26:22 +0100

[originally sent to the OP instead of the list by mistake]

on 19/5/04 2:54 am, Christopher Nebel at email@hidden wrote:

> It's not really clear what you mean by "colourful". Do you mean that
> there are a lot of different colors? That the colors are all well away
> from 50% gray? That there are a lot of high-saturation-high-brightness
> (for lack of a better word, "colourful") colors? For instance, a
> black-to-white wipe would qualify as "colourful" under the first and
> second definitions, but not the third. A pure red image would qualify
> under the second and third definitions, but not the first. A pure
> black image would qualify under the first definition, but not the
> second or third. You see the problem?

Yes, bad explanation after a long day :-(

The main part of the script is separating images from RGB to CMYK. Images
that are neutral (or very close to it) need to be separated using a
different ICC profile to than regular colour images (wider and longer black
values if you're interested).

So I need to detect RGB values that are equal or very close to equal in all
of the random samples.

> Also, you've currently got everything expressed as RGB, but distance in
> RGB space isn't good at determining all color qualities. L*a*b* would
> make more sense for the first two definitions; HSB would make more
> sense for the third. (I'd be surprised if Photoshop couldn't do the
> conversion for you.)

I don't know if PS CS is different to PS 7, but getting a pixel value in RGB
is a PITA. You have to get a histogram for each channel and then loop
through the results up to 256 times asking if the value of the pixel is "1"
:(

This can take up to 6 seconds, but it doesn't bother me that much as every
image is over 100Mb and will take much longer to open, separate, sharpen,
save etc.

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.


References: 
 >Re: Similarity between integers in a list (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Similarity between integers in a list
  • Next by Date: print style in Quark 6
  • Previous by thread: Re: Similarity between integers in a list
  • Next by thread: Re: Similarity between integers in a list
  • Index(es):
    • Date
    • Thread