cvFindCornerSubPix throws "Bad type of mask argument" exception when input image is not of type 8UC1 (Bug #1364)
Description
When the input image of cvFindCornerSubPix is not of type CV_8UC1, a "Bad type of mask argument" error is thrown. This message is misleading as cvFindCornerSubPix has no parameter for any mask.
Instead of CV_StsBadMask, CV_StsBadNumChannels and CV_BadDepth should be thrown.
The documentation should be updated as well to mention that the input image has to be of type CV_8UC1.
Associated revisions
fixed bug #1364
History
Updated by Vadim Pisarevsky over 13 years ago
thanks! fixed in r6786
- Status changed from Open to Done
- (deleted custom field) set to fixed
Updated by Andrey Kamaev almost 13 years ago
- Target version set to 2.4.0