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

LoadError: indexing Images.Image #19

Open
Atraii opened this issue Jun 27, 2016 · 2 comments
Open

LoadError: indexing Images.Image #19

Atraii opened this issue Jun 27, 2016 · 2 comments

Comments

@Atraii
Copy link

Atraii commented Jun 27, 2016

The example file is no longer usable. With the latest master I'm getting:

LoadError: indexing Images.Image{ColorTypes.BGRA{FixedPointNumbers.UFixed{UInt8,8}},2,Array{ColorTypes.BGRA{FixedPointNumbers.UFixed{UInt8,8}},2}} with types Tuple{Tuple{Int64,Int64}} is not supported
while loading In[1], in expression starting on line 9

If the @compat is removed, the code runs, but the output image is very wrong. Any ideas what is going on here?

Edit: info
Using Julia v0.4.5.

@juliohm
Copy link
Member

juliohm commented Feb 22, 2017

This issue is still valid in Julia v0.5.

@lawless-m
Copy link

lawless-m commented Oct 28, 2021

For what it's worth 5 years later on Julia 1.6 .....

"imread" is now "load" in Images

the code runs but doesn't produce the example output

import VoronoiDelaunay: from_image, voronoiedges, getplotxy
import Images: load
import Gadfly: set_default_plot_size, plot, Geom, Scale, cm, draw, SVG, inch

img = load("julia.png")
# placing points in places that represent the image.
tess = from_image(img, 25000)

# making the plot
set_default_plot_size(30cm,15cm)
x, y = getplotxy(voronoiedges(tess))
p = plot(x=x, y=y, Geom.path, Scale.x_continuous(minvalue=1.0, maxvalue=2.0), Scale.y_continuous(minvalue=1.25, maxvalue=1.75))

# save as SVG
draw(SVG("voroimage.svg", 8inch, 4inch), p)

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

3 participants