Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
cleaned up code for streamed images
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Jan 23, 2017
1 parent 6f78918 commit 24664fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/visualize/image_like.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
GLAbstraction.gl_convert{T}(::Type{T}, img::Images.Image) = gl_convert(T, Images.data(img))

function _default{T <: Colorant, X}(main::Images.Image{T, 2, X}, s::Style, d::Dict)
props = main.properties
function _default{T <: Colorant, X}(main::TOrSignal{Images.Image{T, 2, X}}, s::Style, d::Dict)
props = value(main).properties # TODO update this if signal
if haskey(props, "spatialorder")
so = props["spatialorder"]
get!(d, :spatialorder, join(so, ""))
end
_default(Images.data(main), s, d)
_default(const_lift(Images.data, main), s, d)
end
_default{T <: Colorant, X}(main::Signal{Images.Image{T, 2, X}}, s::Style, d::Dict) = _default(const_lift(Images.data, main), s, d)


"""
A matrix of colors is interpreted as an image
Expand Down

0 comments on commit 24664fe

Please sign in to comment.