- java.lang.Object
-
- org.scijava.ops.image.filter.NeighborhoodFilters
-
public final class NeighborhoodFilters extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,V>
voiddefaultMax(Computers.Arity1<Iterable<T>,V> op, Neighborhood<T> neighborhood, V output)Computes the maximum over aNeighborhood, and stores it in the passed output containerstatic <T,V>
voiddefaultMean(Computers.Arity1<Iterable<T>,V> op, Neighborhood<T> neighborhood, V output)Computes the mean over aNeighborhood, and stores it in the passed output containerstatic <T,V>
voiddefaultMedian(Computers.Arity1<Iterable<T>,V> op, Neighborhood<T> neighborhood, V output)Computes the median over aNeighborhood, and stores it in the passed output containerstatic <T,V>
voiddefaultMinimum(Computers.Arity1<Iterable<T>,V> op, Neighborhood<T> neighborhood, V output)Computes the minimum over aNeighborhood, and stores it in the passed output containerstatic <T,V>
voiddefaultVariance(Computers.Arity1<Iterable<T>,V> op, Neighborhood<T> neighborhood, V output)Computes the variance over aNeighborhood, and stores it in the passed output container
-
-
-
Method Detail
-
defaultMax
public static <T,V> void defaultMax(Computers.Arity1<Iterable<T>,V> op, Neighborhood<T> neighborhood, V output)
Computes the maximum over aNeighborhood, and stores it in the passed output container- Type Parameters:
T- theTypeof the elements ofneighborhoodV- theTypeof the output container- Parameters:
op- the Op able to compute the maximumneighborhood- theNeighborhoodto compute overoutput- the preallocated output container- Implementation Note:
- op name='filter.max', type='Computer'
-
defaultMean
public static <T,V> void defaultMean(Computers.Arity1<Iterable<T>,V> op, Neighborhood<T> neighborhood, V output)
Computes the mean over aNeighborhood, and stores it in the passed output container- Type Parameters:
T- theTypeof the elements ofneighborhoodV- theTypeof the output container- Parameters:
op- the Op able to compute the meanneighborhood- theNeighborhoodto compute overoutput- the preallocated output container- Implementation Note:
- op name='filter.mean',type='Computer'
-
defaultMedian
public static <T,V> void defaultMedian(Computers.Arity1<Iterable<T>,V> op, Neighborhood<T> neighborhood, V output)
Computes the median over aNeighborhood, and stores it in the passed output container- Type Parameters:
T- theTypeof the elements ofneighborhoodV- theTypeof the output container- Parameters:
op- the Op able to compute the medianneighborhood- theNeighborhoodto compute overoutput- the preallocated output container- Implementation Note:
- op name='filter.median', type='Computer'
-
defaultMinimum
public static <T,V> void defaultMinimum(Computers.Arity1<Iterable<T>,V> op, Neighborhood<T> neighborhood, V output)
Computes the minimum over aNeighborhood, and stores it in the passed output container- Type Parameters:
T- theTypeof the elements ofneighborhoodV- theTypeof the output container- Parameters:
op- the Op able to compute the minimumneighborhood- theNeighborhoodto compute overoutput- the preallocated output container- Implementation Note:
- op name='filter.min', type='Computer'
-
defaultVariance
public static <T,V> void defaultVariance(Computers.Arity1<Iterable<T>,V> op, Neighborhood<T> neighborhood, V output)
Computes the variance over aNeighborhood, and stores it in the passed output container- Type Parameters:
T- theTypeof the elements ofneighborhoodV- theTypeof the output container- Parameters:
op- the Op able to compute the varianceneighborhood- theNeighborhoodto compute overoutput- the preallocated output container- Implementation Note:
- op name='filter.variance', type='Computer'
-
-