Answer the question
In order to leave comments, you need to log in
Are there services/scripts/approaches for optical alignment of objects?
Greetings.
There are several images. I would like to have at my disposal some tool that automatically selects the right sizes to balance images in optical size or whatever it is right. Are there any or is it all just a matter of eyeballing?
Answer the question
In order to leave comments, you need to log in
It seems to me that you need to look for a correspondence between the perimeter of the maximum rectangle inscribed in the image, containing the maximum contour pixels, and the perimeter of the rectangle described around the image (this is the border of the image, also containing the maximum contour pixels of the image, i.e. inset).
The greater the difference in the percentage of these two perimeters, the greater the factor you need to multiply the difference in the length and width of these two rectangles to calculate the new image dimensions - the visual borders.
This needs to be tested!
Based on the equal area occupied by the pixels of both objects, then you need:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question