Closed Rob174 closed 3 years ago
It seems that a simple rotation will not be sufficient:
The orange rectangle correspond to the selection tool to have an horizontal rectangle reference. I have tried to rotate manually the image to achieve the original idea but it seems that there wil always be padding in the final image if we only make a rotation.
The only way to achieve properly rotate and straighten the image would be to make an affine transformation on the image as with opencv (https://docs.opencv.org/3.4/d4/d61/tutorial_warp_affine.html#:~:text=result)
But we will distort the image and the shape of the oil discharges
For the moment we will not rotate the image
Original idea : rotate the image so that the grid cut follow the axis of the real image without the padding already include in the imgae
--> maybe with the transform matrix of the raster