function result = displace(input, place, final_size, pad_value) 
% function result = displace(input, place, final_size, pad_value) 

result = ones(final_size) * pad_value;

start = round(place - size(input)/2);
stop = start + size(input) - [1 1];

result(start(1):stop(1),start(2):stop(2)) = input;


