Presentasi sedang didownload. Silahkan tunggu

Presentasi sedang didownload. Silahkan tunggu

Image Segmentation.

Presentasi serupa


Presentasi berjudul: "Image Segmentation."— Transcript presentasi:

1 Image Segmentation

2 Region of Interest Processing
Process image only in the predefined area. The predefined area is called “Region Of Interest” (ROI). Function is the same as before but applied to only ROI.

3 ROI Selection: MATLAB Command: roipoly Syntax: roipoly(im);
roipoly(im, [x0 x1 …xm], [y0 y1 …ym]; im : input image (x0, y0), (x1, y1), …, (xm, ym) : coordinate of the polygon covering region of interest. E.g. roi = roipoly(im, [ ], [ ]);

4 Mask for ROI Mask coordinate: (222, 21) (272, 21) (300, 75)
Binary image with the white (1) indicating ROI. Mask coordinate: (222, 21) (272, 21) (300, 75) (270, 121) (221, 121) (191, 75)

5 ROI Filtering: MATLAB TRY !! Command: roifilt2
Syntax: roifilt2(filter, image, roi); filter : 2D linear filter image : input image roi : region of interest (1: ROI, 0: not ROI) TRY !!

6 Effect of ROI Filtering
ROI at this coin Unsharp masking in ROI.

7 ROI using Thresholding
ROI dapat dibuat dengan menggunakan thresholding. Misal jika nilai pixel > 128 maka logika ROI di pixel tsb bernilai 1, dan jika nilai pixel <128 maka logika ROI di pixel tsb bernilai 0. s = size(greencocoon); cocoon_ROI = greencocoon; for i=1:s(1,2) %x for j=1:s(1,1) %y if greencocoon(j,i) < 128 cocoon_ROI(j,i) = 0; end if greencocoon(j,i) > 128 cocoon_ROI(j,i) = 1; cocoon_ROI = logical(cocoon_ROI); cocoon_result = roifilt2(HPF, greencocoon, cocoon_ROI);

8 Bagi yang Muslim dipersilakan sholat zhuhur dulu
Bagi yang Muslim dipersilakan sholat zhuhur dulu. Kuliah dimulai pukul 12:10. Terima Kasih


Download ppt "Image Segmentation."

Presentasi serupa


Iklan oleh Google