Package boofcv.alg.color
Class ColorRgb
java.lang.Object
boofcv.alg.color.ColorRgb
Contains 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 Equationgray = 0.299*r + 0.587*g + 0.114*b
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
rgbToGray_Weighted
(double r, double g, double b) static float
rgbToGray_Weighted
(float r, float g, float b) static int
rgbToGray_Weighted
(int r, int g, int b) static void
rgbToGray_Weighted
(ImageMultiBand rgb, ImageGray gray)
-
Constructor Details
-
ColorRgb
public ColorRgb()
-
-
Method Details
-
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
-