Views
517
Replies
1
Status
Closed
Hi,
I’m working on a plugin that goes through graphics files and checks to see if they fit certain specifications. First off, it’s an automation plugin that I’ve written in C++ for Photoshop 6.0 (this means I’m not able to use the scripting plugin).
What I need to do is go through each file and check to see if any luminance values are greater that 217. It’s the same thing as if you went to Image->Histogram and looked at how many values are greater than 217 (when luminance is selected).
I would want the plugin to count how many pixels have luminance values greater than 217. From what I’ve worked on so far for this it seems that I’ll have to have my automation plugin call a filter plugin (this part is documented in the sdk) so that I can get the actual pixel values. The part I don’t know is where these values are and how I can run through them to check my condition.
Any help would be very much appreciated! Thank you!!!
Jeff Bowen
I’m working on a plugin that goes through graphics files and checks to see if they fit certain specifications. First off, it’s an automation plugin that I’ve written in C++ for Photoshop 6.0 (this means I’m not able to use the scripting plugin).
What I need to do is go through each file and check to see if any luminance values are greater that 217. It’s the same thing as if you went to Image->Histogram and looked at how many values are greater than 217 (when luminance is selected).
I would want the plugin to count how many pixels have luminance values greater than 217. From what I’ve worked on so far for this it seems that I’ll have to have my automation plugin call a filter plugin (this part is documented in the sdk) so that I can get the actual pixel values. The part I don’t know is where these values are and how I can run through them to check my condition.
Any help would be very much appreciated! Thank you!!!
Jeff Bowen
How to Master Sharpening in Photoshop
Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.