@@ -738,7 +738,7 @@ public static < B extends BooleanType< B >, U extends RealType< U >, V extends R
738738 final DISTANCE_TYPE distanceType ,
739739 final double ... weights )
740740 {
741- final U maxVal = tmp .getType ().copy ();
741+ final U maxVal = tmp .getType ().createVariable ();
742742 maxVal .setReal ( maxVal .getMaxValue () );
743743 final Converter < B , U > converter = new BinaryMaskToCost <>( maxVal );
744744 final RandomAccessible < U > converted = Converters .convert ( source , converter , maxVal .createVariable () );
@@ -792,7 +792,7 @@ public static < B extends BooleanType< B >, U extends RealType< U >, V extends R
792792 final int nTasks ,
793793 final double ... weights ) throws InterruptedException , ExecutionException
794794 {
795- final U maxVal = tmp .getType ().copy ();
795+ final U maxVal = tmp .getType ().createVariable ();
796796 maxVal .setReal ( maxVal .getMaxValue () );
797797 final Converter < B , U > converter = new BinaryMaskToCost <>( maxVal );
798798 final RandomAccessible < U > converted = Converters .convert ( source , converter , maxVal .createVariable () );
@@ -919,7 +919,7 @@ public static < B extends BooleanType< B >, U extends RealType< U >, V extends R
919919 final RandomAccessibleInterval < V > target ,
920920 final Distance d )
921921 {
922- final U maxVal = tmp .getType ().copy ();
922+ final U maxVal = tmp .getType ().createVariable ();
923923 maxVal .setReal ( maxVal .getMaxValue () );
924924 final Converter < B , U > converter = new BinaryMaskToCost <>( maxVal );
925925 final RandomAccessible < U > converted = Converters .convert ( source , converter , maxVal .createVariable () );
@@ -966,7 +966,7 @@ public static < B extends BooleanType< B >, U extends RealType< U >, V extends R
966966 final ExecutorService es ,
967967 final int nTasks ) throws InterruptedException , ExecutionException
968968 {
969- final U maxVal = tmp .getType ().copy ();
969+ final U maxVal = tmp .getType ().createVariable ();
970970 maxVal .setReal ( maxVal .getMaxValue () );
971971 final Converter < B , U > converter = new BinaryMaskToCost <>( maxVal );
972972 final RandomAccessible < U > converted = Converters .convert ( source , converter , maxVal .createVariable () );
0 commit comments