Package boofcv.alg.misc
Class GImageBandMath
- java.lang.Object
-
- boofcv.alg.misc.GImageBandMath
-
public class GImageBandMath extends java.lang.ObjectCollection of functions that project Bands of Planar images onto a single image. Can be used to perform projections such as minimum, maximum, average, median, standard Deviation.
-
-
Constructor Summary
Constructors Constructor Description GImageBandMath()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends boofcv.struct.image.ImageGray<T>>
voidaverage(boofcv.struct.image.Planar<T> input, T output)Computes the average for each pixel across all bands in thePlanarimage.static <T extends boofcv.struct.image.ImageGray<T>>
voidaverage(boofcv.struct.image.Planar<T> input, T output, int startBand, int lastBand)Computes the average for each pixel across the specified bands in thePlanarimage.static <T extends boofcv.struct.image.ImageGray<T>>
voidmaximum(boofcv.struct.image.Planar<T> input, T output)Computes the maximum for each pixel across all bands in thePlanarimage.static <T extends boofcv.struct.image.ImageGray<T>>
voidmaximum(boofcv.struct.image.Planar<T> input, T output, int startBand, int lastBand)Computes the maximum for each pixel across the specified bands in thePlanarimage.static <T extends boofcv.struct.image.ImageGray<T>>
voidmedian(boofcv.struct.image.Planar<T> input, T output)Computes the median for each pixel across all bands in thePlanarimage.static <T extends boofcv.struct.image.ImageGray<T>>
voidmedian(boofcv.struct.image.Planar<T> input, T output, int startBand, int lastBand)Computes the median for each pixel across the specified bands in thePlanarimage.static <T extends boofcv.struct.image.ImageGray<T>>
voidminimum(boofcv.struct.image.Planar<T> input, T output)Computes the minimum for each pixel across all bands in thePlanarimage.static <T extends boofcv.struct.image.ImageGray<T>>
voidminimum(boofcv.struct.image.Planar<T> input, T output, int startBand, int lastBand)Computes the minimum for each pixel across specified bands in thePlanarimage.static <T extends boofcv.struct.image.ImageGray<T>>
voidstdDev(boofcv.struct.image.Planar<T> input, T output, T avg)Computes the standard deviation for each pixel across all bands in thePlanarimage.static <T extends boofcv.struct.image.ImageGray<T>>
voidstdDev(boofcv.struct.image.Planar<T> input, T output, T avg, int startBand, int lastBand)Computes the standard deviation for each pixel across the specified bands in thePlanarimage.
-
-
-
Method Detail
-
minimum
public static <T extends boofcv.struct.image.ImageGray<T>> void minimum(boofcv.struct.image.Planar<T> input, T output)Computes the minimum for each pixel across all bands in thePlanarimage.- Parameters:
input- Planar imageoutput- Gray scale image containing minimum pixel values
-
minimum
public static <T extends boofcv.struct.image.ImageGray<T>> void minimum(boofcv.struct.image.Planar<T> input, T output, int startBand, int lastBand)Computes the minimum for each pixel across specified bands in thePlanarimage.- Parameters:
input- Planar imageoutput- Gray scale image containing minimum pixel valuesstartBand- First band to be consideredlastBand- Last band (inclusive) to be considered
-
maximum
public static <T extends boofcv.struct.image.ImageGray<T>> void maximum(boofcv.struct.image.Planar<T> input, T output)Computes the maximum for each pixel across all bands in thePlanarimage.- Parameters:
input- Planar imageoutput- Gray scale image containing average pixel values
-
maximum
public static <T extends boofcv.struct.image.ImageGray<T>> void maximum(boofcv.struct.image.Planar<T> input, T output, int startBand, int lastBand)Computes the maximum for each pixel across the specified bands in thePlanarimage.- Parameters:
input- Planar imageoutput- Gray scale image containing average pixel valuesstartBand- First band to be consideredlastBand- Last band (inclusive) to be considered
-
average
public static <T extends boofcv.struct.image.ImageGray<T>> void average(boofcv.struct.image.Planar<T> input, T output)Computes the average for each pixel across all bands in thePlanarimage.- Parameters:
input- Planar imageoutput- Gray scale image containing average pixel values
-
average
public static <T extends boofcv.struct.image.ImageGray<T>> void average(boofcv.struct.image.Planar<T> input, T output, int startBand, int lastBand)Computes the average for each pixel across the specified bands in thePlanarimage.- Parameters:
input- Planar imageoutput- Gray scale image containing average pixel valuesstartBand- First band to be consideredlastBand- Last band (inclusive) to be considered
-
median
public static <T extends boofcv.struct.image.ImageGray<T>> void median(boofcv.struct.image.Planar<T> input, T output)Computes the median for each pixel across all bands in thePlanarimage.- Parameters:
input- Planar imageoutput- Gray scale image containing median pixel values
-
median
public static <T extends boofcv.struct.image.ImageGray<T>> void median(boofcv.struct.image.Planar<T> input, T output, int startBand, int lastBand)Computes the median for each pixel across the specified bands in thePlanarimage.- Parameters:
input- Planar imageoutput- Gray scale image containing median pixel valuesstartBand- First band to be consideredlastBand- Last band (inclusive) to be considered
-
stdDev
public static <T extends boofcv.struct.image.ImageGray<T>> void stdDev(boofcv.struct.image.Planar<T> input, T output, @Nullable T avg)Computes the standard deviation for each pixel across all bands in thePlanarimage.- Parameters:
input- Planar imageoutput- Gray scale image containing average pixel valuesavg- Gray scale image containing average projection of input
-
stdDev
public static <T extends boofcv.struct.image.ImageGray<T>> void stdDev(boofcv.struct.image.Planar<T> input, T output, @Nullable T avg, int startBand, int lastBand)Computes the standard deviation for each pixel across the specified bands in thePlanarimage.- Parameters:
input- Planar image - unchangedoutput- Output Gray scale Image - changedavg- Optional gray scale image containing average pixel values - should be same size as a plane in inputstartBand- First band to be consideredlastBand- Last band (inclusive) to be considered
-
-