protected int getSizeX() throws FormatException { MetadataRetrieve r = getMetadataRetrieve(); if (r == null) { throw new FormatException("MetadataRetrieve cannot be null"); } PositiveInteger x = null; if (getResolution() == 0) { x = r.getPixelsSizeX(getSeries()); } else if (hasResolutions()) { x = resolutionData.get(getSeries()).get(getResolution() - 1).sizeX; } else { x = ((IPyramidStore) r).getResolutionSizeX(getSeries(), getResolution()); } if (x == null) { throw new FormatException("Size X must not be null"); } return x.getValue().intValue(); }
protected int getSizeX() throws FormatException { MetadataRetrieve r = getMetadataRetrieve(); if (r == null) { throw new FormatException("MetadataRetrieve cannot be null"); } PositiveInteger x = null; if (getResolution() == 0) { x = r.getPixelsSizeX(getSeries()); } else if (hasResolutions()) { x = resolutionData.get(getSeries()).get(getResolution() - 1).sizeX; } else { x = ((IPyramidStore) r).getResolutionSizeX(getSeries(), getResolution()); } if (x == null) { throw new FormatException("Size X must not be null"); } return x.getValue().intValue(); }