MorphSetMode
Sets the mask processing mode for advanced morphological operations.
The function interface declaration is as follows:
HmppResult HMPPI_MorphSetMode(int32_t mode, HmppiMorphAdvPolicy* policy);
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
mode |
Mask processing mode |
Possible values are:
|
Input |
policy |
Pointer to the HmppiMorphAdvPolicy structure |
The value cannot be NULL. |
Input/Output |
Return Value
- Success: HMPP_STS_NO_ERR
- Failure: An error code is returned.
Error Codes
Error Code |
Description |
|---|---|
HMPP_STS_NULL_PTR_ERR |
Any of the specified pointers is NULL. |
HMPP_STS_NOT_SUPPORTED_MODE_ERR |
The value of mode is not 0, 1, or 4. |
Parent topic: Morphological Operations