We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ScaleKeepAspect
1 parent 3abde17 commit be18dbdCopy full SHA for be18dbd
src/projective/affine.jl
@@ -52,8 +52,8 @@ end
52
53
function projectionbounds(tfm::ScaleKeepAspect{N}, P, bounds::Bounds{N}; randstate = nothing) where N
54
origsz = length.(bounds.rs)
55
- ratio = maximum((tfm.minlengths .+ 1) ./ origsz)
56
- sz = floor.(Int, ratio .* origsz)
+ ratio = maximum((tfm.minlengths) ./ origsz)
+ sz = floor.(Int,ratio .* origsz)
57
bounds_ = transformbounds(bounds, P)
58
bs_ = offsetcropbounds(sz, bounds_, ntuple(_ -> 1., N))
59
return bs_
0 commit comments