-
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
Gray fixed point number image arithmetic broken #178
Comments
Sorry about that. |
And the element-wise comparation is related with this? julia> img = TestImages.testimage("mandril_gray")
Gray Image with:
data: 512x512 Array{Gray{UfixedBase{Uint8,8}},2}
properties:
IMcs: Gray
spatialorder: x y
pixelspacing: 1 1
julia> mask = img .< 37
ERROR: `isless` has no method matching isless(::Gray{UfixedBase{Uint8,8}}, ::Int64)
in bitcache_lt at broadcast.jl:376
in .< at broadcast.jl:392
in .< at /home/elsuizo/.julia/v0.3/Images/src/algorithms.jl:118
|
I'll add that too. But you should read https://github.com/timholy/Images.jl#loading-your-first-image-how-images-are-represented and perhaps https://github.com/JeffBezanson/FixedPointNumbers.jl, and change that comparison to |
I read and i like so much the new framework, great job ¡¡ mask = img .< Images.Gray(37/255) |
Ah, that was unexpected. Great. I'll leave this open and check related methods, though. Will probably be a couple of days, I need to prepare a talk... |
Maybe I'm missing something with the fixed point numbers change, but here is the symptom :
The text was updated successfully, but these errors were encountered: