boofcv.examples.imageprocessing
Class ExamplePlanarImages
- java.lang.Object
-
- boofcv.examples.imageprocessing.ExamplePlanarImages
-
public class ExamplePlanarImages extends java.lang.ObjectPlanarimages 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 independentImageGray. This is unlike the more common interleaved format where color information is stored in adjacent bytes in the same image.The main advantage of
Planaris 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.
-
-
Field Summary
Fields Modifier and Type Field and Description static ListDisplayPanelgui
-
Constructor Summary
Constructors Constructor and Description ExamplePlanarImages()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidconvertToGray(java.awt.image.BufferedImage input)There is no real perfect way that everyone agrees on for converting color images into gray scale images.static voidindependent(java.awt.image.BufferedImage input)Many operations designed to only work onImageGraycan be applied to a Planar image by feeding in each band one at a time.static voidmain(java.lang.String[] args)static voidpixelAccess(java.awt.image.BufferedImage input)Values of pixels can be read and modified by accessing the internalImageGray.
-
-
-
Field Detail
-
gui
public static ListDisplayPanel gui
-
-
Method Detail
-
independent
public static void independent(java.awt.image.BufferedImage input)
Many operations designed to only work onImageGraycan 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 internalImageGray.
-
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