diff --git a/src/main/java/com/glencoesoftware/omero/ms/image/region/ImageDataRequestHandler.java b/src/main/java/com/glencoesoftware/omero/ms/image/region/ImageDataRequestHandler.java index caf817e3..68ac02df 100644 --- a/src/main/java/com/glencoesoftware/omero/ms/image/region/ImageDataRequestHandler.java +++ b/src/main/java/com/glencoesoftware/omero/ms/image/region/ImageDataRequestHandler.java @@ -473,9 +473,11 @@ private JsonArray getImageDataChannels(Pixels pixels, RenderingDef rdef) StatsInfo statsInfo = channel.getStatsInfo(); JsonObject window = new JsonObject(); if (statsInfo != null) { + window.put("statsInfoMissing", false); window.put("min", statsInfo.getGlobalMin().getValue()); window.put("max", statsInfo.getGlobalMax().getValue()); } else { + window.put("statsInfoMissing", true); double[] minMax = getPixelsRange(pixels); window.put("min", minMax[0]); window.put("max", minMax[1]);