MCPcopy Create free account
hub / github.com/creatale/node-dv / cvErrorStr

Function cvErrorStr

deps/opencv/modules/core/src/system.cpp:647–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645
646
647CV_IMPL const char* cvErrorStr( int status )
648{
649 static char buf[256];
650
651 switch (status)
652 {
653 case CV_StsOk : return "No Error";
654 case CV_StsBackTrace : return "Backtrace";
655 case CV_StsError : return "Unspecified error";
656 case CV_StsInternal : return "Internal error";
657 case CV_StsNoMem : return "Insufficient memory";
658 case CV_StsBadArg : return "Bad argument";
659 case CV_StsNoConv : return "Iterations do not converge";
660 case CV_StsAutoTrace : return "Autotrace call";
661 case CV_StsBadSize : return "Incorrect size of input array";
662 case CV_StsNullPtr : return "Null pointer";
663 case CV_StsDivByZero : return "Division by zero occured";
664 case CV_BadStep : return "Image step is wrong";
665 case CV_StsInplaceNotSupported : return "Inplace operation is not supported";
666 case CV_StsObjectNotFound : return "Requested object was not found";
667 case CV_BadDepth : return "Input image depth is not supported by function";
668 case CV_StsUnmatchedFormats : return "Formats of input arguments do not match";
669 case CV_StsUnmatchedSizes : return "Sizes of input arguments do not match";
670 case CV_StsOutOfRange : return "One of arguments\' values is out of range";
671 case CV_StsUnsupportedFormat : return "Unsupported format or combination of formats";
672 case CV_BadCOI : return "Input COI is not supported";
673 case CV_BadNumChannels : return "Bad number of channels";
674 case CV_StsBadFlag : return "Bad flag (parameter or structure field)";
675 case CV_StsBadPoint : return "Bad parameter of type CvPoint";
676 case CV_StsBadMask : return "Bad type of mask argument";
677 case CV_StsParseError : return "Parsing error";
678 case CV_StsNotImplemented : return "The function/feature is not implemented";
679 case CV_StsBadMemBlock : return "Memory block has been corrupted";
680 case CV_StsAssert : return "Assertion failed";
681 case CV_GpuNotSupported : return "No GPU support";
682 case CV_GpuApiCallError : return "Gpu API call";
683 case CV_OpenGlNotSupported : return "No OpenGL support";
684 case CV_OpenGlApiCallError : return "OpenGL API call";
685 };
686
687 sprintf(buf, "Unknown %s code %d", status >= 0 ? "status":"error", status);
688 return buf;
689}
690
691CV_IMPL int cvGetErrMode(void)
692{

Callers 2

errorMethod · 0.85
errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected