29-PowerPoint-Farsi Tayyebi Tasvir com

  • Upload
    4406885

  • View
    313

  • Download
    2

Embed Size (px)

Citation preview

: 31-1- . : . ( :)Depth () . ( :)Resolution . . dpi .

: 31-1--- : : RGB : . : PNG GIFTIFF BMPJPG .

: 31-2- ()Intensity Image : . . 0 1 0 552 . 8 uint . images 8 uint . 8 uint.

: 31-2- - - :

: 31-2- - ()Indexed Image : 1. : . 1 652 . 2. ( :)map 3 . . .

: 31-2- - (-)Indexed Image

: 31-2- - ( 0 1) . double 8 uint . 8 uint 0 1 0 552 .

: 31-2- - RGB RGB true color 0 552 . 552 0 552 0 . 61 (652*652*652) . rgb . rgb ( )r,g,b . 0 1 ()double 0 552 (8)uint rgb .

: 31-2- - -RGB rgb

: 31-3- - imread Imread . : rgb : )m=imread(filename :)[m,map]=imread(filename m map . : imread . .

: 31-4- - imshow imshow : ;)imshow(m rgb )imshow(I , map ;)imshow(filename : )>> imshow(fabric.png : ;)>> m=imread(fabric.png )imshow(m

: 31-4- - -imshow

: 31-4- - imtool imtool. imshow : )>> imshow(fabric.png

: 31-5- -imwrite imwrite . : ;)imwrite(m , filename ;)imwrite(X , map , filename

: 31-6- - imfinfo : ... . : )info=imfinfo(filename

: 31-7- : )bw=im2bw(m , level )bw=im2bw(x , map , level level .( 0 1 ) ;)m=ind2gray(x , map ;)[x,map]=gray2ind(m ;)[x,map]=rgb2ind(m ;)m=ind2rgb(x , map ;)m=rgb2gray(m .

: 31-8- 8 uint . double . 8 uint: ;)m=double(m ;)m=im2uint8(m

: 31-9- . : : imresize : imrotate : imcrop

.

: 31-9- - : imresize : ;)y=imresize(x , a ;)]y=imresize(x , [m , n a . 2 . 1 . .

: 31-9- - - imrotate : )]m2=imrotate(m , d , [Option] , [crop . bilinear, nearest bicubic. nearest . crop . .

: 31-9- - - -imrotate :;)m=imread(ic.tif ;)n=imrotate(m , 35); p=imrotate(m , 35,crop ;)imshow(n); figure; imshow(p

: 31-9- - : imcrop :)I2 = IMCROP(I,RECT )X2 = IMCROP(X,MAP,RECT )RGB2 = IMCROP(RGB,RECT )...([A,RECT] = IMCROP

rect . .

: 31-9- - : -imcrop :;)m=imread(pout.tif ]2/)imshow(m);figure;imcrop(m,[size(m)/4,size(m

: 31-01- 2 filter : )m2=filter2(h , m h m . h 3*3 5*5 .

: 31-01- - fspecial 2 filter . : ) , (h=fspecial . : :gaussian :sobel :prewitt :laplacian :log :average :unsharp

: 31-01- - -SobelFilter=fspecial(sobel); [I,map]=imread('kids.tif');I=ind2gray(I,map); I2=filter2(SobelFilter,I); imshow( I ); figure; imshow( I2 );

: 31-11- :

: 31-11- - pixval impixel impixel . :)P = IMPIXEL(I )P = IMPIXEL(X,MAP )P = IMPIXEL(RGB

. p . . pixval . imshow .

: 31-11- - - :improfile :

:

;imshow(flowers.tif);improfile

: 31-11- - - :imcontour : ;)im=imread(ic.tif ;)3,imshow(im);figure;imcontour(im

: 31-11- - - :imhist : ;)I=imread(flowers.tif);I=rgb2gray(I ;)imshow(I);figure;imhist(I

: 31-11- - - 2 mean 2:std mean std . . . . 2 mean 2 std .

: 31-11- - : .

: 31-11- - : . . :

: 31-11- - - - imadjust . : )]J=imadjust(I , [low , high] , [bottom , top . . : ;)I=imread(pout.tif ;)]1, 0[ , ]7.0 , 3.0[ , J=imadjust(I ;)subplot(2,2,1);imshow(I); subplot(2,2,2);imshow(J )subplot(2,2,3); imhist(I); subplot(2,2,4); imhist(J

: 31-11- - - - -imadjust

: 31-11- - - - histeq histeq . : ;)I=imread(tire.tif ;J=histeq(I);figure ;)subplot(2,2,1);imshow(I ;)subplot(2,2,2);imshow(J ;)subplot(2,2,3);imhist(I ;)subplot(2,2,4);imhist(J

: 31-11- - - - -histeq

: 31-11- - - . . . :

fspecial 2 filter . 2 medfilt . ( )sharpness . .

: 31-11- - - -: I = imread(eight.tif); J= imnoise(I , Salt & pepper , 0.02); % K= filter2(fspecial(average , 3) , J) / 255; % L=medfilt2(J , [3 , 3]); % subplot(2,2,1); imshow( I ); title(Initial Image) subplot(2,2,2); imshow( J ); title(Noised Image); subplot(2,2,3); imshow( K ); title(Mean Filter); subplot(2,2,4); imshow( L ); title(Median Filter);

: 31-11- - - -: -

: 31-21- . 0 1 0 552 . . .

: 31-21- imshow . : ) imshow(m : ) imshow(I ,map .

: 31-21- Morphological Operations . . . . : -

: 31-21- - -Morphological Operations ()Dilation & Erosion . . . . . . .

: 31-21- - -Morphological Operations - ( )Mask . 3* 3 1 . 3*3 9 . imdilate imerode . bwmorph . : ;)bw2=imerode(bw1, se ;)bw2=imdilate(bw1 , se

: 31-21- - -Morphological Operations -;)5(bw1=imread(circbw.tif); SE=eye ;)bw2=imerode(bw1 , SE ;)2imshow(bw1); figure; imshow(bw

: 31-21- - -Morphological Operations Open & Close . . . . . bwmorph . .( )

: 31-21- --Morphological Operations -Open & Close bw1=imread(circbw.tif); se= ones(40 , 30); bw2= imerode(bw1 , se); bw3=imdilate(bw2 , se); imshow(bw2); figure; imshow(bw3);

: 31-21- - -Morphological Operations : immorph immorph . : ;)]bw2 = bwmorph(bw1 , operation , [n . . : erode fill hbreak open skel remove close dilate

: 31-21- - -Morphological Operations : -immorph:)bw1= imread(circbw.tif); bw2= bwmorph(bw1 , skel , inf ;)2imshow(bw1); figure; imshow(bw

: 31-1- flower.tif rgb . . : m - 021 081 1b 2b . : . : 001 < )1,:,:(m(:,:,2)>120 & m . - 1b 11b. - 11b 2b c . - 1b11 b 2b . - ( - ) 1b 2b . - text

: 31-2- fabric.tif ( )grayscale . . 006 dpi . : ...