Skip to content
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

Provide an example to just display an image from MNIST dataset #27

Open
scls19fr opened this issue Aug 4, 2017 · 0 comments
Open

Provide an example to just display an image from MNIST dataset #27

scls19fr opened this issue Aug 4, 2017 · 0 comments

Comments

@scls19fr
Copy link

scls19fr commented Aug 4, 2017

Maybe this repository should provide an example (or examples) to just display an image from MNIST dataset (display array as raster image in Julia)

julia> using MNIST
julia> features = trainfeatures(1)
julia> label = trainlabel(1)
julia> NROWS, NCOLS = 28, 28
julia> a = reshape(features, NROWS, NCOLS)

With PyPlot

using PyPlot
matshow(a)

figure_1

With Gadfly

using Gadfly
spy(a)

capture d ecran 2017-08-04 a 13 49 30

Ideally grayscale plots should be used

With ImageView

using ImageView
imshow(a)

capture d ecran 2017-08-04 a 13 57 34

or reversing black and white

imshow(255-a)

capture d ecran 2017-08-04 a 13 57 45

@scls19fr scls19fr changed the title Provide an example to just display an image Provide an example to just display an image from MNIST dataset Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant