Closed GreenEric closed 4 years ago
You can save such image as tiff file.
save.image(imx, "imxxx.tif")
However, I don't recommend to save such image because image viewers don't read such image in general.
The NaN appeared because square root of negative numbers is impossible and treated as NaN in R. I guess you wanted to estimate an error between two images. If so, you should use mean absolute error or root mean squared error or something.
when manipulating images with {imager}, I subtract an image from the other, and shockedly found I can't save the image. After converting the image into data.frame, I conclude when NAN appears, the it can't be saved. pls find the toy example.
How can I save such image?