tags:

views:

46

answers:

2

how we could add upper border to an image?

+1  A: 

Maybe something like:

[m,n] = size(a);
b = [zeros(1, n); a];
ysap
A: 

If 'a' contains image:

[m,n] = size(a);
b=zeros(m+1,n);
for i=1:m
    for j=1:n 
        b(i+1,j)=a(i,j);
    end
end
imshow(b);
ashish chittora

related questions