Hi,

I was trying to get the median values using the ImageStatistics object, but it always returns 0: (the mean is fine - I added it to show that using a different field gives good results)

```
importClass(Packages.ij.IJ);
importClass(Packages.ij.plugin.frame.RoiManager);
importClass(Packages.ij.io.OpenDialog);
importClass(Packages.ij.io.DirectoryChooser);
importClass(Packages.java.io.File);
importClass(Packages.ij.gui.GenericDialog);
importClass(Packages.ij.util.Tools);
importClass(Packages.ij.plugin.Duplicator);
importClass(Packages.ij.measure.ResultsTable);
importClass(Packages.ij.ImagePlus);
importClass(Packages.ij.process.ImageProcessor);
importClass(Packages.ij.util.ArrayUtil);
importClass(Packages.ij.gui.Overlay);
importClass(Packages.ij.plugin.filter.ParticleAnalyzer);
importClass(Packages.ij.gui.Roi);
importClass(Packages.ij.plugin.filter.Analyzer);
importClass(Packages.ij.plugin.RGBStackMerge);
importClass(Packages.ij.process.ImageConverter);
importClass(Packages.ij.gui.OvalRoi);
importClass(Packages.ij.WindowManager);
importClass(Packages.ij.ImageStack);
importClass(Packages.ij.gui.ProfilePlot);
importClass(Packages.ij.gui.Line);
importClass(Packages.ij.gui.Plot);
importClass(Packages.ij.measure.CurveFitter);
importClass(Packages.ij.plugin.frame.Fitter);
importClass(Packages.ij.gui.PolygonRoi);
importPackage(java.awt);
imp = IJ.createImage("randImg", "8-bit random", 17, 17, 1);
imp.setRoi(4,1,3,4);
rm = RoiManager.getInstance();// initiating the ROI manager in hidden mode
ip = imp.getProcessor();
stats = ip.getStatistics();
var medianVal = stats.median;
print("The median is: " + medianVal);
var meanVal = stats.mean;
print("The mean is: " + meanVal);
```

Is this a bug?

Thanks,

Avital