findContours Fehler "- Unterstützung nur 8uC1 Bilder'

Versuchen zu laufen findContours auf einem binären Bild"

Mat conv(image.size(), CV_8U);
image.convertTo(conv, CV_8U);
vector<vector<cv::Point> > contours;

findContours(conv, contours, CV_RETR_LIST, CV_CHAIN_APPROX_SIMPLE);

thorws Fehler:

OpenCV Error: Unsupported format or combination of formats ([Start]FindContours support only 8uC1 images) in cvStartFindContours, 

Irgendwelche Ideen?
Dank

InformationsquelleAutor der Frage 0xSina | 2012-11-02

Schreibe einen Kommentar