Matlab - MATLAB

 
Vista:

MATLAB

Publicado por kobe (1 intervención) el 23/05/2013 18:46:10
ayuda urgente por favorrrrr

[f,c,p]=size(i);
i=double(i);
i=i./255;
ima=zeros(2*f,2*c,p);

for i=1:f
for j=1:c
ima(2*i-1,2*j-1,:)=i(i,j,:);
ima(2*i-1+1,2*j-1+1,:)=i(i,j,:);
ima(2*i-1+1,2*j-1,:)=i(i,j,:);
ima(2*i-1,2*j-1+1,:)=i(i,j,:);
end
end

EL OBJETIVO DE ESTE ALGORITMO ES AMPLIAR O DUPLICAR UNA IMAGEN "I" QUE ME HAN DADO
me sale el error : "Index exceeds matrix dimensions" y no entiendo el motivo
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de JOSE JEREMIAS CABALLERO
Val: 6.975
Oro
Ha mantenido su posición en Matlab (en relación al último mes)
Gráfica de Matlab

duplicar un imagen

Publicado por JOSE JEREMIAS CABALLERO (5917 intervenciones) el 24/05/2013 06:43:17
1
2
3
4
5
6
7
8
9
10
11
12
13
[f,c,p]=size(i);
 i=double(i);
 i=i./255;
 ima=zeros(2*f,2*c,p);
 
for i1=1:f
 for j=1:c
ima(2*i1-1,2*j-1,:)=i(i1,j,:);
 ima(2*i1-1+1,2*j-1+1,:)=i(i1,j,:);
 ima(2*i1-1+1,2*j-1,:)=i(i1,j,:);
 ima(2*i1-1,2*j-1+1,:)=i(i1,j,:);
 end
end




Saludos.
JOSE JEREMÍAS CABALLERO
Asesorías en Matlab
programador en matlab
Servicios de programación matlab
[email protected]

http://matlabcaballero.blogspot.com

http://www.lawebdelprogramador.com/foros/Matlab/1371532-FORMA_DE_APRENDER_MATLAB.html
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar