public void setImageID(String id, int imageIndex) { // Parents: {u'OME': None} // ID is not a reference OME o0 = root; if (o0.sizeOfImageList() == imageIndex) { o0.addImage(new Image()); } Image o1 = o0.getImage(imageIndex); model.addModelObject(id, o1); o1.setID(id); }
public void setImageID(String id, int imageIndex) { // Parents: {u'OME': None} // ID is not a reference OME o0 = root; if (o0.sizeOfImageList() == imageIndex) { o0.addImage(new Image()); } Image o1 = o0.getImage(imageIndex); model.addModelObject(id, o1); o1.setID(id); }
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); }
@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");
@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); }
image.setID("Image:"+index); image.setName("Image Name "+index); image.setDescription("Image Description "+index);
private Image makeImage(int index) { image.setID("Image:" + index);
private Image makeImage() { image.setID(InOutCurrentTest.IMAGE_ID); ListAnnotation listAnnotation = new ListAnnotation(); listAnnotation.setID(InOutCurrentTest.IMAGE_LIST_ANNOTATION_ID);
image.setID("Image:" + index); CommentAnnotation commentAnnotation = new CommentAnnotation(); commentAnnotation.setID("Annotation:" + index);