3030
3131import static org .junit .Assert .assertEquals ;
3232
33- import net .imagej .ops .Ops ;
3433import net .imagej .ops .features .AbstractFeatureTest ;
3534import net .imglib2 .img .Img ;
3635import net .imglib2 .img .array .ArrayImgs ;
@@ -50,27 +49,27 @@ public class Tamura2dFeatureTest extends AbstractFeatureTest {
5049
5150 @ Test
5251 public void testContrastFeature () {
53- assertEquals (Ops . Tamura . Contrast . NAME , 63.7185 , ((RealType <?>) ops .run (
52+ assertEquals ("tamura.contrast" , 63.7185 , ((RealType <?>) ops .run (
5453 "features.tamura.contrast" , random )).getRealDouble (), 1e-3 );
5554 }
5655
5756 @ Test
5857 public void testDirectionalityFeature () {
59- assertEquals (Ops . Tamura . Directionality . NAME , 0.007819 , ((RealType <?>) ops
58+ assertEquals ("tamura.directionality" , 0.007819 , ((RealType <?>) ops
6059 .run ("features.tamura.directionality" , random , 16 )).getRealDouble (),
6160 1e-3 );
6261 }
6362
6463 @ Test
6564 public void testCoarsenessFeature () {
66- assertEquals (Ops . Tamura . Coarseness . NAME , 43.614 , ((RealType <?>) ops .run (
65+ assertEquals ("tamura.coarseness" , 43.614 , ((RealType <?>) ops .run (
6766 "features.tamura.coarseness" , random )).getRealDouble (), 1e-3 );
6867
6968 // NB: according to the implementation, this 2x2 image should have exactly 0
7069 // coarseness.
7170 byte [] arr = new byte [] {0 , -1 , 0 , 0 };
7271 Img <ByteType > in = ArrayImgs .bytes (arr , 2 , 2 );
73- assertEquals (Ops . Tamura . Coarseness . NAME , 0.0 , ((RealType <?>) ops .run (
72+ assertEquals ("tamura.coarseness" , 0.0 , ((RealType <?>) ops .run (
7473 "features.tamura.coarseness" , in )).getRealDouble (), 0.0 );
7574 }
7675
0 commit comments