Metadata differ from systems

Hi,
When I read the metadata of an ND file with image plugin, I didn't find the same value according to the OS on which run the program.
On Ubuntu a got
sx = 0.15
sy = 0.15
sz = 0.6
On Windows or Mac Os x :
sx = 0.15
sy = 0.15
sz = null
What's wrong ????
Philippe
When I read the metadata of an ND file with image plugin, I didn't find the same value according to the OS on which run the program.
- Code: Select all
ServiceFactory factory = new ServiceFactory();
OMEXMLService service = factory.getInstance(OMEXMLService.class);
IMetadata meta = service.createOMEXMLMetadata();
ImageProcessorReader reader = new ImageProcessorReader();
reader.setMetadataStore(meta);
reader.setId(imageName);
// read only last series
reader.getSeriesCount();
int series = reader.getSeriesCount() - 1;
reader.setSeries(series);
int zStep = reader.getSizeZ();
String seriesName = meta.getImageName(series); // name of current series
Length sx = meta.getPixelsPhysicalSizeX(series);
Length sy = meta.getPixelsPhysicalSizeY(series);
Length sz = meta.getPixelsPhysicalSizeZ(series);
System.out.println("sx ="+sx.value().doubleValue());
System.out.println("sx ="+sy);
System.out.println("sx ="+sz);
cal.pixelHeight = sy.value().doubleValue();
cal.pixelDepth = sz.value().doubleValue();
On Ubuntu a got
sx = 0.15
sy = 0.15
sz = 0.6
On Windows or Mac Os x :
sx = 0.15
sy = 0.15
sz = null
What's wrong ????
Philippe