Center abstract shapes to the centre of the picture
Posted: 2011-08-02T07:43:43-07:00
Hi,
For an experiment I need to use a big number of abstract shapes (white shapes on black background) all different from each other that are not correctly placed in the center of the picture. Since this is very important for the stimuli presentation, I wonder if there is a way for automatically, let's say, crop the shape and place it in the center (usign "gravity" or something) for example a function that detects the border of the shape or something like this. How would you solve this problem in ImageMagick?
Hope you can help me with this,
Thanks
Best
Ale
P.S. I don't know if relevant but I'm using a Mac
For an experiment I need to use a big number of abstract shapes (white shapes on black background) all different from each other that are not correctly placed in the center of the picture. Since this is very important for the stimuli presentation, I wonder if there is a way for automatically, let's say, crop the shape and place it in the center (usign "gravity" or something) for example a function that detects the border of the shape or something like this. How would you solve this problem in ImageMagick?
Hope you can help me with this,
Thanks
Best
Ale
P.S. I don't know if relevant but I'm using a Mac