-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot display rotated small images #717
Labels
Comments
tbenst
changed the title
Cannot dirplay rotated small images
Cannot display rotated small images
Apr 15, 2018
I suspect this is caused by julia> using OffsetArrays
julia> A = OffsetArray(rand(3,3), -1, -1)
OffsetArrays.OffsetArray{Float64,2,Array{Float64,2}} with indices 0:2×0:2:
0.256666 0.274267 0.962343
0.580651 0.694334 0.78365
0.167408 0.304966 0.766681
julia> repeat(A, inner=2)
ERROR: size not supported for arrays with axes (0:2, 0:2); see http://docs.julialang.org/en/latest/devdocs/offset-arrays/ |
This seems to be the same underlying issue as #650. See Tim's comments in that thread. |
my temporary solution is to convert it to Array imgrot = imrotate(img, pi/8) |> Array |
timholy
added a commit
to JuliaImages/ImageShow.jl
that referenced
this issue
Nov 13, 2018
timholy
added a commit
to JuliaImages/ImageShow.jl
that referenced
this issue
Nov 13, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
similar to #640. Tested with both Juno and IJulia on Images v0.13.0. Interestingly, it does work in REPL so it appears to be related to displaying the image.
size not supported for arrays with axes (-11:87, -11:87); see http://docs.julialang.org/en/latest/devdocs/offset-arrays/
The text was updated successfully, but these errors were encountered: