Re: Similarity between integers in a list
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 18:28:28 +0100
on 19/5/04 5:54 pm, Roger Howard at email@hidden wrote:
>
How about converting the image to grayscale, then layering over the
>
original using mix mode "Difference"? Then you could even further
>
simplify by scaling the image down, using bicubic, to a small size, and
>
sampling the resulting pixels for neutrality (or simply checking if
>
they are black, if all you want to know is if the image is EXACTLY
>
neutral to begin with).
>
>
I'd look for ways to have Photoshop do most of the legwork, rather than
>
querying lots of pixels using AppleScript...
The script is actually working like a dream today.
Some of the images that it has encountered were over 300Mb, so any kind of
conversion is much slower than forcing PS to give up the pixel values.
I've also found that I need only sample 3 pixels to differentiate between
the image types - which means only 3 seconds of looping through the PS
histograms.
The process could be made quicker by removing half the maths, as I'd
borrowed that section of the script from another that I use to give CMYK
tint percentages rather than 8 bit histogram values.
Thanks again to BJ Terry and Michael Ziober for the pixel crunching
suggestions.
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.