cvFindCornerSubPix throws "Bad type of mask argument" exception when input image is not of type 8UC1 (Bug #1364)


Added by Stephan Wirth over 13 years ago. Updated almost 13 years ago.


Status:Done Start date:
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:imgproc, video
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision f0759437
Added by Vadim Pisarevsky over 13 years ago

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

Also available in: Atom PDF