Binary Image Processing

Version 1.0.0.0 (952 Bytes) by M M
Morphological operations on binary images.
14.7K Downloads
Updated 9 Oct 2003

No License

This program performs morphological operations on binary images

Sample Run:
>> binaryim

This program performs morphological operations on binary image
Entering the image for MATLAB...
Note that if You entered a gray scale or RGB image (not Binary),
It will be converted to Binary Image by Thresholding
Save the image or its copy in MATLAB working Directory
Enter the name of the image file (filename.ext) : cat.bmp

Click (1) to Perform Erosion
Click (2) to Perform Dilation
Click (3) to Perform Binary Opening
Click (4) to Perform Binary Closing
Click (5) to Subtract the Opening from the Input Image
Click (6) to Subtract the Input Image from its Closing
Click (7) to Remove isolated pixels (1's surrounded by 0's)
Click (8) to Fill isolated interior pixels (0's surrounded by 1's)
Click (9) to Leave only boundary pixels
Click (10) to Shrink objects to points
Click (11) to Make objects Thicker
Click (12) to Make objects Thinner
You select the Choice number : 9

Do you like to SAVE Result Image? (y/n) : y

You choose to SAVE the Result Image
Type the name of the new image file (filename.ext) : cat111.jpg

Saving ...
The new file is called cat111.jpg and it is saved in MATLAB working Directory

Cite As

M M (2024). Binary Image Processing (https://www.mathworks.com/matlabcentral/fileexchange/4052-binary-image-processing), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0