Hey, I ended up figuring it out by reading the error message from when I tried to save the image. What I wanted (saving the image so it looks like the output from imshow()) is achievable with save("image.png",map(clamp01nan, img)). Hope this helps someone else!
1 Like