Scaling An R Image
问题 I'd like to scale an image in R for further analysis rather than for immediate plotting. EBImage's resize() would be ideal for this if I could use EBImage, but I need to avoid it so I have to find an alternative. I haven't had any luck searching. I could implement bilinear filtering by hand, but before I do that I'd like to confirm that there aren't any alternatives. 回答1: Nearest neighbour resizing is the most common and simplest to implement. Assuming your image is one layer/channel, and