J'ai développé un programme opencv utilisant imagesnake, mais il fonctionne pour quelques images mais pas pour d'autres. Je reçois l'erreur suivante:OpenCV Image Load Problème
OpenCV Error: Bad number of channels (input image has more than one channel) in cvSnakeImage, file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/opencv/work/OpenCV-2.3.1/modules/legacy/src/snakes.cpp, line 416 terminate called after throwing an instance of 'cv::Exception' what():
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_opencv/opencv/work/OpenCV-2.3.1/modules/legacy/src/snakes.cpp:416: error: (-15) input image has more than one channel in function cvSnakeImage
piège Abandonner
Quelqu'un at-il vu cette question ou sait comment le résoudre?