Skip to content

Commit 27102b1

Browse files
gselzerctrueden
authored andcommitted
Fix lbp2d test
TODO: sqash into original lbp2d commit
1 parent 3cd6ab9 commit 27102b1

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/test/java/net/imagej/ops/features/lbp2d/LBP2dFeatureTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
import java.util.ArrayList;
3434

35-
import net.imagej.ops.Ops;
3635
import net.imagej.ops.features.AbstractFeatureTest;
3736
import net.imglib2.type.numeric.integer.LongType;
3837

@@ -54,10 +53,10 @@ public void testLbp2d() {
5453
"features.lbp2d", random, 1, 4);
5554

5655
// Test values proved by calculating small toy example by hand.
57-
assertEquals(Ops.LBP.LBP2D.NAME, 5412.0, hist.get(0).getRealDouble(), 1e-3);
58-
assertEquals(Ops.LBP.LBP2D.NAME, 0.0, hist.get(1).getRealDouble(), 1e-3);
59-
assertEquals(Ops.LBP.LBP2D.NAME, 4251.0, hist.get(2).getRealDouble(), 1e-3);
60-
assertEquals(Ops.LBP.LBP2D.NAME, 337.0, hist.get(3).getRealDouble(), 1e-3);
56+
assertEquals("features.lbp2d", 5412.0, hist.get(0).getRealDouble(), 1e-3);
57+
assertEquals("features.lbp2d", 0.0, hist.get(1).getRealDouble(), 1e-3);
58+
assertEquals("features.lbp2d", 4251.0, hist.get(2).getRealDouble(), 1e-3);
59+
assertEquals("features.lbp2d", 337.0, hist.get(3).getRealDouble(), 1e-3);
6160

6261
}
6362

0 commit comments

Comments
 (0)