@@ -147,7 +147,7 @@ public void testMTKTnone() {
147147 }
148148 Img <DoubleType > vImage1 = ArrayImgs .doubles (values1 , values1 .length );
149149 Img <DoubleType > vImage2 = ArrayImgs .doubles (values2 , values2 .length );
150- double result = (Double ) ops . run ( "coloc.maxTKendallTau" , vImage1 , vImage2 );
150+ double result = (Double ) new OpBuilder ( ops , "coloc.maxTKendallTau" ). input ( vImage1 , vImage2 ). apply ( );
151151 assertEquals (4.9E-324 , result , 0.0 );
152152 }
153153
@@ -163,7 +163,7 @@ public void testMTKTall() {
163163 }
164164 Img <DoubleType > vImage1 = ArrayImgs .doubles (values1 , values1 .length );
165165 Img <DoubleType > vImage2 = ArrayImgs .doubles (values2 , values2 .length );
166- double result = (Double ) ops . run ( "coloc.maxTKendallTau" , vImage1 , vImage2 );
166+ double result = (Double ) new OpBuilder ( ops , "coloc.maxTKendallTau" ). input ( vImage1 , vImage2 ). apply ( );
167167 assertEquals (1.0 , result , 0.0 );
168168 }
169169
@@ -177,7 +177,7 @@ public void testMTKTrandom() {
177177 0x01234567 );
178178 Img <FloatType > ch2 = ColocalisationTest .produceMeanBasedNoiseImage (new FloatType (), 24 , 24 , mean , spread , sigma ,
179179 0x98765432 );
180- double result = (Double ) ops . run ( "coloc.maxTKendallTau" , ch1 , ch2 );
180+ double result = (Double ) new OpBuilder ( ops , "coloc.maxTKendallTau" ). input ( ch1 , ch2 ). apply ( );
181181 assertEquals (2.710687382741972 , result , 0.0 );
182182 }
183183
@@ -188,7 +188,7 @@ public void testMTKTimage() {
188188 new long [] { 0 , 0 , 0 }, new long [] { 20 , 20 , 0 });
189189 RandomAccessibleInterval <UnsignedByteType > cropCh2 = Views .interval (zeroCorrelationImageCh2 ,
190190 new long [] { 0 , 0 , 0 }, new long [] { 20 , 20 , 0 });
191- double result = (Double ) ops . run ( "coloc.maxTKendallTau" , cropCh1 , cropCh2 );
191+ double result = (Double ) new OpBuilder ( ops , "coloc.maxTKendallTau" ). input ( cropCh1 , cropCh2 ). apply ( );
192192 assertEquals (2.562373279563565 , result , 0.0 );
193193 }
194194
@@ -210,7 +210,7 @@ public void testMTKTpValueNone() {
210210 BiFunction <RandomAccessibleInterval <DoubleType >, RandomAccessibleInterval <DoubleType >, Double > op =
211211 Functions .match (ops , "coloc.maxTKendallTau" , new Nil <RandomAccessibleInterval <DoubleType >>() {}, new Nil <RandomAccessibleInterval <DoubleType >>() {}, new Nil <Double >() {});
212212 PValueResult value = new PValueResult ();
213- ops . run ( "coloc.pValue" , vImage1 , vImage2 , op , 5 , es , value );
213+ new OpBuilder ( ops , "coloc.pValue" ). input ( vImage1 , vImage2 , op , 5 , es , value ). apply ( );
214214 assertEquals (0.0 , value .getPValue (), 0.0 );
215215 }
216216
@@ -230,7 +230,7 @@ public void testMTKTpValueAll() {
230230 BiFunction <RandomAccessibleInterval <DoubleType >, RandomAccessibleInterval <DoubleType >, Double > op =
231231 Functions .match (ops , "coloc.maxTKendallTau" , new Nil <RandomAccessibleInterval <DoubleType >>() {}, new Nil <RandomAccessibleInterval <DoubleType >>() {}, new Nil <Double >() {});
232232 PValueResult value = new PValueResult ();
233- ops . run ( "coloc.pValue" , vImage1 , vImage2 , op , 5 , es , value );
233+ new OpBuilder ( ops , "coloc.pValue" ). input ( vImage1 , vImage2 , op , 5 , es , value ). apply ( );
234234 assertEquals (0.0 , value .getPValue (), 0.0 );
235235 }
236236
@@ -248,7 +248,7 @@ public void testMTKTpValueRandom() {
248248 BiFunction <RandomAccessibleInterval <FloatType >, RandomAccessibleInterval <FloatType >, Double > op =
249249 Functions .match (ops , "coloc.maxTKendallTau" , new Nil <RandomAccessibleInterval <FloatType >>() {}, new Nil <RandomAccessibleInterval <FloatType >>() {}, new Nil <Double >() {});
250250 PValueResult value = new PValueResult ();
251- ops . run ( "coloc.pValue" , ch1 , ch2 , op , 10 , es , value );
251+ new OpBuilder ( ops , "coloc.pValue" ). input ( ch1 , ch2 , op , 10 , es , value ). apply ( );
252252 assertEquals (0.2 , value .getPValue (), 0.0 );
253253 }
254254
@@ -270,7 +270,7 @@ public void testMTKTpValueImage() {
270270 RandomAccessibleInterval <UnsignedByteType > ch1 = ShuffledView .cropAtMin (cropCh1 , blockSize );
271271 RandomAccessibleInterval <UnsignedByteType > ch2 = ShuffledView .cropAtMin (cropCh2 , blockSize );
272272 PValueResult value = new PValueResult ();
273- ops . run ( "coloc.pValue" , ch1 , ch2 , op , 5 , es , value );
273+ new OpBuilder ( ops , "coloc.pValue" ). input ( ch1 , ch2 , op , 5 , es , value ). apply ( );
274274 assertEquals (0.2 , value .getPValue (), 0.0 );
275275 }
276276}
0 commit comments