Bachiller

Solo disponible en BuenasTareas
  • Páginas : 2 (365 palabras )
  • Descarga(s) : 0
  • Publicado : 15 de agosto de 2012
Leer documento completo
Vista previa del texto
CHECKERBOARD
image=imread('tierra.jpg');
image=checkerboard;
figure, imshow (image);

FINDBOUNDS -

image = imread('toro.jpg');
h = imshow(image);
set(h,'AlphaData',0.3);
axis on, grid onin_points = [ ...
0.5000 0.5000
0.5000 256.5000
256.5000 0.5000
256.5000 256.5000
0.5000 128.5000
128.5000 0.5000
128.5000 128.5000
128.5000 256.5000256.5000 128.5000];
hold on
plot(in_points(:,1),in_points(:,2),'.','MarkerSize',18)
hold off

IMPYRAMID
I0 = imread('tierra.jpg');
I1 = impyramid(I0, 'reduce');
I2 = impyramid(I1, 'reduce');
I3= impyramid(I2, 'reduce');
>> subplot(2,2,1),subimage(I0),title('original');
>> subplot(2,2,2),subimage(I1),title('primera reducida');
>> subplot(2,2,3),subimage(I2),title('segunda reducida');
>>subplot(2,2,4),subimage(I3),title('tercera reducida');

IMRESIZE
I = imread ('toro.jpg');
>> J = imresize (I, 0.5);
>> subplot(2,2,1),subimage(I),title('original');
>>subplot(2,2,2),subimage(J),title('RESIZE');
>> J2 = imresize(I, 0.5, 'nearest');
>> subplot(2,2,3),subimage(J2),title('RESIZE MAS RAPIDO');
IMROTATE
I = fitsread ('solarspectra.fts');
>> I = mat2gray(I);
>> J =imrotate(I,-1,'bilinear','crop');
>> subplot(2,2,1),subimage(I),title('original');
>> subplot(2,2,2),subimage(J),title('ROTATE');

IMTRANSFORM
I = imread('descarga.jpg');
tform = maketform('affine',[1 00; .5 1 0; 0 0 1]);
J = imtransform(I,tform);
>> subplot(2,2,1),subimage(I),title('original');
>> subplot(2,2,2),subimage(J),title('transformada');

MAKERESAMPLER
>> A = imread('descarga.jpg');resamp = makeresampler({'nearest','cubic'},'fill');
stretch = maketform('affine',[1 0; 0 1.3; 0 0]);
B = imtransform(A,stretch,resamp);
>> subplot(2,2,1),subimage(A),title('original');
>>subplot(2,2,2),subimage(B),title('TRANSFORMER');

MAKETFORM
T = maketform('affine',[.5 0 0; .5 2 0; 0 0 1]);
>> tformfwd([10 20],T);
>> I = imread('descarga.jpg');
>> I2 = imtransform(I,T);
>>...
tracking img