Skip to content

Commit 82dcba8

Browse files
committed
Merge branch 'master' into local-extrema-rebase
2 parents 7f6e4ef + fbbc38e commit 82dcba8

File tree

75 files changed

+5203
-440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+5203
-440
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ branches:
44
only: master
55
install: true
66
script: ".travis/build.sh"
7-
after_success: ".travis/notify.sh Travis-Success"
8-
after_failure: ".travis/notify.sh Travis-Failure"
97
env:
108
global:
119
- secure: jGhSqptdMbp00X5BIRqkkHAS5S0ANgvPYZXJY9SEQa4Mdty69vaQk9kmvMdzFUNum0OeevQ1Vh4OFLel6wUaxDpArcVhjyhBvMVErHnWKeR1wnX13JIrZ4A/+UUVRAtP8p7O6vtNI0G5TyV2PcXdrP4a6I08v8BxAbsZOgqHvQ0=

.travis/build.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/sh
22
dir="$(dirname "$0")"
3-
test "$TRAVIS_SECURE_ENV_VARS" = true \
3+
if [ "$TRAVIS_SECURE_ENV_VARS" = true \
44
-a "$TRAVIS_PULL_REQUEST" = false \
5-
-a "$TRAVIS_BRANCH" = master &&
6-
mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml" ||
5+
-a "$TRAVIS_BRANCH" = master ]
6+
then
7+
mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml"
8+
else
79
mvn install
10+
fi

.travis/notify.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

pom.xml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
<relativePath />
1010
</parent>
1111

12-
<groupId>net.imglib2</groupId>
1312
<artifactId>imglib2-algorithm</artifactId>
14-
<version>0.6.4-SNAPSHOT</version>
13+
<version>0.8.2-SNAPSHOT</version>
1514

1615
<name>ImgLib2 Algorithms</name>
1716
<description>Useful image processing algorithms.</description>
@@ -189,13 +188,16 @@ Aivar Grislis, Jonathan Hale, Grant Harris, Stefan Helfrich, Mark Hiner,
189188
Martin Horn, Steffen Jaensch, Lee Kamentsky, Larry Lindsey, Melissa Linkert,
190189
Mark Longair, Brian Northan, Nick Perry, Curtis Rueden, Johannes Schindelin,
191190
Jean-Yves Tinevez and Michael Zinsmaier.</license.copyrightOwners>
191+
192+
<imglib2-realtransform.version>2.0.0-beta-38</imglib2-realtransform.version>
193+
<jitk-tps.version>3.0.0</jitk-tps.version>
192194
</properties>
193195

194196
<repositories>
195197
<!-- NB: for SciJava dependencies -->
196198
<repository>
197199
<id>imagej.public</id>
198-
<url>http://maven.imagej.net/content/groups/public</url>
200+
<url>https://maven.imagej.net/content/groups/public</url>
199201
</repository>
200202
</repositories>
201203

@@ -230,6 +232,11 @@ Jean-Yves Tinevez and Michael Zinsmaier.</license.copyrightOwners>
230232
<artifactId>trove4j</artifactId>
231233
<version>3.0.3</version>
232234
</dependency>
235+
<dependency>
236+
<groupId>org.ojalgo</groupId>
237+
<artifactId>ojalgo</artifactId>
238+
<version>43.0</version>
239+
</dependency>
233240

234241
<!-- Test dependencies -->
235242
<dependency>
@@ -238,4 +245,15 @@ Jean-Yves Tinevez and Michael Zinsmaier.</license.copyrightOwners>
238245
<scope>test</scope>
239246
</dependency>
240247
</dependencies>
248+
249+
<build>
250+
<plugins>
251+
<plugin>
252+
<artifactId>maven-javadoc-plugin</artifactId>
253+
<configuration>
254+
<additionalparam>--allow-script-in-comments -header '&lt;script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalparam>
255+
</configuration>
256+
</plugin>
257+
</plugins>
258+
</build>
241259
</project>

src/main/java/net/imglib2/algorithm/OutputAlgorithm.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
package net.imglib2.algorithm;
3636

