Package boofcv.alg.misc
Class GImageBandMath
java.lang.Object
boofcv.alg.misc.GImageBandMath
Collection 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ImageGray<T>>
voidComputes the average for each pixel across all bands in thePlanar
image.static <T extends ImageGray<T>>
voidComputes the average for each pixel across the specified bands in thePlanar
image.static <T extends ImageGray<T>>
voidComputes the maximum for each pixel across all bands in thePlanar
image.static <T extends ImageGray<T>>
voidComputes the maximum for each pixel across the specified bands in thePlanar
image.static <T extends ImageGray<T>>
voidComputes the median for each pixel across all bands in thePlanar
image.static <T extends ImageGray<T>>
voidComputes the median for each pixel across the specified bands in thePlanar
image.static <T extends ImageGray<T>>
voidComputes the minimum for each pixel across all bands in thePlanar
image.static <T extends ImageGray<T>>
voidComputes the minimum for each pixel across specified bands in thePlanar
image.static <T extends ImageGray<T>>
voidComputes the standard deviation for each pixel across all bands in thePlanar
image.static <T extends ImageGray<T>>
voidComputes the standard deviation for each pixel across the specified bands in thePlanar
image.
-
Constructor Details
-
GImageBandMath
public GImageBandMath()
-
-
Method Details
-
minimum
Computes the minimum for each pixel across all bands in thePlanar
image.- Parameters:
input
- Planar imageoutput
- Gray scale image containing minimum pixel values
-
minimum
public static <T extends ImageGray<T>> void minimum(Planar<T> input, T output, int startBand, int lastBand) Computes the minimum for each pixel across specified bands in thePlanar
image.- Parameters:
input
- Planar imageoutput
- Gray scale image containing minimum pixel valuesstartBand
- First band to be consideredlastBand
- Last band (inclusive) to be considered
-
maximum
Computes the maximum for each pixel across all bands in thePlanar
image.- Parameters:
input
- Planar imageoutput
- Gray scale image containing average pixel values
-
maximum
public static <T extends ImageGray<T>> void maximum(Planar<T> input, T output, int startBand, int lastBand) Computes the maximum for each pixel across the specified bands in thePlanar
image.- Parameters:
input
- Planar imageoutput
- Gray scale image containing average pixel valuesstartBand
- First band to be consideredlastBand
- Last band (inclusive) to be considered
-
average
Computes the average for each pixel across all bands in thePlanar
image.- Parameters:
input
- Planar imageoutput
- Gray scale image containing average pixel values
-
average
public static <T extends ImageGray<T>> void average(Planar<T> input, T output, int startBand, int lastBand) Computes the average for each pixel across the specified bands in thePlanar
image.- Parameters:
input
- Planar imageoutput
- Gray scale image containing average pixel valuesstartBand
- First band to be consideredlastBand
- Last band (inclusive) to be considered
-
median
Computes the median for each pixel across all bands in thePlanar
image.- Parameters:
input
- Planar imageoutput
- Gray scale image containing median pixel values
-
median
public static <T extends ImageGray<T>> void median(Planar<T> input, T output, int startBand, int lastBand) Computes the median for each pixel across the specified bands in thePlanar
image.- Parameters:
input
- Planar imageoutput
- Gray scale image containing median pixel valuesstartBand
- First band to be consideredlastBand
- Last band (inclusive) to be considered
-
stdDev
Computes the standard deviation for each pixel across all bands in thePlanar
image.- Parameters:
input
- Planar imageoutput
- Gray scale image containing average pixel valuesavg
- Gray scale image containing average projection of input
-
stdDev
public static <T extends ImageGray<T>> void stdDev(Planar<T> input, T output, @Nullable T avg, int startBand, int lastBand) Computes the standard deviation for each pixel across the specified bands in thePlanar
image.- 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
-