Skip to content

Commit 269bb5a

Browse files
authored
Merge pull request #1 from GReD-Clermont/fix-crop
Fix crop and improve library
2 parents d752973 + 1b271d7 commit 269bb5a

16 files changed

Lines changed: 2818 additions & 3324 deletions

.omeroci/test-data

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,32 @@ omero obj new ProjectDatasetLink parent=$PROJECT1 child=$DATASET2
3939
omero obj new ProjectDatasetLink parent=$PROJECT2 child=$DATASET3
4040

4141

42-
touch "$WORKDIR/8bit-unsigned&pixelType=uint8&sizeZ=3&sizeC=5&sizeT=7&sizeX=512&sizeY=512.fake"
43-
IMAGE1=$(omero import --output=ids "$WORKDIR/8bit-unsigned&pixelType=uint8&sizeZ=3&sizeC=5&sizeT=7&sizeX=512&sizeY=512.fake" -T Dataset:id:1)
44-
IMAGE2=$(omero import --output=ids "$WORKDIR/8bit-unsigned&pixelType=uint8&sizeZ=3&sizeC=5&sizeT=7&sizeX=512&sizeY=512.fake" -T Dataset:id:1)
45-
touch "$WORKDIR/8bit-unsigned&pixelType=uint8&sizeZ=2&sizeC=5&sizeT=7&sizeX=512&sizeY=512.fake"
46-
IMAGE3=$(omero import --output=ids "$WORKDIR/8bit-unsigned&pixelType=uint8&sizeZ=2&sizeC=5&sizeT=7&sizeX=512&sizeY=512.fake" -T Dataset:id:1)
47-
IMAGE4=$(omero import --output=ids "$WORKDIR/8bit-unsigned&pixelType=uint8&sizeZ=3&sizeC=5&sizeT=7&sizeX=512&sizeY=512.fake" -T Dataset:id:3)
42+
touch "$WORKDIR/image1.fake"
43+
echo "pixelType=uint8" >> $WORKDIR/image1.fake.ini
44+
echo "sizeX=512" >> $WORKDIR/image1.fake.ini
45+
echo "sizeY=512" >> $WORKDIR/image1.fake.ini
46+
echo "sizeZ=3" >> $WORKDIR/image1.fake.ini
47+
echo "sizeC=5" >> $WORKDIR/image1.fake.ini
48+
echo "sizeT=7" >> $WORKDIR/image1.fake.ini
49+
echo "physicalSizeX=0.5µm" >> $WORKDIR/image1.fake.ini
50+
echo "physicalSizeY=0.5µm" >> $WORKDIR/image1.fake.ini
51+
echo "physicalSizeZ=1µm" >> $WORKDIR/image1.fake.ini
52+
53+
touch "$WORKDIR/image2.fake"
54+
echo "pixelType=uint8" >> $WORKDIR/image2.fake.ini
55+
echo "sizeX=512" >> $WORKDIR/image2.fake.ini
56+
echo "sizeY=512" >> $WORKDIR/image2.fake.ini
57+
echo "sizeZ=2" >> $WORKDIR/image2.fake.ini
58+
echo "sizeC=5" >> $WORKDIR/image2.fake.ini
59+
echo "sizeT=7" >> $WORKDIR/image2.fake.ini
60+
echo "physicalSizeX=1µm" >> $WORKDIR/image2.fake.ini
61+
echo "physicalSizeY=1µm" >> $WORKDIR/image2.fake.ini
62+
echo "physicalSizeZ=2µm" >> $WORKDIR/image2.fake.ini
63+
64+
IMAGE1=$(omero import --output=ids "$WORKDIR/image1.fake" -T Dataset:id:1)
65+
IMAGE2=$(omero import --output=ids "$WORKDIR/image1.fake" -T Dataset:id:1)
66+
IMAGE3=$(omero import --output=ids "$WORKDIR/image2.fake" -T Dataset:id:1)
67+
IMAGE4=$(omero import --output=ids "$WORKDIR/image1.fake" -T Dataset:id:3)
4868

