@@ -177,6 +177,16 @@ public < O extends RealType< O > > RandomAccessibleInterval< O > into(
177
177
return into ( target , inConverter , target .randomAccess ().get ().createVariable (), null );
178
178
}
179
179
180
+ public < O extends RealType < O >, C extends RealType < C > > RandomAccessibleInterval < O > into (
181
+ final RandomAccessibleInterval < O > target ,
182
+ Converter < RealType < ? >, C > inConverter ,
183
+ final C computingType ,
184
+ Converter < C , O > outConverter
185
+ )
186
+ {
187
+ return into ( target , inConverter , computingType , outConverter , false );
188
+ }
189
+
180
190
/**
181
191
* Execute the mathematical operations and store the result into the given {@code RandomAccessibleInterval}.
182
192
* Takes into account whether all images involved in the computation are iterable in a compatible way.
@@ -197,6 +207,8 @@ public < O extends RealType< O > > RandomAccessibleInterval< O > into(
197
207
* when the {@code computingType} equal the {@code Type} of the {@code target}, and a generic
198
208
* {@code RealType} converter that uses floating-point values (with {@code RealType#setReal(double)})
199
209
* created with {@code Util#genericRealTypeConverter()} is used.
210
+ *
211
+ * @param printHierarchy Emits to stdout the hierarchy of {@code OFunction} types.
200
212
*
201
213
* @return The {@code target}.
202
214
*/
@@ -205,7 +217,8 @@ public < O extends RealType< O >, C extends RealType< C > > RandomAccessibleInte
205
217
final RandomAccessibleInterval < O > target ,
206
218
Converter < RealType < ? >, C > inConverter ,
207
219
final C computingType ,
208
- Converter < C , O > outConverter
220
+ Converter < C , O > outConverter ,
221
+ final boolean printHierarchy
209
222
)
210
223
{
211
224
if ( null == inConverter )
@@ -222,6 +235,9 @@ public < O extends RealType< O >, C extends RealType< C > > RandomAccessibleInte
222
235
new HashMap < String , LetBinding < C > >(),
223
236
inConverter , null );
224
237
238
+ if ( printHierarchy )
239
+ System .out .println ( Util .hierarchy ( f ) );
240
+
225
241
if ( are_same_type )
226
242
{
227
243
// Skip outputConverter: same type
0 commit comments