1 / 7

ROZ1 – cvičení 4

ROZ1 – cvičení 4. Hranov é detektory, ekvalizace histogramu - v ý sledky. Roberts. function h = roberts(I, prah) vert = abs(conv2(I,[-1 1],'same')) > prah; horiz = abs(conv2(I,[-1;1],'same')) > prah; h = vert | horiz;. pro prahy 10 20 50. Sobel.

romeo
Télécharger la présentation

ROZ1 – cvičení 4

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ROZ1 – cvičení 4 Hranové detektory, ekvalizace histogramu - výsledky

  2. Roberts function h = roberts(I, prah) vert = abs(conv2(I,[-1 1],'same')) > prah; horiz = abs(conv2(I,[-1;1],'same')) > prah; h = vert | horiz; pro prahy 10 20 50

  3. Sobel function h = sobel (I, prah) M = [1 2 1; 0 0 0; -1 -2 -1]; h = abs(conv2(I,M,'same')) > prah; h = h | (abs(conv2(I,M','same')) > prah); M = [2 1 0; 1 0 -1; 0 -1 -2]; h = h | (abs(conv2(I,M,'same')) > prah); h = h | (abs(conv2(I,rot90(M),'same')) > prah); pro prahy 50 100 200

  4. Maar Pro tresh = 0,3 2 4

  5. Roberts SobelMaar

  6. Ekvalizace histogramu

  7. Ekvalizace histogramu function R = ekvHist(Img) B = 255; % intenzita bile barvy Img = round(Img); Vel = length(Img(:)); % pocet pixelu v obrazku R = Img; % vysledny snimek S = 0; % pocet zpracovanych pixelu for K = 0 : B % prochazime pixely presintenzity W = (Img == K); % pixely s intenzitou K P = sum (W(:)); % pocet techto pixelu R(W) = round(B * (S + P/2) / Vel); % jakou intenzitu jim priradime S = S + P; % pocet zpracovanych pixelu end

More Related