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.


Have you notified the border? If not try this code in your mat-labhttps://github.com/nifrasismail/ImagePading.m/blob/master/ImagePadding.m

 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

Popular posts from this blog

Missionaries & Canibal Problem in AI using Pro Log

Hide the navigation bar in jHipster Angular 2

Spring Boot - No Need to Restart the Development Server for Each Time