Package boofcv.alg.color
Class ColorRgb
- java.lang.Object
-
- boofcv.alg.color.ColorRgb
-
public class ColorRgb extends java.lang.ObjectContains functions related to working with RGB images and converting RGB images to gray-scale using a weighted equation. The weighted equation is designed to mimic the intensity seen by the human eye.
Weighted Equation
gray = 0.299*r + 0.587*g + 0.114*b
-
-
Constructor Summary
Constructors Constructor Description ColorRgb()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublergbToGray_Weighted(double r, double g, double b)static floatrgbToGray_Weighted(float r, float g, float b)static intrgbToGray_Weighted(int r, int g, int b)static voidrgbToGray_Weighted(boofcv.struct.image.ImageMultiBand rgb, boofcv.struct.image.ImageGray gray)
-
-
-
Method Detail
-
rgbToGray_Weighted
public static int rgbToGray_Weighted(int r, int g, int b)
-
rgbToGray_Weighted
public static float rgbToGray_Weighted(float r, float g, float b)
-
rgbToGray_Weighted
public static double rgbToGray_Weighted(double r, double g, double b)
-
rgbToGray_Weighted
public static void rgbToGray_Weighted(boofcv.struct.image.ImageMultiBand rgb, boofcv.struct.image.ImageGray gray)
-
-