You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2018. It is now read-only.
Sdanisch edited this page Aug 13, 2014
·
5 revisions
With GLPLot you can view basically every OpenGL texture.
As GLTextures are not only used for images, but for all kinds of purposes, this is pretty helpful.
You can create a texture from a matrix, or from a path pointing to an image.
Most image formats are supported, thanks to the awesome package Images.jl.
By now, you have some extended functionality available, like applying filter kernels and stretching the values to a certain range.
API:
#Using ImmutableArrays for colors (Vec4 --> Vector4{Float32):
a =Texture([Vec4(i/512,j/512,0,1)for i=1:512, j=1:512])
# Without ImmutableArrays, the color dimension is not known and you need to supply it
b =Texture([(i*j)/512^2for i=1:512, j=1:512], 1)