title: OpenCV Filter2D iPhone with Kernel
body: <p>I am trying to define a custom kernel for OpenCV on iOS.  I cannot seem to find a definitive method to do this.  The method that I have seen some other people use is this one, and I can't seem to get it to work exactly how I want it to.  I am using the cVVideoCamera delegate like this:</p>
  
  <pre><code>- (void)processImage:(Mat&amp;)image;
  {
  // Do some OpenCV stuff with the image
  
    double m[] =    {1.0, 1.0, 1.0,
                    2.0, 2.0, 2.0,
                    1.0, 1.0, 1.0};
    cv::Mat kernel = cv::Mat(3, 3, CV_32FC2, m);
    int ddepth = -1;
  
    cv::filter2D(image, image, ddepth, kernel);
  
  }
  </code></pre>
  
  <p>This does not seem to work.  I think it might be because of the type in the cv:Mat constructor (CV_32FC2).  Does anyone know what this should be for an iPhone camera usually?  Or is there some other problem?</p>