Class ColorRgb

java.lang.Object
boofcv.alg.color.ColorRgb

public class ColorRgb
extends Object

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 Equation
gray = 0.299*r + 0.587*g + 0.114*b
  • 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

      public static void rgbToGray_Weighted​(ImageMultiBand rgb, ImageGray gray)