if (dims == null) throw new NullPointerException("No dims.");
if (dims == null) throw new NullPointerException("No dims."); this.dims = dims;
    public ROIStats(PixelsDimensions dims)    {        if (dims == null) throw new NullPointerException("No dims.");          }