@@ -87,7 +87,7 @@ public class Erosion
8787 * sub-type of {@code T extends RealType}.
8888 * @return a new {@link Img}, of same dimensions than the source.
8989 */
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 )
9191 {
9292 Img < T > target = source ;
9393 for ( final Shape strel : strels )
@@ -138,7 +138,7 @@ public static < T extends RealType< T > > Img< T > erode( final Img< T > source,
138138 * sub-type of {@code T extends Comparable & Type}.
139139 * @return a new {@link Img}, of same dimensions than the source.
140140 */
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 )
142142 {
143143 Img < T > target = source ;
144144 for ( final Shape strel : strels )
@@ -260,7 +260,7 @@ public static < T extends Type< T > & Comparable< T > > Img< T > erode( final Im
260260 * @param numThreads
261261 * the number of threads to use for the calculation.
262262 */
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 )
264264 {
265265 final T maxVal = MorphologyUtils .createVariable ( source , target );
266266 maxVal .setReal ( maxVal .getMaxValue () );
@@ -317,7 +317,7 @@ public static < T extends RealType< T >> void erode( final RandomAccessible< T >
317317 * the type of the source image and the erosion result. Must be a
318318 * sub-type of {@code T extends Comparable & Type}.
319319 */
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 )
321321 {
322322 if ( strels .isEmpty () ) { return ; }
323323 if ( strels .size () == 1 )
@@ -608,7 +608,7 @@ public void run()
608608 * sub-type of {@code T extends RealType}.
609609 * @return a new {@link Img}, possibly of larger dimensions than the source.
610610 */
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 )
612612 {
613613 Img < T > target = source ;
614614 for ( final Shape strel : strels )
@@ -672,7 +672,7 @@ public static < T extends RealType< T > > Img< T > erodeFull( final Img< T > sou
672672 * sub-type of {@code T extends Comparable & Type}.
673673 * @return a new {@link Img}, possibly of larger dimensions than the source.
674674 */
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 )
676676 {
677677 Img < T > target = source ;
678678 for ( final Shape strel : strels )
@@ -833,7 +833,7 @@ public static < T extends Type< T > & Comparable< T > > Img< T > erodeFull( fina
833833 * the type of the source image. Must be a sub-type of
834834 * {@code T extends RealType}.
835835 */
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 )
837837 {
838838 for ( final Shape strel : strels )
839839 {
@@ -887,7 +887,7 @@ public static < T extends RealType< T > > void erodeInPlace( final RandomAccessi
887887 * the type of the source image. Must be a sub-type of
888888 * {@code T extends Comparable & Type}.
889889 */
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 )
891891 {
892892 for ( final Shape strel : strels )
893893 {
0 commit comments