-
Notifications
You must be signed in to change notification settings - Fork 47
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
NaN
s are not showable
#469
Comments
At least Colors.jl does not implement the text display feature. So, this seems to be a side effect of other packages. pkg> st --manifest
Status `Manifest.toml`
[3da002f7] ColorTypes v0.10.12
[5ae59095] Colors v0.12.7
[53c48c17] FixedPointNumbers v0.8.4
[189a3867] Reexport v1.0.0
[8f399da3] Libdl
[37e2e46d] LinearAlgebra
[9a3f8284] Random
[9e88b42a] Serialization
[2f01184e] SparseArrays
[10745b16] Statistics
julia> using Colors
julia> Gray(NaN)
Gray{Float64}(NaN) |
Ah yes! Sorry I didn't describe it clearly; the error message I get shows when I use vscode. |
Colors, unlike ImageShow, displays a color or color arrays as "swatches" rather than an "image". So, it seems appropriate to return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gray(NaN)
andRGB(NaN)
are not showable:The error message is a bit misleading, too.
ImageShow uses
ImageCore.clamp01nan
to handle this, I think we can perhaps moveclamp01
andclamp01nan
toColors
.https://github.com/JuliaImages/ImageCore.jl/blob/a8f3d2c52070d9c166e1657ba25e72c8df00c742/src/map.jl#L3-L39
The text was updated successfully, but these errors were encountered: