image-js / image-js-typescript

Temporary repository to work on the migration of image-js to TypeScript
https://image-js.github.io/image-js-typescript/
MIT License
5 stars 5 forks source link

getMbrFromPoints should be more consistent #330

Closed lpatiny closed 1 year ago

lpatiny commented 1 year ago

Currently the result of the Mbr changes depending the orientation of the rectangle which is quite annoying with particule analysis for which most of the time the orientation is not relevant.

I would suggest that in getMbrFromPoints:

Not sure how easy this change is because maybe the angle also has to change if we invert width / height.