4969
TAG1=$(omero obj new TagAnnotation textValue=tag1 description=description)
5070
TAG2=$(omero obj new TagAnnotation textValue=tag2)

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ before_install:
2020
- git clone --recurse-submodules git://github.com/openmicroscopy/omero-test-infra .omero
2121
- export DOCKER_ARGS="-v $HOME/.m2:/root/.m2 -v $(pwd)/target:/src/target"
2222
- cp .travis.settings.xml $HOME/.m2/settings.xml
23+
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
2324

2425
after_success:
2526
- bash <(curl -s https://codecov.io/bash)

pom.xml

Lines changed: 192 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,140 +1,198 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
<groupId>fr.igred</groupId>
5-
<artifactId>simple-omero-client</artifactId>
6-
<packaging>jar</packaging>
7-
<version>5.6.1</version>
8-
<name>omero</name>
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>fr.igred</groupId>
5+
<artifactId>simple-omero-client</artifactId>
6+
<packaging>jar</packaging>
7+
<version>5.6.2</version>
8+
<name>omero</name>
99

10-
<dependencies>
11-
<!-- https://mvnrepository.com/artifact/junit/junit -->
12-
<dependency>
13-
<groupId>junit</groupId>
14-
<artifactId>junit</artifactId>
15-
<version>4.13</version>
16-
<scope>test</scope>
17-
</dependency>
18-
<dependency>
19-
<groupId>org.openmicroscopy</groupId>
20-
<artifactId>omero-gateway</artifactId>
21-
<version>5.6.5</version>
22-
</dependency>
23-
<!-- https://mvnrepository.com/artifact/ome/pom-bio-formats -->
24-
<dependency>
25-
<groupId>ome</groupId>
26-
<artifactId>pom-bio-formats</artifactId>
27-
<version>6.6.0</version>
28-
<type>pom</type>
29-
</dependency>
30-
<dependency>
31-
<groupId>net.imagej</groupId>
32-
<artifactId>ij</artifactId>
33-
<version>1.51n</version>
34-
<optional>true</optional>
35-
</dependency>
36-
</dependencies>
10+
<dependencies>
11+
<dependency>
12+
<groupId>junit</groupId>
13+
<artifactId>junit</artifactId>
14+
<version>4.13</version>
15+
<scope>test</scope>
16+
</dependency>
17+
<dependency>
18+
<groupId>org.openmicroscopy</groupId>
19+
<artifactId>omero-gateway</artifactId>
20+
<version>5.6.5</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.openmicroscopy</groupId>
24+
<artifactId>omero-blitz</artifactId>
25+
<version>5.5.8</version>
26+
<exclusions>
27+
<exclusion>
28+
<groupId>org.springframework</groupId>
29+
<artifactId>*</artifactId>
30+
</exclusion>
31+
<exclusion>
32+
<groupId>org.springframework.security</groupId>
33+
<artifactId>*</artifactId>
34+
</exclusion>
35+
<exclusion>
36+
<groupId>org.apache.xmlgraphics</groupId>
37+
<artifactId>*</artifactId>
38+
</exclusion>
39+
<exclusion>
40+
<groupId>org.apache.httpcomponents</groupId>
41+
<artifactId>*</artifactId>
42+
</exclusion>
43+
<exclusion>
44+
<groupId>org.apache.pdfbox</groupId>
45+
<artifactId>*</artifactId>
46+
</exclusion>
47+
<exclusion>
48+
<groupId>org.postgresql</groupId>
49+
<artifactId>*</artifactId>
50+
</exclusion>
51+
<exclusion>
52+
<groupId>org.hibernate</groupId>
53+
<artifactId>*</artifactId>
54+
</exclusion>
55+
<exclusion>
56+
<groupId>com.codahale.metrics</groupId>
57+
<artifactId>*</artifactId>
58+
</exclusion>
59+
</exclusions>
60+
</dependency>
61+
<dependency>
62+
<groupId>org.openmicroscopy</groupId>
63+
<artifactId>ome-common</artifactId>
64+
<version>6.0.6</version>
65+
</dependency>
66+
<dependency>
67+
<groupId>ome</groupId>
68+
<artifactId>formats-api</artifactId>
69+
<version>6.6.0</version>
70+
</dependency>
71+
<dependency>
72+
<groupId>commons-io</groupId>
73+
<artifactId>commons-io</artifactId>
74+
<version>1.4</version>
75+
</dependency>
76+
<dependency>
77+
<groupId>ome</groupId>
78+
<artifactId>bio-formats_plugins</artifactId>
79+
<version>6.6.0</version>
80+
<scope>test</scope>
81+
</dependency>
82+
<dependency>
83+
<groupId>net.imagej</groupId>
84+
<artifactId>ij</artifactId>
85+
<version>1.51n</version>
86+
<optional>true</optional>
87+
</dependency>
88+
</dependencies>
3789

38-
<repositories>
39-
<repository>
40-
<id>ome.maven</id>
41-
<url>https://artifacts.openmicroscopy.org/artifactory/maven/</url>
42-
</repository>
43-
<repository>
44-
<id>imagej.public</id>
45-
<url>http://maven.imagej.net/content/groups/public</url>
46-
</repository>
47-
</repositories>
90+
<repositories>
91+
<repository>
92+
<id>ome.maven</id>
93+
<url>https://artifacts.openmicroscopy.org/artifactory/maven/</url>
94+
</repository>
95+
<repository>
96+
<id>imagej.public</id>
97+
<url>http://maven.imagej.net/content/groups/public</url>
98+
</repository>
99+
</repositories>
48100

49-
<build>
50-
<plugins>
51-
<plugin>
52-
<artifactId>maven-assembly-plugin</artifactId>
53-
<executions>
54-
<execution>
55-
<phase>package</phase>
56-
<goals>
57-
<goal>single</goal>
58-
</goals>
59-
</execution>
60-
</executions>
61-
<configuration>
62-
<descriptorRefs>
63-
<descriptorRef>jar-with-dependencies</descriptorRef>
64-
</descriptorRefs>
65-
</configuration>
66-
</plugin>
67-
<plugin>
68-
<groupId>org.jacoco</groupId>
69-
<artifactId>jacoco-maven-plugin</artifactId>
70-
<version>0.8.6</version>
71-
<executions>
72-
<execution>
73-
<goals>
74-
<goal>prepare-agent</goal>
75-
</goals>
76-
</execution>
77-
<execution>
78-
<id>report</id>
79-
<phase>test</phase>
80-
<goals>
81-
<goal>report</goal>
82-
</goals>
83-
</execution>
84-
</executions>
85-
</plugin>
86-
<plugin>
87-
<groupId>org.apache.maven.plugins</groupId>
88-
<artifactId>maven-site-plugin</artifactId>
89-
<version>3.7.1</version>
90-
</plugin>
91-
<plugin>
92-
<groupId>org.apache.maven.plugins</groupId>
93-
<artifactId>maven-project-info-reports-plugin</artifactId>
94-
<version>3.0.0</version>
95-
</plugin>
96-
<plugin>
97-
<groupId>org.apache.maven.plugins</groupId>
98-
<artifactId>maven-source-plugin</artifactId>
99-
<executions>
100-
<execution>
101-
<id>attach-sources</id>
102-
<goals>
103-
<goal>jar</goal>
104-
</goals>
105-
</execution>
106-
</executions>
107-
</plugin>
108-
<plugin>
109-
<groupId>org.apache.maven.plugins</groupId>
110-
<artifactId>maven-javadoc-plugin</artifactId>
111-
<executions>
112-
<execution>
113-
<id>attach-javadocs</id>
114-
<goals>
115-
<goal>jar</goal>
116-
</goals>
117-
</execution>
118-
</executions>
119-
</plugin>
120-
</plugins>
121-
</build>
101+
<build>
102+
<plugins>
103+
<plugin>
104+
<artifactId>maven-assembly-plugin</artifactId>
105+
<executions>
106+
<execution>
107+
<phase>package</phase>
108+
<goals>
109+
<goal>single</goal>
110+
</goals>
111+
</execution>
112+
</executions>
113+
<configuration>
114+
<descriptorRefs>
115+
<descriptorRef>jar-with-dependencies</descriptorRef>
116+
</descriptorRefs>
117+
</configuration>
118+
</plugin>
119+
<plugin>
120+
<groupId>org.jacoco</groupId>
121+
<artifactId>jacoco-maven-plugin</artifactId>
122+
<version>0.8.6</version>
123+
<executions>
124+
<execution>
125+
<goals>
126+
<goal>prepare-agent</goal>
127+
</goals>
128+
</execution>
129+
<execution>
130+
<id>report</id>
131+
<phase>test</phase>
132+
<goals>
133+
<goal>report</goal>
134+
</goals>
135+
</execution>
136+
</executions>
137+
</plugin>
138+
<plugin>
139+
<groupId>org.apache.maven.plugins</groupId>
140+
<artifactId>maven-site-plugin</artifactId>
141+
<version>3.7.1</version>
142+
</plugin>
143+
<plugin>
144+
<groupId>org.apache.maven.plugins</groupId>
145+
<artifactId>maven-project-info-reports-plugin</artifactId>
146+
<version>3.0.0</version>
147+
</plugin>
148+
<plugin>
149+
<groupId>org.apache.maven.plugins</groupId>
150+
<artifactId>maven-source-plugin</artifactId>
151+
<version>3.2.1</version>
152+
<executions>
153+
<execution>
154+
<id>attach-sources</id>
155+
<goals>
156+
<goal>jar</goal>
157+
</goals>
158+
</execution>
159+
</executions>
160+
</plugin>
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-javadoc-plugin</artifactId>
164+
<version>3.2.0</version>
165+
<executions>
166+
<execution>
167+
<id>attach-javadocs</id>
168+
<goals>
169+
<goal>jar</goal>
170+
</goals>
171+
</execution>
172+
</executions>
173+
</plugin>
174+
</plugins>
175+
</build>
122176

123-
<reporting>
124-
<plugins>
125-
<plugin>
126-
<groupId>org.apache.maven.plugins</groupId>
127-
<artifactId>maven-javadoc-plugin</artifactId>
128-
<version>3.2.0</version>
129-
<configuration></configuration>
130-
</plugin>
131-
</plugins>
132-
</reporting>
133-
<distributionManagement>
134-
<repository>
135-
<id>github</id>
136-
<name>GitHub GReD-Clermont Apache Maven Packages</name>
137-
<url>https://maven.pkg.github.com/GReD-Clermont/simple-omero-client</url>
138-
</repository>
139-
</distributionManagement>
177+
<reporting>
178+
<plugins>
179+
<plugin>
180+
<groupId>org.apache.maven.plugins</groupId>
181+
<artifactId>maven-javadoc-plugin</artifactId>
182+
<version>3.2.0</version>
183+
</plugin>
184+
</plugins>
185+
</reporting>
186+
<distributionManagement>
187+
<repository>
188+
<id>github</id>
189+
<name>GitHub GReD-Clermont Apache Maven Packages</name>
190+
<url>https://maven.pkg.github.com/GReD-Clermont/simple-omero-client</url>
191+
</repository>
192+
</distributionManagement>
193+
<properties>
194+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
195+
<maven.compiler.source>8</maven.compiler.source>
196+
<maven.compiler.target>8</maven.compiler.target>
197+
</properties>
140198
</project>

0 commit comments

Comments
 (0)