Class GradientReduceToSingle

java.lang.Object
boofcv.alg.filter.derivative.GradientReduceToSingle

public class GradientReduceToSingle
extends Object
Contains functions that reduce the number of bands in the input image into a single band.
  • Constructor Details

    • GradientReduceToSingle

      public GradientReduceToSingle()
  • Method Details

    • maxf

      public static void maxf​(Planar<GrayF32> inX, Planar<GrayF32> inY, GrayF32 outX, GrayF32 outY)
      Reduces the number of bands by selecting the band with the largest Frobenius norm and using its gradient to be the output gradient on a pixel-by-pixel basis
      Parameters:
      inX - Input gradient X
      inY - Input gradient Y
      outX - Output gradient X
      outY - Output gradient Y
    • maxf

      public static void maxf​(Planar<GrayU8> inX, Planar<GrayU8> inY, GrayU8 outX, GrayU8 outY)
      Reduces the number of bands by selecting the band with the largest Frobenius norm and using its gradient to be the output gradient on a pixel-by-pixel basis
      Parameters:
      inX - Input gradient X
      inY - Input gradient Y
      outX - Output gradient X
      outY - Output gradient Y