title: OpenCV - IplImage/Mat with 1 bit depth for edge maps?
body: <p>I'm currently using cvCreateImage with IplImages to store my edge maps in my code. These are generated with a Canny edge detection and the resulting map either has pixels on or off. From these I perform some Hough transformations whose thresholds are set depending on the number of edge pixels in the image to begin with. So I sum the intensity of all the pixels in an image. However, the lowest IplImage type appears to have a depth of 8 bits. Obviously, it's not hard to make the simple changes in the math to account for this, but it seems like an unnecessary step. Is there a built-in way to create an IplImage or Mat with 1 bit depth per pixel? Thank you much!</p>