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.
Itop = imtophat(afm, se); Ibot = imbothat(afm, se); figure, imshow(Itop, []), title('top-hat image'); figure, imshow(Ibot, []), title('bottom-hat image');
![]() | Step 2: Create the Structuring Element | Step 4: Exaggerate the Gaps Between Objects | ![]() |