@@ -87,7 +87,7 @@ public class Erosion
87
87
* sub-type of {@code T extends RealType}.
88
88
* @return a new {@link Img}, of same dimensions than the source.
89
89
*/
90
- public static < T extends RealType < T > > Img < T > erode ( final Img < T > source , final List < Shape > strels , final int numThreads )
90
+ public static < T extends RealType < T > > Img < T > erode ( final Img < T > source , final List < ? extends Shape > strels , final int numThreads )
91
91
{
92
92
Img < T > target = source ;
93
93
for ( final Shape strel : strels )
@@ -138,7 +138,7 @@ public static < T extends RealType< T > > Img< T > erode( final Img< T > source,
138
138
* sub-type of {@code T extends Comparable & Type}.
139
139
* @return a new {@link Img}, of same dimensions than the source.
140
140
*/
141
- public static < T extends Type < T > & Comparable < T > > Img < T > erode ( final Img < T > source , final List < Shape > strels , final T maxVal , final int numThreads )
141
+ public static < T extends Type < T > & Comparable < T > > Img < T > erode ( final Img < T > source , final List < ? extends Shape > strels , final T maxVal , final int numThreads )
142
142
{
143
143
Img < T > target = source ;
144
144
for ( final Shape strel : strels )
@@ -260,7 +260,7 @@ public static < T extends Type< T > & Comparable< T > > Img< T > erode( final Im
260
260
* @param numThreads
261
261
* the number of threads to use for the calculation.
262
262
*/
263
- public static < T extends RealType < T >> void erode ( final RandomAccessible < T > source , final IterableInterval < T > target , final List < Shape > strels , final int numThreads )
263
+ public static < T extends RealType < T >> void erode ( final RandomAccessible < T > source , final IterableInterval < T > target , final List < ? extends Shape > strels , final int numThreads )
264
264
{
265
265
final T maxVal = MorphologyUtils .createVariable ( source , target );
266
266
maxVal .setReal ( maxVal .getMaxValue () );
@@ -317,7 +317,7 @@ public static < T extends RealType< T >> void erode( final RandomAccessible< T >
317
317
* the type of the source image and the erosion result. Must be a
318
318
* sub-type of {@code T extends Comparable & Type}.
319
319
*/
320
- public static < T extends Type < T > & Comparable < T > > void erode ( final RandomAccessible < T > source , final IterableInterval < T > target , final List < Shape > strels , final T maxVal , final int numThreads )
320
+ public static < T extends Type < T > & Comparable < T > > void erode ( final RandomAccessible < T > source , final IterableInterval < T > target , final List < ? extends Shape > strels , final T maxVal , final int numThreads )
321
321
{
322
322
if ( strels .isEmpty () ) { return ; }
323
323
if ( strels .size () == 1 )
@@ -608,7 +608,7 @@ public void run()
608
608
* sub-type of {@code T extends RealType}.
609
609
* @return a new {@link Img}, possibly of larger dimensions than the source.
610
610
*/
611
- public static < T extends RealType < T > > Img < T > erodeFull ( final Img < T > source , final List < Shape > strels , final int numThreads )
611
+ public static < T extends RealType < T > > Img < T > erodeFull ( final Img < T > source , final List < ? extends Shape > strels , final int numThreads )
612
612
{
613
613
Img < T > target = source ;
614
614
for ( final Shape strel : strels )
@@ -672,7 +672,7 @@ public static < T extends RealType< T > > Img< T > erodeFull( final Img< T > sou
672
672
* sub-type of {@code T extends Comparable & Type}.
673
673
* @return a new {@link Img}, possibly of larger dimensions than the source.
674
674
*/
675
- public static < T extends Type < T > & Comparable < T > > Img < T > erodeFull ( final Img < T > source , final List < Shape > strels , final T maxVal , final int numThreads )
675
+ public static < T extends Type < T > & Comparable < T > > Img < T > erodeFull ( final Img < T > source , final List < ? extends Shape > strels , final T maxVal , final int numThreads )
676
676
{
677
677
Img < T > target = source ;
678
678
for ( final Shape strel : strels )
@@ -833,7 +833,7 @@ public static < T extends Type< T > & Comparable< T > > Img< T > erodeFull( fina
833
833
* the type of the source image. Must be a sub-type of
834
834
* {@code T extends RealType}.
835
835
*/
836
- public static < T extends RealType < T > > void erodeInPlace ( final RandomAccessible < T > source , final Interval interval , final List < Shape > strels , final int numThreads )
836
+ public static < T extends RealType < T > > void erodeInPlace ( final RandomAccessible < T > source , final Interval interval , final List < ? extends Shape > strels , final int numThreads )
837
837
{
838
838
for ( final Shape strel : strels )
839
839
{
@@ -887,7 +887,7 @@ public static < T extends RealType< T > > void erodeInPlace( final RandomAccessi
887
887
* the type of the source image. Must be a sub-type of
888
888
* {@code T extends Comparable & Type}.
889
889
*/
890
- public static < T extends Type < T > & Comparable < T > > void erodeInPlace ( final RandomAccessibleInterval < T > source , final Interval interval , final List < Shape > strels , final T maxVal , final int numThreads )
890
+ public static < T extends Type < T > & Comparable < T > > void erodeInPlace ( final RandomAccessibleInterval < T > source , final Interval interval , final List < ? extends Shape > strels , final T maxVal , final int numThreads )
891
891
{
892
892
for ( final Shape strel : strels )
893
893
{
0 commit comments