Class ConvertYuv420_888


  • public class ConvertYuv420_888
    extends java.lang.Object
    Functions for converting YUV 420 888 into BoofCV imgae types.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] declareWork​(int strideY, int strideUV, byte[] work)  
      static void yuvToBoof​(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, ColorFormat colorOutput, boofcv.struct.image.ImageBase output, boofcv.concurrency.BWorkArrays workArrays)  
      static boofcv.struct.image.GrayF32 yuvToGray​(java.nio.ByteBuffer bufferY, int width, int height, int strideRow, boofcv.struct.image.GrayF32 output, boofcv.concurrency.BWorkArrays workArrays)  
      static boofcv.struct.image.GrayU8 yuvToGray​(java.nio.ByteBuffer bufferY, int width, int height, int strideRow, boofcv.struct.image.GrayU8 output)  
      static <T extends boofcv.struct.image.ImageGray<T>>
      T
      yuvToGray​(java.nio.ByteBuffer bufferY, int width, int height, int strideRow, T output, boofcv.concurrency.BWorkArrays workArrays, java.lang.Class<T> outputType)
      Converts an YUV 420 888 into gray
      static boofcv.struct.image.InterleavedF32 yuvToInterleavedRgbF32​(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.InterleavedF32 output, boofcv.concurrency.BWorkArrays workArrays)  
      static boofcv.struct.image.InterleavedU8 yuvToInterleavedRgbU8​(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.InterleavedU8 output, boofcv.concurrency.BWorkArrays workArrays)  
      static boofcv.struct.image.InterleavedU8 yuvToInterleavedYuvU8​(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.InterleavedU8 output, boofcv.concurrency.BWorkArrays workArrays)  
      static boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> yuvToPlanarRgbF32​(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> output, boofcv.concurrency.BWorkArrays workArrays)  
      static boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> yuvToPlanarRgbU8​(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> output, boofcv.concurrency.BWorkArrays workArrays)  
      static boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> yuvToPlanarYuvU8​(java.nio.ByteBuffer bufferY, java.nio.ByteBuffer bufferU, java.nio.ByteBuffer bufferV, int width, int height, int strideY, int strideUV, int stridePixelUV, boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> output, boofcv.concurrency.BWorkArrays workArrays)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConvertYuv420_888

        public ConvertYuv420_888()
    • Method Detail

      • declareWork

        public static byte[] declareWork​(int strideY,
                                         int strideUV,
                                         byte[] work)
      • yuvToBoof

        public static void yuvToBoof​(java.nio.ByteBuffer bufferY,
                                     java.nio.ByteBuffer bufferU,
                                     java.nio.ByteBuffer bufferV,
                                     int width,
                                     int height,
                                     int strideY,
                                     int strideUV,
                                     int stridePixelUV,
                                     ColorFormat colorOutput,
                                     boofcv.struct.image.ImageBase output,
                                     boofcv.concurrency.BWorkArrays workArrays)
      • yuvToGray

        public static <T extends boofcv.struct.image.ImageGray<T>> T yuvToGray​(java.nio.ByteBuffer bufferY,
                                                                               int width,
                                                                               int height,
                                                                               int strideRow,
                                                                               T output,
                                                                               boofcv.concurrency.BWorkArrays workArrays,
                                                                               java.lang.Class<T> outputType)
        Converts an YUV 420 888 into gray
        Type Parameters:
        T - Output image type
        Parameters:
        output - Output: Optional storage for output image. Can be null.
        outputType - Output: Type of output image
        Returns:
        Gray scale image
      • yuvToGray

        public static boofcv.struct.image.GrayF32 yuvToGray​(java.nio.ByteBuffer bufferY,
                                                            int width,
                                                            int height,
                                                            int strideRow,
                                                            boofcv.struct.image.GrayF32 output,
                                                            boofcv.concurrency.BWorkArrays workArrays)
        Parameters:
        output - Output: Optional storage for output image. Can be null.
        Returns:
        Gray scale image
      • yuvToGray

        public static boofcv.struct.image.GrayU8 yuvToGray​(java.nio.ByteBuffer bufferY,
                                                           int width,
                                                           int height,
                                                           int strideRow,
                                                           boofcv.struct.image.GrayU8 output)
      • yuvToPlanarRgbU8

        public static boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> yuvToPlanarRgbU8​(java.nio.ByteBuffer bufferY,
                                                                                              java.nio.ByteBuffer bufferU,
                                                                                              java.nio.ByteBuffer bufferV,
                                                                                              int width,
                                                                                              int height,
                                                                                              int strideY,
                                                                                              int strideUV,
                                                                                              int stridePixelUV,
                                                                                              @Nullable
                                                                                              boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> output,
                                                                                              @Nullable
                                                                                              boofcv.concurrency.BWorkArrays workArrays)
      • yuvToPlanarRgbF32

        public static boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> yuvToPlanarRgbF32​(java.nio.ByteBuffer bufferY,
                                                                                                java.nio.ByteBuffer bufferU,
                                                                                                java.nio.ByteBuffer bufferV,
                                                                                                int width,
                                                                                                int height,
                                                                                                int strideY,
                                                                                                int strideUV,
                                                                                                int stridePixelUV,
                                                                                                @Nullable
                                                                                                boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> output,
                                                                                                @Nullable
                                                                                                boofcv.concurrency.BWorkArrays workArrays)
      • yuvToInterleavedRgbU8

        public static boofcv.struct.image.InterleavedU8 yuvToInterleavedRgbU8​(java.nio.ByteBuffer bufferY,
                                                                              java.nio.ByteBuffer bufferU,
                                                                              java.nio.ByteBuffer bufferV,
                                                                              int width,
                                                                              int height,
                                                                              int strideY,
                                                                              int strideUV,
                                                                              int stridePixelUV,
                                                                              @Nullable
                                                                              boofcv.struct.image.InterleavedU8 output,
                                                                              @Nullable
                                                                              boofcv.concurrency.BWorkArrays workArrays)
      • yuvToInterleavedRgbF32

        public static boofcv.struct.image.InterleavedF32 yuvToInterleavedRgbF32​(java.nio.ByteBuffer bufferY,
                                                                                java.nio.ByteBuffer bufferU,
                                                                                java.nio.ByteBuffer bufferV,
                                                                                int width,
                                                                                int height,
                                                                                int strideY,
                                                                                int strideUV,
                                                                                int stridePixelUV,
                                                                                @Nullable
                                                                                boofcv.struct.image.InterleavedF32 output,
                                                                                @Nullable
                                                                                boofcv.concurrency.BWorkArrays workArrays)
      • yuvToPlanarYuvU8

        public static boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> yuvToPlanarYuvU8​(java.nio.ByteBuffer bufferY,
                                                                                              java.nio.ByteBuffer bufferU,
                                                                                              java.nio.ByteBuffer bufferV,
                                                                                              int width,
                                                                                              int height,
                                                                                              int strideY,
                                                                                              int strideUV,
                                                                                              int stridePixelUV,
                                                                                              @Nullable
                                                                                              boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> output,
                                                                                              @Nullable
                                                                                              boofcv.concurrency.BWorkArrays workArrays)
      • yuvToInterleavedYuvU8

        public static boofcv.struct.image.InterleavedU8 yuvToInterleavedYuvU8​(java.nio.ByteBuffer bufferY,
                                                                              java.nio.ByteBuffer bufferU,
                                                                              java.nio.ByteBuffer bufferV,
                                                                              int width,
                                                                              int height,
                                                                              int strideY,
                                                                              int strideUV,
                                                                              int stridePixelUV,
                                                                              @Nullable
                                                                              boofcv.struct.image.InterleavedU8 output,
                                                                              @Nullable
                                                                              boofcv.concurrency.BWorkArrays workArrays)