from ij import IJ, ImagePlus scale = 4 IJ.run('Blobs (25K)') imp = IJ.getImage() #selects the top image and names it imp imp.show() x = imp.getWidth() y = imp.getHeight() ip = imp.getProcessor().resize (x * scale, y * scale, 'bicubic') imp.setProcessor(ip)
I am trying to upsize an image by specific factors. When I run the resize() function with the x and y arguments only the script upsizes but it does not interpolate the image. I need to be able to upsize with interpolation but when I try to add the third argument the code throws a
“TypeError: resize(): 3rd arg can’t be coerced to boolean”
What is the correct way to enter the third argument to get the resize command to upscale with interpolation?