TP-traitement-audio-visuel/TP7/collage_naif.m

11 lines
212 B
Mathematica
Raw Normal View History

2023-06-22 18:47:16 +00:00
function u = collage_naif(r,s,interieur)
% Calcul de l'imagette résultat u, canal par canal :
u = r;
for k = 1:size(r,3)
u_k = u(:,:,k);
s_k = s(:,:,k);
u_k(interieur) = s_k(interieur);
u(:,:,k) = u_k;
end