title: cvThreshold of an iplImage
body: <p>I'm writing code with visual c++ using opencv and qt libraries. I'm trying to apply a threshold to an iplImage and displaying it but I've some problems: when I pass my iplImage to cvThreshold function (with an hypothetical threshold of 0) doesn't return a white image and I don't know why.
  To display the function I'm using emit:</p>
  
  <pre><code>uchar *qimout=new uchar[sImg];
              IplImage *greyImage=cvCreateImage(cvSize(wImg,hImg),IPL_DEPTH_8U,1);
              cvThreshold(currentImage,greyImage,0,255,cv::THRESH_BINARY);
              greyImage-&gt;imageData = (char*)qimout;
              emit renderImage(QImage(qimout,wImg,hImg,QImage::Format_Indexed8));
  </code></pre>
  
  <p>Can someone help me?
  Thanks in advance.</p>