Use dilate to enlarge light objects in an image or to reassemble an image which has become disjointed.
• dilate(M, Melem, r_origin, c_origin, b)—Performs binary dilation on matrix M at threshold b using structuring element Melem with origin at row r_origin and column c_origin.
The dilate function has a binary output: foreground is always set to 255, while background is always set to 0.
Arguments
• M is an image matrix.
• Melem is a vector or matrix.
• b is a real number.
• r_origin, c_origin are integers, where sign indicates direction.