int is_size_valid_1D int  size,
int  imageSize,
char *  func,
int  odd
 

Various checks on the sizes.

This function is used for internal purposes only. It checks the size of the structuring element and compares it to the image dimensions. For full technical details related to sizes please refer to Border effects.

Parameters:
[in] size Size to be checked
[in] imageSize Dimension of the image input buffer
[in] *func The name of the calling function
[in] odd Tells if the size should be odd
Returns:
Returns MORPHO_SUCCESS upon success, MORPHO_ERROR otherwise.


Telecommunications and Imaging Laboratory - Institut Montefiore - Université de Liège