Image Processing Toolbox    

Step 3: Enhance the Image Contrast

The imtophat and imbothat functions return the top-hat and bottom-hat transforms, respectively, of the original image.


  Step 2: Create the Structuring Element Step 4: Exaggerate the Gaps Between Objects