from ij import IJ image_path = "path/to/image.jpg" image = IJ.openImage(image_path)
from ij import IJ, ImagePlus from ij.plugin.filter import GaussianBlur image_path = "path/to/image.jpg" image = IJ.openImage(image_path) sigma = 2.0 radius = int(sigma * 3.0) gb = GaussianBlur() gb.setup("sigma=%f radius=%d" % (sigma, radius), image) gb.run(image.getProcessor())