Skip to content

Commit

Permalink
Merge pull request #50 from GReD-Clermont/5_12_0
Browse files Browse the repository at this point in the history
5.12.0
  • Loading branch information
ppouchin authored Feb 26, 2023
2 parents c894645 + 72dffc0 commit 2841824
Show file tree
Hide file tree
Showing 53 changed files with 2,985 additions and 2,327 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ List<DatasetWrapper> datasets = client.getDatasets();
These objects can then be used to retrieve their children:

```java
for (DatasetWrapper dataset:datasets) {
for (DatasetWrapper dataset : datasets) {
List<ImageWrapper> images = dataset.getImages(client);
//...
}
Expand All @@ -51,7 +51,7 @@ For each type of objects (project, dataset or image), annotations can be retriev

```java
TagAnnotationWrapper tag = new TagAnnotationWrapper(client, "name", "description");
dataset.addTag(client, tag);
dataset.link(client, tag);
List<TagAnnotationWrapper> tags = dataset.getTags(client);
```

Expand Down Expand Up @@ -101,7 +101,7 @@ ROIs can be added to images or retrieved from them:
ROIWrapper roi = new ROIWrapper();
roi.addShape(new RectangleWrapper(0, 0, 5, 5));
roi.setImage(image);
image.saveROI(client, roi);
image.saveROIs(client, roi);
List<ROIWrapper> rois = image.getROIs(client);
```

Expand All @@ -118,8 +118,8 @@ ROIWrapper roi = new ROIWrapper();
roi.setName("ROI name");
roi.addShape(new RectangleWrapper(0, 0, 5, 5));
List<Roi> imagejRois = roi.toImageJ();
String name = imagejRois.get(0).getProperty(ROI.ijNameProperty(property));
String ID = imagejRois.get(0).getProperty(ROI.ijIDProperty(property));
String name = imagejRois.get(0).getProperty(ROIWrapper.ijNameProperty(property));
String id = imagejRois.get(0).getProperty(ROIWrapper.ijIDProperty(property));

// Conversely ImageJ Rois can be converted to OMERO from ImageJ using "ROIWrapper::fromImageJ"
Roi ijRoi1 = new Roi(1.0, 2.0, 3.0, 4.0);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>fr.igred</groupId>
<artifactId>simple-omero-client</artifactId>
<version>5.11.1</version>
<version>5.12.0</version>
<packaging>jar</packaging>

<name>Simple OMERO Client</name>
Expand Down
Loading

0 comments on commit 2841824

Please sign in to comment.