@@ -417,9 +417,9 @@ public static < T > ImagePlus wrapUnsignedShort(
417
417
* @param title the name assigned to the resulting {@link ImagePlus}
418
418
* @param service the {@link ExecutorService} used for processing.
419
419
* @return an {@link ImagePlus} wrapping {@code img}
420
- * @see #wrapAndScaleBit (RandomAccessibleInterval, String, ExecutorService) for wrapping with scaling.
420
+ * @see #wrapAndScaleBoolean (RandomAccessibleInterval, String, ExecutorService) for wrapping with scaling.
421
421
*/
422
- public static < B extends BooleanType < B >> ImagePlus wrapBit (
422
+ public static < B extends BooleanType < B >> ImagePlus wrapBoolean (
423
423
final RandomAccessibleInterval < B > img ,
424
424
final String title ,
425
425
final ExecutorService service )
@@ -441,13 +441,13 @@ public static < B extends BooleanType< B >> ImagePlus wrapBit(
441
441
* @param img the {@link RandomAccessibleInterval} to wrap
442
442
* @param title the name assigned to the resulting {@link ImagePlus}
443
443
* @return an {@link ImagePlus} wrapping {@code img}
444
- * @see #wrapAndScaleBit (RandomAccessibleInterval, String) for wrapping with scaling.
444
+ * @see #wrapAndScaleBoolean (RandomAccessibleInterval, String) for wrapping with scaling.
445
445
*/
446
- public static < B extends BooleanType < B >> ImagePlus wrapBit (
446
+ public static < B extends BooleanType < B >> ImagePlus wrapBoolean (
447
447
final RandomAccessibleInterval < B > img ,
448
448
final String title )
449
449
{
450
- return wrapBit ( img , title , null );
450
+ return wrapBoolean ( img , title , null );
451
451
}
452
452
453
453
/**
@@ -463,16 +463,16 @@ public static < B extends BooleanType< B >> ImagePlus wrapBit(
463
463
* @param title the name assigned to the resulting {@link ImagePlus}
464
464
* @param service the {@link ExecutorService} used for processing.
465
465
* @return an {@link ImagePlus} wrapping {@code img}
466
- * @see #wrapBit (RandomAccessibleInterval, String, ExecutorService) for wrapping without scaling.
466
+ * @see #wrapBoolean (RandomAccessibleInterval, String, ExecutorService) for wrapping without scaling.
467
467
*/
468
- public static < B extends BooleanType <B > > ImagePlus wrapAndScaleBit (
468
+ public static < B extends BooleanType <B > > ImagePlus wrapAndScaleBoolean (
469
469
final RandomAccessibleInterval <B > img ,
470
470
final String title ,
471
471
final ExecutorService service )
472
472
{
473
473
return internalWrap ( //
474
474
img , //
475
- ImageJVirtualStackUnsignedByte ::wrapAndScaleBitType , //
475
+ ImageJVirtualStackUnsignedByte ::wrapAndScaleBoolean , //
476
476
title , //
477
477
service //
478
478
);
@@ -490,13 +490,13 @@ public static < B extends BooleanType<B> > ImagePlus wrapAndScaleBit(
490
490
* @param img the {@link RandomAccessibleInterval} to wrap
491
491
* @param title the name assigned to the resulting {@link ImagePlus}
492
492
* @return an {@link ImagePlus} wrapping {@code img}
493
- * @see #wrapBit (RandomAccessibleInterval, String) for wrapping without scaling.
493
+ * @see #wrapBoolean (RandomAccessibleInterval, String) for wrapping without scaling.
494
494
*/
495
- public static < B extends BooleanType <B > > ImagePlus wrapAndScaleBit (
495
+ public static < B extends BooleanType <B > > ImagePlus wrapAndScaleBoolean (
496
496
final RandomAccessibleInterval <B > img ,
497
497
final String title )
498
498
{
499
- return wrapAndScaleBit ( img , title , null );
499
+ return wrapAndScaleBoolean ( img , title , null );
500
500
}
501
501
502
502
private static <T , U extends NativeType <U >> ImagePlus internalWrap (
@@ -568,9 +568,9 @@ public static ImagePlus wrapVirtualStack(final RandomAccessibleInterval< ? > rai
568
568
* @return an {@link ImagePlus} wrapping {@code rai}
569
569
* @see ArrayImgToImagePlus
570
570
*/
571
- public static ImagePlus wrapVirtualStackAndScaleBitType (final RandomAccessibleInterval < BitType > rai , final String title )
571
+ public static < B extends BooleanType < B >> ImagePlus wrapVirtualStackAndScaleBooleanType (final RandomAccessibleInterval < B > rai , final String title )
572
572
{
573
- return wrapVirtualStack ( rai , title , RAIToImagePlus ::createVirtualStackBits );
573
+ return wrapVirtualStack ( rai , title , RAIToImagePlus ::createVirtualStackBools );
574
574
}
575
575
576
576
private static < T > ImagePlus wrapVirtualStack (RandomAccessibleInterval < T > rai , final String title , final Function < RandomAccessibleInterval < T >, ImageJVirtualStack <?>> imageStackWrapper )
@@ -582,9 +582,9 @@ private static < T > ImagePlus wrapVirtualStack(RandomAccessibleInterval< T > ra
582
582
return result ;
583
583
}
584
584
585
- private static ImageJVirtualStack <?> createVirtualStackBits (final RandomAccessibleInterval < BitType > sorted )
585
+ private static < B extends BooleanType < B >> ImageJVirtualStack <?> createVirtualStackBools (final RandomAccessibleInterval < B > sorted )
586
586
{
587
- return ImageJVirtualStackUnsignedByte .wrapAndScaleBitType ( sorted );
587
+ return ImageJVirtualStackUnsignedByte .wrapAndScaleBoolean ( sorted );
588
588
}
589
589
590
590
private static ImageJVirtualStack <?> createVirtualStack (final RandomAccessibleInterval < ? > rai )
0 commit comments