Following the ideas, I get: 

function rescale(img)
              h=height(img)
              w=width(img)
              scale_x = 2
              scale_y = 2
              new_h = int(h*scale_y)
              new_w = int (w*scale_x)
              A = data(img)
              Ai = InterpGrid(A, BCnil, InterpNearest)
              new_image_data = reshape(1:(new_h*new_w), new_w, new_h)
              for col = 1:new_w
              for row = 1:new_h
              new_image_data[col, row] = Ai[div(col,scale_x), div(row,
scale_y)]
              end
              end
              new_image = InterpGrid(new_image_data, BCnil, InterpNearest)
              end



with InterpGrid giving me an error:

julia> rescale(img)
ERROR: InterpGrid not defined
 in rescale at none:9


I tried updating by Pkg.update() because of this issue. 
<https://github.com/timholy/Grid.jl/issues/7>But no luck. Any suggestions? 

Reply via email to