cvInpaint crashes when the input source image is 16-bit format (Bug #2363)


Added by lin lin over 12 years ago. Updated over 12 years ago.


Status:Cancelled Start date:2012-09-18
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

so, I knew, as document says, cvInpaint supports 8-bit input source image.
The questiones is:
1. it crashes and throw exception for 16-bit. is it better to return error for this input?
2. will the 16-bit be supported soon?
Any hint and help may I get to fixed it?


Associated revisions

Revision 13182da9
Added by Roman Donchenko about 11 years ago

Merge pull request #2363 from alekcac:introduction_tut_fix

History

Updated by Andrey Pavlenko over 12 years ago

Most of OpenCV functions behaves the same on invalid argument error: they call cv::error() (or cvError() for 1.x C API) that (by default) prints a message to std::error and throws an exception. See doc-s at http://docs.opencv.org/modules/core/doc/utility_and_system_functions_and_macros.html#error for details. This is design decision.
It's possible to setup a custom error handler via cv::redirectError() (or cvRedirectError() for 1.x C API).
E.g. you can completely ignore errors with the following custom handler:

static int CV_CDECL errorCb(int /*status*/, const char* /*func_name*/,
                             const char* err_msg, const char* /*file_name*/,
                             int /*line*/, void* /*userdata*/)
{
    return 0;
}

To setup this handler call:
redirectError(errorCb);

There are no plans to support inpainting of 16-bit images since this is not very popular feature.
Please submit a feature request with motivation if you'd like to propose this task
or make a pull-request if you'd like to contribute a solution.

I'm closing this issue since this is neither a bug nor a feature request.

  • Description changed from so, I knew, as document says, cvInpaint supports 8-bit input source image. T... to so, I knew, as document says, cvInpaint supports 8-bit input source image. Th... More

Updated by Andrey Pavlenko over 12 years ago

  • Status changed from Open to Cancelled

Also available in: Atom PDF