3737
/**
38-
* TODO This interface should be empty and extend Callable<F>, Algorithm.
38+
* TODO This interface should be empty and extend {@code Callable<F>},
39+
* {@link Algorithm}.
3940
*
4041
* @author Stephan Preibisch
4142
* @author Stephan Saalfeld

src/main/java/net/imglib2/algorithm/binary/Thresholder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public class Thresholder
6464
* @param threshold
6565
* the threshold.
6666
* @param above
67-
* if <code>true</code>, the target value will be true for source
68-
* values above the threshold, <code>false</code> otherwise.
67+
* if {@code true}, the target value will be true for source
68+
* values above the threshold, {@code false} otherwise.
6969
* @param numThreads
7070
* the number of threads to use for thresholding.
7171
* @return a new {@link Img} of type {@link BitType} and of same dimension

src/main/java/net/imglib2/algorithm/componenttree/BuildComponentTree.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,21 @@
5252

5353
/**
5454
* Build the component tree of an image. This is an implementation of the
55-
* algorithm described by D. Nister and H. Stewenius in
56-
* "Linear Time Maximally Stable Extremal Regions" (ECCV 2008).
57-
*
58-
* The input to the algorithm is a RandomAccessibleInterval< T >. Further, a
59-
* Comparator<T> and a {@link PartialComponent.Generator} to instantiate new
60-
* components are required. Pixel locations are aggregated in
55+
* algorithm described by D. Nister and H. Stewenius in "Linear Time Maximally
56+
* Stable Extremal Regions" (ECCV 2008).
57+
* <p>
58+
* The input to the algorithm is a {@code RandomAccessibleInterval< T >}.
59+
* Further, a {@code Comparator<T>} and a {@link PartialComponent.Generator} to
60+
* instantiate new components are required. Pixel locations are aggregated in
6161
* {@link PartialComponent}s which are passed to a
6262
* {@link PartialComponent.Handler} whenever a connected component for a
6363
* specific threshold is completed.
64-
*
64+
* </p>
65+
* <p>
6566
* Building up a tree structure out of the completed components should happen in
6667
* the {@link PartialComponent.Handler} implementation. See
6768
* {@link PixelListComponentTree} for an example.
68-
*
69+
* </p>
6970
* <p>
7071
* <strong>TODO</strong> Add support for non-zero-min RandomAccessibleIntervals.
7172
* (Currently, we assume that the input image is a <em>zero-min</em> interval.)

src/main/java/net/imglib2/algorithm/componenttree/mser/ComputeDelta.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
/**
3838
* For a given threshold value compute the threshold value delta steps down the
3939
* component tree. This might mean addition or subtraction, depending on whether
40-
* it's a dark-to-bright or bright-to-dark pass. {@see ComputeDeltaBrightToDark}
41-
* {@see ComputeDeltaDarkToBright}
40+
* it's a dark-to-bright or bright-to-dark pass.
41+
*
42+
* @see ComputeDeltaBrightToDark
43+
* @see ComputeDeltaDarkToBright
4244
*
4345
* @param <T>
4446
* value type of the input image.

src/main/java/net/imglib2/algorithm/componenttree/mser/MserTree.java

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,10 @@
6565
* Maximally Stable Extremal Regions (MSER) are selected from the component tree
6666
* as follows. For each component, an instability score is computed as
6767
* <!-- |R_i - R_{i-\Delta}| / |R_i| -->
68-
* <math style="display:block">
69-
* <mi>s</mi><mfenced><msub><mi>R</mi><mi>i</mi></msub></mfenced>
70-
* <mo>=</mo>
71-
* <mfrac>
72-
* <mfenced open="|" close="|">
73-
* <mrow><msub><mi>R</mi><mi>i</mi></msub>
74-
* <mo lspace=mediummathspace rspace=mediummathspace>\</mo>
75-
* <msub><mi>R</mi><mrow><mi>i</mi><mo>-</mo><mi>&Delta;</mi></mrow></msub>
76-
* </mrow>
77-
* </mfenced>
78-
* <mfenced open="|" close="|">
79-
* <msub><mi>R</mi><mi>i</mi></msub>
80-
* </mfenced>
81-
* </mfrac>
82-
* </math>
8368
* </p>
84-
*
69+
* <blockquote>
70+
* \[\frac{|R_i - R_{i-\Delta}|}{|R_i|}\]
71+
* </blockquote>
8572
* <p>
8673
* Regions whose score is a local minimum are selected as MSER candidates.
8774
* </p>
@@ -96,20 +83,10 @@
9683
* A tree is build of the remaining candidates. Finally, candidates are pruned
9784
* from the tree, if they are too similar to their parent: Let <em>A</em>,
9885
* <em>B</em> be a region and its parent. Then <em>A</em> is discarded if
99-
* <!-- |B - A| / |B| <= minDiversity -->
100-
* <math style="display:block">
101-
* <mfrac>
102-
* <mfenced open="|" close="|"><mrow>
103-
* <mi>B</mi>
104-
* <mo lspace=mediummathspace rspace=mediummathspace>\</mo>
105-
* <mi>A</mi>
106-
* </mrow></mfenced>
107-
* <mfenced open="|" close="|"><mi>B</mi></mfenced>
108-
* </mfrac>
109-
* <mo>&le;</mo><mi>minDiversity</mi>
110-
* </math>
11186
* </p>
112-
*
87+
* <blockquote>
88+
* \[\frac{|B - A|}{|B|} \leq minDiversity\]
89+
* </blockquote>
11390
* <p>
11491
* <strong>TODO</strong> Add support for non-zero-min RandomAccessibleIntervals.
11592
* (Currently, we assume that the input image is a <em>zero-min</em> interval.)

src/main/java/net/imglib2/algorithm/componenttree/pixellist/PixelListComponentTree.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public static < T extends RealType< T > > PixelListComponentTree< T > buildCompo
9797
* @param type
9898
* a variable of the input image type.
9999
* @param imgFactory
100-
* used for creating the {@link PixelList} image {@see
101-
* PixelListComponentGenerator}.
100+
* used for creating the {@link PixelList} image (see
101+
* {@link PixelListPartialComponentGenerator}).
102102
* @param darkToBright
103103
* whether to apply thresholds from dark to bright (true) or
104104
* bright to dark (false)
@@ -146,8 +146,8 @@ public static < T extends Type< T > > PixelListComponentTree< T > buildComponent
146146
* @param comparator
147147
* determines ordering of threshold values.
148148
* @param imgFactory
149-
* used for creating the {@link PixelList} image {@see
150-
* PixelListComponentGenerator}.
149+
* used for creating the {@link PixelList} image
150+
* {@link PixelListPartialComponentGenerator}.
151151
* @return component tree of the image.
152152
*/
153153
public static < T extends Type< T > > PixelListComponentTree< T > buildComponentTree( final RandomAccessibleInterval< T > input, final T maxValue, final Comparator< T > comparator, final ImgFactory< LongType > imgFactory )

0 commit comments

Comments
 (0)