Skip to content

Commit

Permalink
Add missing getType() implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Aug 19, 2024
1 parent bb3740a commit 745b32b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/spim/process/fusion/weights/Blending.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,10 @@ public RealRandomAccess<FloatType> realRandomAccess( final RealInterval interval
{
return realRandomAccess();
}

@Override
public FloatType getType()
{
return new FloatType();
}
}
6 changes: 6 additions & 0 deletions src/main/java/spim/process/fusion/weights/ContentBased.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ public RealRandomAccess<FloatType> realRandomAccess( final RealInterval interval
).realRandomAccess( interval );
}

@Override
public FloatType getType()
{
return new FloatType();
}

final private static Img< FloatType > createGaussianKernel( final double[] sigmas )
{
final int numDimensions = sigmas.length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ public RandomAccess< T > randomAccess()
@Override
public RandomAccess< T > randomAccess( final Interval interval ) { return randomAccess(); }

@Override
public T getType()
{
return type;
}

@Override
public long min( final int d ){ return interval.min( 0 ); }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ public RandomAccess< T > randomAccess()
@Override
public RandomAccess< T > randomAccess( final Interval interval ) { return randomAccess(); }

@Override
public T getType()
{
return zero;
}

@Override
public long min( final int d ){ return transformedInterval.min( d ); }

Expand Down

0 comments on commit 745b32b

Please sign in to comment.