setID(String.valueOf( element.getAttribute("ID")));
setID(String.valueOf( element.getAttribute("ID")));
@BeforeClass public void setUp() throws Exception { // Add an Image/Pixels Image image = new Image(); image.setID("Image:0"); Pixels pixels = new Pixels(); pixels.setID("Pixels:0"); image.setPixels(pixels); // Add an ImagingEnvironment with an Map ImagingEnvironment imagingEnvironment = new ImagingEnvironment(); List<MapPair> map = new ArrayList<MapPair>(); map.add(new MapPair("a", "1")); map.add(new MapPair("d", "2")); map.add(new MapPair("c", "3")); map.add(new MapPair("b", "4")); map.add(new MapPair("e", "5")); map.add(new MapPair("c", "6")); assertEquals(6, map.size()); imagingEnvironment.setMap(map); image.setImagingEnvironment(imagingEnvironment); ome.addImage(image); }
public void setPixelsID(String id, int imageIndex) { // Parents: {u'Image': {u'OME': None}} // ID is not a reference OME o0 = root; if (o0.sizeOfImageList() == imageIndex) { o0.addImage(new Image()); } Image o1 = o0.getImage(imageIndex); if (o1.getPixels() == null) { o1.setPixels(new Pixels()); } Pixels o2 = o1.getPixels(); model.addModelObject(id, o2); o2.setID(id); }
public void setPixelsID(String id, int imageIndex) { // Parents: {u'Image': {u'OME': None}} // ID is not a reference OME o0 = root; if (o0.sizeOfImageList() == imageIndex) { o0.addImage(new Image()); } Image o1 = o0.getImage(imageIndex); if (o1.getPixels() == null) { o1.setPixels(new Pixels()); } Pixels o2 = o1.getPixels(); model.addModelObject(id, o2); o2.setID(id); }
@BeforeClass public void setUp() throws Exception { // Add an Image/Pixels Image image = new Image(); image.setID("Image:0"); Pixels pixels = new Pixels(); pixels.setID("Pixels:0"); image.setPixels(pixels); // Add a Map Annotation List<MapPair> map = new ArrayList<MapPair>(); map.add(new MapPair("a", "1")); map.add(new MapPair("d", "2")); map.add(new MapPair("c", "3")); map.add(new MapPair("b", "4")); map.add(new MapPair("e", "5")); map.add(new MapPair("c", "6")); MapAnnotation mapAnnotation = new MapAnnotation(); mapAnnotation.setID("Annotation:0"); mapAnnotation.setValue(map); StructuredAnnotations structuredAnnotations = new StructuredAnnotations(); structuredAnnotations.addMapAnnotation(mapAnnotation); ome.setStructuredAnnotations(structuredAnnotations ); image.linkAnnotation(mapAnnotation); ome.addImage(image); }
image.setID("Image:0"); Pixels pixels = new Pixels(); pixels.setID("Pixels:0"); Channel channel = new Channel(); channel.setID("Channel:0");
@BeforeClass public void setUp() throws Exception { Instrument instrument = new Instrument(); instrument.setID("Instrument:0"); // Add a Laser with an Arc pump Laser laser = new Laser(); laser.setID("Laser:0"); Arc pump = new Arc(); pump.setID("Arc:0"); laser.linkPump(pump); instrument.addLightSource(laser); instrument.addLightSource(pump); ome.addInstrument(instrument); // Add an Image/Pixels with a LightSourceSettings reference to the Pump // on one of its channels. Image image = new Image(); image.setID("Image:0"); Pixels pixels = new Pixels(); pixels.setID("Pixels:0"); Channel channel = new Channel(); channel.setID("Channel:0"); LightSourceSettings settings = new LightSourceSettings(); settings.setID("Arc:0"); channel.setLightSourceSettings(settings); pixels.addChannel(channel); image.setPixels(pixels); ome.addImage(image); }
pixels.setID("Pixels:"+index); pixels.setSizeX(new PositiveInteger(SIZE_X)); pixels.setSizeY(new PositiveInteger(SIZE_Y));
pixels.setID("Pixels:" + index); pixels.setSizeX(new PositiveInteger(SIZE_X)); pixels.setSizeY(new PositiveInteger(SIZE_Y));
pixels.setID(InOutCurrentTest.PIXELS_ID); pixels.setSizeX(new PositiveInteger(InOutCurrentTest.SIZE_X)); pixels.setSizeY(new PositiveInteger(InOutCurrentTest.SIZE_Y));
pixels.setID("Pixels:" + index); pixels.setSizeX(new PositiveInteger(SIZE_X)); pixels.setSizeY(new PositiveInteger(SIZE_Y));