Matlab Morphological operations is used in image pre-processing steps.In matlab following type of Morphological operations there.There are
- Bottom hat
- Bridges unconnected
- Morphological closing
- Morphological diagonal
- Dilation
- Erosion
- Fills isolated interior
- H-connected pixels
- Morphological opening
- Removes interior pixels
- Shrinks
- Skeleton
- Thicken
- Thin
- Top hat
>>morph_output = bwmorph(input_binary_img,operation) ;
operations are 'bothat', 'bridge', 'clean', 'close', 'diag', 'dilate', 'erode', 'fill', 'hbreak', 'majority', 'open', 'remove', 'shrink', 'skel', 'spur', 'thicken', 'thin', 'tophat'.
example code and output as below.Here we use Morphological Removes interior pixels method.
>> BW = imread('circles.png');
>> imshow(BW);
>> BW2 = bwmorph(BW,'remove');
>> figure, imshow(BW2)
>> imshow(BW);
>> BW2 = bwmorph(BW,'remove');
>> figure, imshow(BW2)
Related Search : Matlab Morphological operations Find on Image,Matlab Erosion Morphological operations, Matlab Dilation Morphological operations,Matlab Morphological closing operations,Matlab Thicken Morphological operations
No comments:
Post a Comment