You are on page 1of 6

PROCESAMIENTO DE IMAGENS EN

MATLAB
1)Procesamos una imagen
a=imread('goldfish.jpg')
imshow(a)

2) Proceso de una imagen a escala a


grises
a=imread('goldfish.jpg')
imshow(a)
grises=rgb2gray(goldfish)
imshow(grises)

3) procesamos una imagen


,cambiamos el umbral
a=imread('goldfish.jpg')
imshow(a)
grises=rgb2gray(goldfish)
imshow(grises)
umbral =graythresh(grises)
bw=im2bw(grises,umbral)
imshow(bw)

4)Rotamos una imagen


a=imread('goldfish.jpg')
imshow(a)
b= imrotate(goldfish,45)
imshow(b)

5) Calculamos las races


P=[5 -6 -72 -56]
stem(P)
grid on
R=roots(P)

R =
4.7381
-2.6441
-0.8940
6)Calculamos las races
P=[1 2 1]
stem(P)
grid on
R=roots(P)

R =
-1
-1
7) Procesamos una imagen
b=imread('paisaje.jpg')
b=imshow(b)

del polinomio

8)

P=[1 3 4 5 6 5 ]
stem(P)
grid on
R=roots(P)
R =
0.3869
0.3869
-1.0058
-1.0058
-1.7623

9)

+
+
+

1.1968i
1.1968i
0.8842i
0.8842i
0.0000i

a=imread('goldfish.jpg')
imshow(a)
b= imrotate(goldfish,76)
imshow(b)

You might also like