Class ColorRgb


  • public class ColorRgb
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      ColorRgb()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static 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​(boofcv.struct.image.ImageMultiBand rgb, boofcv.struct.image.ImageGray gray)  
      • Methods inherited from class java.lang.Object

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

      • ColorRgb

        public ColorRgb()
    • 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)