Rob174 / detection_nappe_hydrocarbures_IMT_cefrem

0 stars 0 forks source link

Rotate the image to cut the borders #10

Closed Rob174 closed 3 years ago

Rob174 commented 3 years ago

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

Rob174 commented 3 years ago

It seems that a simple rotation will not be sufficient:

Capture d’écran (199)

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

Rob174 commented 3 years ago

For the moment we will not rotate the image