I am trying to perform resize using Nearest Neighbour distance and then 
using Grid.jl interpolate the new image. 

In Python I would do:

[1]val = img.getPixel(col/scale_y, row/scale_x)
[2]newImage.setPixel(col,row,val)

So this snippet of code in Julia would be: 

convert(Array, img)
[1]val = Array(col/scale_y, row/scale_x)

How do I set each pixel value for a new image data array, corresponding to 
[2]? Then I can convert this data array into an image using 
convert(new_img, new_img_data). 

Reply via email to