protected int getSizeY() throws FormatException { MetadataRetrieve r = getMetadataRetrieve(); if (r == null) { throw new FormatException("MetadataRetrieve cannot be null"); } PositiveInteger y = null; if (getResolution() == 0) { y = r.getPixelsSizeY(getSeries()); } else if (hasResolutions()) { y = resolutionData.get(getSeries()).get(getResolution() - 1).sizeY; } else { y = ((IPyramidStore) r).getResolutionSizeY(getSeries(), getResolution()); } if (y == null) { throw new FormatException("Size Y must not be null"); } return y.getValue().intValue(); }
protected int getSizeY() throws FormatException { MetadataRetrieve r = getMetadataRetrieve(); if (r == null) { throw new FormatException("MetadataRetrieve cannot be null"); } PositiveInteger y = null; if (getResolution() == 0) { y = r.getPixelsSizeY(getSeries()); } else if (hasResolutions()) { y = resolutionData.get(getSeries()).get(getResolution() - 1).sizeY; } else { y = ((IPyramidStore) r).getResolutionSizeY(getSeries(), getResolution()); } if (y == null) { throw new FormatException("Size Y must not be null"); } return y.getValue().intValue(); }