Specifications
Intel
®
Image Processing Library Reference Manual
3-6
3
Discussion
The function iplErrorStr() returns a short string describing
status
.
Use this function to produce error messages for users. The returned pointer
is a pointer to an internal static buffer that may be overwritten on the next
call to
iplErrorStr().
RedirectError
Assigns a new error handler
to call when an error occurs.
IPLErrorCallBack iplRedirectError(IPLErrorCallBack
func
);
func
Pointer to the function that will be called when an
error occurs.
Discussion
The iplRedirectError() function assigns a new function to be called
when an error occurs in the Image Processing Library. If
func
is NULL,
iplRedirectError() installs the library’s default error handler.
The return value of
iplRedirectError() is a pointer to the previously
assigned error handling function.
For the definition of the function typedef
IPLErrorCallBack, and for
more information on the
iplRedirectError() function, see “Adding
Your Own Error Handler” below.