4 Replies Latest reply on May 11, 2012 6:15 AM by Pedro Cortez Marques

    Detect the centerpoint of an object on grey background

    Pedro Cortez Marques Level 3

      I have many photos I want to center my crop script.


      It is done already, but now I want to more:


      Is it possible to detect the top right down left sides of the object in the grey background and give me the x,y center of this object?

      The object is always surrounded by grey background.


      The grey background is almost allways similar and with no dust (almost...).


      I can imagine that I could create a rough tile selection (larger or smaller), move it on all the image to read the colour and leave what is similar with the first lefttop reading. Then select al the remains: my object.


      But something tells me that there is an easy and smart way of doing this with not much processor saturation.