procesamiento de imagens en matlab
Post on 08-Dec-2015
228 Views
Preview:
DESCRIPTION
TRANSCRIPT
PROCESAMIENTO DE IMAGENS EN MATLAB
1)Procesamos una imagen a=imread('goldfish.jpg')imshow(a)
2) Proceso de una imagen a escala a grisesa=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 raíces P=[5 -6 -72 -56]stem(P)grid on R=roots(P)
R =
4.7381 -2.6441 -0.8940
6)Calculamos las raíces del polinomio
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)
8) P=[1 3 4 5 6 5 ]stem(P)grid on R=roots(P)
R =
0.3869 + 1.1968i 0.3869 - 1.1968i -1.0058 + 0.8842i -1.0058 - 0.8842i -1.7623 + 0.0000i
9)a=imread('goldfish.jpg')imshow(a) b= imrotate(goldfish,76) imshow(b)
top related