-
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
Images with IJulia and math #285
Comments
@Jakki42, Image's In my limited Julia time, I'm busy with other things, trying to get some (for me) very challenging changes into julia before the 0.4 window closes (JuliaLang/julia#10911). If you want to try fixing this problem yourself, it's probably a few-line change: you basically need to provide a good default |
@timholy - I had a peek at the code and quickly noticed it's way beyond my skill level as a novice Julia programmer to do anything at all to the relevant code :( To make things even worse, it's hard for me to even figure out how to use Git and Julia in this context. Here are a couple of related problems with tiff-files converted with 'dcraw -D -4 -T': show(x)
Gray Image with:
data: 6024x4024 Array{Gray{UfixedBase{Uint16,16}},2}
properties:
IMcs: Gray
spatialorder: x y
pixelspacing: 1 1
x
`_map` has no method matching _map(::Type{UfixedBase{Uint8,8}}, ::Type{BS{8}}, ::Float64)
in _map_a! at C:\Users\Jakki\.julia\v0.3\Images\src\map.jl:361
in map! at C:\Users\Jakki\.julia\v0.3\Images\src\map.jl:353
in image2wand at C:\Users\Jakki\.julia\v0.3\Images\src\io.jl:332
in writemime at C:\Users\Jakki\.julia\v0.3\Images\src\io.jl:229
in base64 at base64.jl:125
in display_dict at C:\Users\Jakki\.julia\v0.3\IJulia\src\execute_request.jl:31
x*1.0
`mapinfo` has no method matching mapinfo(::Type{Gray{UfixedBase{Uint8,8}}}, ::Image{Gray{Float64},2,Array{Gray{Float64},2}})
in base64 at base64.jl:125
in display_dict at C:\Users\Jakki\.julia\v0.3\IJulia\src\execute_request.jl:31
the view() function luckily works fine in each case and I'll be using it regardless so the IJulia issues are secondary for me. @elsuizo - thank you for the hint. I'll keep that in mind if I need to work around the problem(s). |
Hi again :) The 16-bit files display on IJulia now fine - thank you!
Still having trouble with IJulia & Images and FixedPointNumbers. (Julia 0.3.7, Windows 8.1, IPython/IJulia 3).
That displays properly.
A simple multiply by 10 makes it (as the FixedPointNumbers doc warns) different:
And this no longer displays on IJulia, though it does on regular Julia - this is the error:
I also wonder if there is a neat and simple way to use convert() to turn the Gray{Float64} array of an image into Fixed point array without possibly having to code a needlessly complex function to do it or even having to create a whole new image just to do this?
The text was updated successfully, but these errors were encountered: