Skip to content

Uncategorized

MATLAB Program for Boundary Detection

MATLAB Program for Boundary Detection Code close all;clear all;BW1 = imread(‘DSC08386.jpg’); subplot(1,2,1);imshow(BW1)title(‘original image’); SE = strel(‘arbitrary’,eye(5));BW2 = imerode(BW1,SE);subplot(1,2,2);imshow(BW1 – BW2)title(‘Boundary Extracted’); Output of Boundry Detection

MATLAB Program to apply Histogram Equalization on image

MATLAB Program to apply Histogram Equalization on image Code clear allclcI=imread(‘cameraman.tif’);I=double(I);maximum_value=max((max(I)));[row col]=size(I);c=row*col;h=zeros(1,300);z=zeros(1,300);for n=1:rowfor m=1:colif I(n,m) == 0I(n,m)=1;endendendfor n=1:rowfor m=1:colt = I(n,m);h(t) = h(t) + 1;endendpdf… Read More »MATLAB Program to apply Histogram Equalization on image

error: Content is protected !!