Would it be feasible to modify the algorithm to find the largest square instead of the largest unconstrained rectangle? More broadly, it would be great to be able to find the largest rectangle with a given aspect ratio and then specify 1:1 for squares.
Would it be feasible to modify the algorithm to find the largest square instead of the largest unconstrained rectangle? More broadly, it would be great to be able to find the largest rectangle with a given aspect ratio and then specify 1:1 for squares.