PolymerGuy / muDIC

Digital Image Correlation in Python
MIT License
160 stars 69 forks source link

Region of interest coordinates selection without GUI #26

Open alelingua opened 4 years ago

alelingua commented 4 years ago

The Region of Interest identification without using the GUI requires the input of the specimen edges coordinates. For this purpose the point 1 (upper left) and 2 (bottom right) coordinates have to be specified while calling the mesher. The y coordinates might be inversed, meaning that the solver can successfully complete the analysis only if the relation Yc2>Yc1 is verified. This can be verified only if Yc1 is the y coordinate of the bottom right point and consequently Yc2 identifies the top left edge. The code should identify with Yc1 the y coordinate of the upper left point and with Yc2 the y coordinate of the bottom right edge, instead of considering Yc1 the coordinate of the bottom right edge and Yc2 the coordinate of the upper left edge.