I am new to openCV and javaCV and i am trying the following code but getting 'ImageGenerator' cannot be resolve. Anybody can help me out? : I have imported the required libraries of javacv and opencv. I need to import more libraries? if yes may i know the name? coz i have seacrhed it so  much, but could not find it!!!


    import java.awt.*;
    import java.awt.image.*;
    import java.io.*;
    import java.nio.ByteBuffer;
     
    import javax.naming.Context;
                 
     enum Resolution {
          NORMAL, HIGH
        }
        
        
        public class KinectCapture 
        {
          private BufferedImage image = null;
          private int imWidth, imHeight;
          private int fps;
        
          private boolean isReleased = true;    
                   // when Kinect context has been released
        
          // OpenNI
          private Context context;
          private ImageGenerator imageGen; **Here I am getting the error.**
              
          public KinectCapture()
          {  this(Resolution.NORMAL);  }
        
              public KinectCapture(Resolution res)
          {  configOpenNI(res); }
           
        
          private void configOpenNI(Resolution res)
          // create context and image generator
          {
            try {
              context = new Context();
              
              // add the NITE Licence 
              License licence = new License("PrimeSense", "0KOIk2JeIBYClPWVnMoRKn5cdY4=");   // vendor, key
              context.addLicense(licence); 
              
              imageGen = ImageGenerator.create(context);

