/** Retrieve the total number of planes in given series. */ protected int getPlaneCount(int series) { MetadataRetrieve r = getMetadataRetrieve(); int z = r.getPixelsSizeZ(series).getValue().intValue(); int t = r.getPixelsSizeT(series).getValue().intValue(); int c = r.getPixelsSizeC(series).getValue().intValue(); c /= r.getChannelSamplesPerPixel(series, 0).getValue().intValue(); return z * c * t; }
/** Retrieve the total number of planes in given series. */ protected int getPlaneCount(int series) { MetadataRetrieve r = getMetadataRetrieve(); int z = r.getPixelsSizeZ(series).getValue().intValue(); int t = r.getPixelsSizeT(series).getValue().intValue(); int c = r.getPixelsSizeC(series).getValue().intValue(); c /= r.getChannelSamplesPerPixel(series, 0).getValue().intValue(); return z * c * t; }
int sizeY = meta.getPixelsSizeY(series).getValue().intValue(); int z = meta.getPixelsSizeZ(series).getValue().intValue(); int c = meta.getPixelsSizeC(series).getValue().intValue(); int t = meta.getPixelsSizeT(series).getValue().intValue(); int pixelType =
int sizeY = meta.getPixelsSizeY(series).getValue().intValue(); int z = meta.getPixelsSizeZ(series).getValue().intValue(); int c = meta.getPixelsSizeC(series).getValue().intValue(); int t = meta.getPixelsSizeT(series).getValue().intValue(); int pixelType =
int nY = meta.getPixelsSizeY(series).getValue().intValue(); int nZ = meta.getPixelsSizeZ(series).getValue().intValue(); int nC = meta.getPixelsSizeC(series).getValue().intValue(); int nT = meta.getPixelsSizeT(series).getValue().intValue(); double vX = 1.0;
retrieve.getPixelsSizeC(i).getValue().intValue()) { msg = String.format("SizeC (expected %d, actually %d)", reader.getSizeC(), retrieve.getPixelsSizeC(i).getValue().intValue());
int nY = meta.getPixelsSizeY(series).getValue().intValue(); int nZ = meta.getPixelsSizeZ(series).getValue().intValue(); int nC = meta.getPixelsSizeC(series).getValue().intValue(); int nT = meta.getPixelsSizeT(series).getValue().intValue(); double vX = 1.0;
int sizeC = r.getPixelsSizeC(series).getValue(); int sizeT = r.getPixelsSizeT(series).getValue(); int sizeZ = r.getPixelsSizeZ(series).getValue();
int sizeC = r.getPixelsSizeC(series).getValue(); int sizeT = r.getPixelsSizeT(series).getValue(); int sizeZ = r.getPixelsSizeZ(series).getValue();
@Test public void testPlaneMetadata() throws Exception { File fakeIni = mkIni("foo.fake.ini", "sizeC=2", "[series_0]", "ExposureTime_0=100.0", "ExposureTimeUnit_0=ms", "ExposureTime_1=50.0", "ExposureTimeUnit_1=ns", "PositionX_0=10.0", "PositionY_0=20.0", "PositionZ_0=30.0", "PositionXUnit_0=mm", "PositionYUnit_0=mm", "PositionZUnit_0=mm", "PositionX_1=5.0", "PositionY_1=10.0", "PositionZ_1=15.0", "PositionXUnit_1=nm", "PositionYUnit_1=nm", "PositionZUnit_1=nm"); reader.setId(fakeIni.getAbsolutePath()); m = service.asRetrieve(reader.getMetadataStore()); assertEquals(m.getPixelsSizeC(0).getNumberValue(), 2); assertEquals(m.getPlaneExposureTime(0, 0), new Time(100.0, UNITS.MILLISECOND)); assertEquals(m.getPlaneExposureTime(0, 1), new Time(50.0, UNITS.NANOSECOND)); assertEquals(m.getPlanePositionX(0, 0), new Length(10.0, UNITS.MM)); assertEquals(m.getPlanePositionY(0, 0), new Length(20.0, UNITS.MM)); assertEquals(m.getPlanePositionZ(0, 0), new Length(30.0, UNITS.MM)); assertEquals(m.getPlanePositionX(0, 1), new Length(5.0, UNITS.NM)); assertEquals(m.getPlanePositionY(0, 1), new Length(10.0, UNITS.NM)); assertEquals(m.getPlanePositionZ(0, 1), new Length(15.0, UNITS.NM)); }
int sizeY = retrieve.getPixelsSizeY(i).getValue(); int sizeZ = retrieve.getPixelsSizeZ(i).getValue(); int sizeC = retrieve.getPixelsSizeC(i).getValue(); int sizeT = retrieve.getPixelsSizeT(i).getValue(); int type = FormatTools.pixelTypeFromString(
int sizeY = retrieve.getPixelsSizeY(i).getValue(); int sizeZ = retrieve.getPixelsSizeZ(i).getValue(); int sizeC = retrieve.getPixelsSizeC(i).getValue(); int sizeT = retrieve.getPixelsSizeT(i).getValue(); int type = FormatTools.pixelTypeFromString(
int sizeY = retrieve.getPixelsSizeY(0).getValue(); int sizeZ = retrieve.getPixelsSizeZ(0).getValue(); int sizeC = retrieve.getPixelsSizeC(0).getValue(); int sizeT = retrieve.getPixelsSizeT(0).getValue(); int type = FormatTools.pixelTypeFromString(retrieve.getPixelsType(0).toString());
int sizeY = retrieve.getPixelsSizeY(0).getValue(); int sizeZ = retrieve.getPixelsSizeZ(0).getValue(); int sizeC = retrieve.getPixelsSizeC(0).getValue(); int sizeT = retrieve.getPixelsSizeT(0).getValue(); int type = FormatTools.pixelTypeFromString(retrieve.getPixelsType(0).toString());
ifd.putIFDValue(IFD.SAMPLE_FORMAT, sampleFormat); int channels = retrieve.getPixelsSizeC(series).getValue().intValue(); int z = retrieve.getPixelsSizeZ(series).getValue().intValue(); int t = retrieve.getPixelsSizeT(series).getValue().intValue();
final int sizeY = retrieve.getPixelsSizeY(imageIndex).getValue(); final int sizeZ = retrieve.getPixelsSizeZ(imageIndex).getValue(); int sizeC = retrieve.getPixelsSizeC(imageIndex).getValue(); final int sizeT = retrieve.getPixelsSizeT(imageIndex).getValue(); final Length physX = retrieve.getPixelsPhysicalSizeX(imageIndex);
ifd.putIFDValue(IFD.SAMPLE_FORMAT, sampleFormat); int channels = retrieve.getPixelsSizeC(series).getValue().intValue(); int z = retrieve.getPixelsSizeZ(series).getValue().intValue(); int t = retrieve.getPixelsSizeT(series).getValue().intValue();
int sizeC = retrieve.getPixelsSizeC(i).getValue().intValue(); int nChannelComponents = retrieve.getChannelCount(i); int samplesPerPixel =
throw new FormatException("PixelType #" + n + " is null"); if (src.getPixelsSizeC(n) == null) { throw new FormatException("SizeC #" + n + " is null");
throw new FormatException("PixelType #" + n + " is null"); if (src.getPixelsSizeC(n) == null) { throw new FormatException("SizeC #" + n + " is null");