Include simshow function#56
Conversation
Codecov ReportBase: 87.98% // Head: 88.32% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #56 +/- ##
==========================================
+ Coverage 87.98% 88.32% +0.34%
==========================================
Files 6 7 +1
Lines 233 257 +24
==========================================
+ Hits 205 227 +22
- Misses 28 30 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
Hi! |
|
Sorry for the delay @roflmaostc, but this looks a nifty and it works on my end: It would be great if you add support for signed fixed point numbers (as discussed in #41 like @johnnychen94 mentioned), which currently have the awful behavior of: I think something simple like subtyping on |
|
Thank, I'll try to look into it! I probably remove the parameter |
|
@tlnagy do we introduce a new dependency for the FixedPointNumbers.jl? |
|
FixedPointNumbers and Colors are always included as long as ImageCore is loaded https://github.com/JuliaImages/ImageCore.jl/blob/fc9ac05630ac07876963d412a295fade46e0094e/src/ImageCore.jl#L4-L6 |
|
Would it be OK to convert the FixedPointNumbers to Float for displaying it? Error such this occur: rgumentError: FixedPointNumbers.Q0f7 is an 8-bit type representing 256 values from -1.0 to 0.992; cannot represent 1What should I do in this case? Even the operation So think I can't recycle the other functionalities very well (how would a gamma work?). Is something like this ok? function simshow(arr::AbstractArray{Colors.Gray{T}}) where {T<:Fixed}
return simshow(Array{Gray{Float64}}(arr))
end |
johnnychen94
left a comment
There was a problem hiding this comment.
As a new function with no compatibility consideration, I'm fully supportive on merging this and giving it a try. But before merging I hope @tlnagy shares some comments on if this supports his usage (especially on how FixedPointNumbers are handled) -- I hope this function can be used by more people and not just one or two.
Co-authored-by: Johnny Chen <johnnychen94@hotmail.com>
|
What's the state of it? I really use that every day and need to copy paste it all the time 😆 |
|
I was waiting for more people involved because I'm not so active here these days; nevertheless, let's merge this and give it a try since it's a greenfield implementation, and I don't see it harmful to the existing codebase. |
|
Should we advertise it a little more, like in: https://github.com/roflmaostc/SimpleImageView.jl |


As discussed in #55
Would be happy to receive feedback :)
Right now it basically displays only 2D arrays.
I think it would be nice to have the option for 3D arrays to be shown as RGB, if possible.
For other 3D arrays I think we can just error because
simshowis not a fully fledged viewer but instead a simple viewer for inline displays of arrays