These functions work on binary data only. They detect regions of non-zero pixels in the image. The alignment pixels must be cleared when calling any of these functions, otherwise the result will not be correct. The performance is input-sensitive.
Next section: Cropping