What is the following line doing in Python? How can I convert it into a JavaScript representation of same operation?
output[new_y,new_x,:]=image[i,j,:]