Documentation of 'boofcv.examples.imageprocessing.ExamplePlanarImages' Java class
ExamplePlanarImages
boofcv.examples.imageprocessing

Class ExamplePlanarImages



  • public class ExamplePlanarImages
    extends java.lang.Object

    Planar images are one way in which color images can be stored and manipulated inside of BoofCV. Inside of a Planar image each color band is stored as an independent ImageGray. This is unlike the more common interleaved format where color information is stored in adjacent bytes in the same image.

    The main advantage of Planar is the ease at which gray scale operations can be applied to each band independently with no additional code. This is particularly useful in a library, such as BoofCV, which is heavily focused on gray scale image processing and computer vision. The are also situations for some scientific applications where processing each band independently makes more sense.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void convertToGray(java.awt.image.BufferedImage input)
      There is no real perfect way that everyone agrees on for converting color images into gray scale images.
      static void independent(java.awt.image.BufferedImage input)
      Many operations designed to only work on ImageGray can be applied to a Planar image by feeding in each band one at a time.
      static void main(java.lang.String[] args) 
      static void pixelAccess(java.awt.image.BufferedImage input)
      Values of pixels can be read and modified by accessing the internal ImageGray.
      • Methods inherited from class java.lang.Object

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

      • ExamplePlanarImages

        public ExamplePlanarImages()
    • Method Detail

      • independent

        public static void independent(java.awt.image.BufferedImage input)
        Many operations designed to only work on ImageGray can be applied to a Planar image by feeding in each band one at a time.
      • pixelAccess

        public static void pixelAccess(java.awt.image.BufferedImage input)
        Values of pixels can be read and modified by accessing the internal ImageGray.
      • convertToGray

        public static void convertToGray(java.awt.image.BufferedImage input)
        There is no real perfect way that everyone agrees on for converting color images into gray scale images. Two examples of how to convert a Planar image into a gray scale image are shown in this example.
      • main

        public static void main(java.lang.String[] args)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.