Documentation of 'boofcv.alg.color.ColorLab' Java class
ColorLab
boofcv.alg.color

Class ColorLab



  • public class ColorLab
    extends java.lang.Object
    Conversion between RGB and CIE LAB color space. LAB color is designed to approximate human vision. L for lightness and a and b for the color-opponent dimensions, The reference white used in the conversions below is D65.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static double epsilon 
      static float epsilon_f 
      static double kappa 
      static float kappa_f 
      static double Xr 
      static float Xr_f 
      static double Yr 
      static float Yr_f 
      static double Zr 
      static float Zr_f 
    • Constructor Summary

      Constructors 
      Constructor and Description
      ColorLab() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void rgbToLab_F32(Planar<GrayF32> rgb, Planar<GrayF32> lab)
      Convert a 3-channel Planar image from RGB into LAB.
      static void rgbToLab_U8(Planar<GrayU8> rgb, Planar<GrayF32> lab)
      Convert a 3-channel Planar image from RGB into LAB.
      static void srgbToLab(double r, double g, double b, double[] lab)
      Conversion from normalized RGB into LAB.
      static void srgbToLab(float r, float g, float b, float[] lab)
      Conversion from normalized RGB into LAB.
      • Methods inherited from class java.lang.Object

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

      • ColorLab

        public ColorLab()
    • Method Detail

      • srgbToLab

        public static void srgbToLab(double r,
                                     double g,
                                     double b,
                                     double[] lab)
        Conversion from normalized RGB into LAB. Normalized RGB values have a range of 0:1
      • srgbToLab

        public static void srgbToLab(float r,
                                     float g,
                                     float b,
                                     float[] lab)
        Conversion from normalized RGB into LAB. Normalized RGB values have a range of 0:1
      • rgbToLab_U8

        public static void rgbToLab_U8(Planar<GrayU8> rgb,
                                       Planar<GrayF32> lab)
        Convert a 3-channel Planar image from RGB into LAB. RGB is assumed to have a range from 0:255 NOTE: Input and output image can be the same instance.
        Parameters:
        rgb - (Input) RGB encoded image
        lab - (Output) LAB encoded image
      • rgbToLab_F32

        public static void rgbToLab_F32(Planar<GrayF32> rgb,
                                        Planar<GrayF32> lab)
        Convert a 3-channel Planar image from RGB into LAB. RGB is assumed to have a range from 0:255 NOTE: Input and output image can be the same instance.
        Parameters:
        rgb - (Input) RGB encoded image
        lab - (Output) LAB encoded image

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.