Identical shape recognition

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Photoshop Spree
Posts: 1
Joined: Sun Jan 21, 2018 4:13 pm

Identical shape recognition

Post by Photoshop Spree »

Hi.
I'm looking for a way to identifiy identical shapes(islands of pixels) in a picture. For example if we have a flag copied 3 times and spread in the image and then one of the flags have been resized and the other one has been rotated, but they all have the same shape. Now I need to identify them and store this info(as a selection or different layer etc) in order to bring further adjustments to all of the copies, later on.
dbell
Posts: 2
Joined: Fri Jan 26, 2018 5:34 pm

Re: Identical shape recognition

Post by dbell »

That is far beyond the capability of Photoshop scripting. What you are wanting to do requires "artificial intelligence". It would also require all of the RGB pixel information to be fetched into an array to be analyzed which isn't even possible with Extendscript. Getting the RGB data into an array would require a plugin. However, that would only be the starting point. The actual coding for shape recognition would be very complex and far beyond anything you would probably want to attempt.