Giving Border to a Image
Giving border to a image using image processing techniques. I used this way to give border to an image like this.
1 2 3 4 5 6 7 8 9 10 11 12 | I=imread('lenna.JPG'); if length(size(I)) == 3 I=rgb2gray(I); end [row,col]=size(I); J=zeros(row+4,col+4); J(3:row+2,3:col+2) = I; J=uint8(J); subplot(1,2,1);imshow(I); subplot(1,2,2);imshow(J); |
Comments
Post a Comment