13.07.2015 Views

Laporan Akhir Projek Penyelidikan Jangka Pendek ... - ePrints@USM

Laporan Akhir Projek Penyelidikan Jangka Pendek ... - ePrints@USM

Laporan Akhir Projek Penyelidikan Jangka Pendek ... - ePrints@USM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Int J Adv Manuf TechnolFig. 4 Images of surface roughnessprofile. a Before Wienerfiltering. b After Wiener filtering.c Region where surfaceprotile is capturedScan start point\Scanning directionyEffect of noise/.?fyxCameraI .I viewIIbRegion ofimeresl3.2 Image enhancementIn stage 2, the images were enhanced using noise filteringmethods. The captured image g(x,y) can be represented by[16]:g(x,y) = h(x,y)*f(x,y) + 7J(x,y) (1)where j(x,y) is the original image, hex, y) is the degradationfunction, 7J(x,y) is the additive noise term in the image and470 '--"'--~--"----~-~--"'-----'--r---o469468467Ẹ 3 466~Q 465~ 464463461Best-fit lineRoughness profile460 L.--::-'-=-~'-o---:~-::-::-::---=-'-::---=~-~--::-7-=--'200 300 400 500 600 700 800 900Cut off (I.tm)Fig. 5 Contour of roughness profilethe asterisk refers to the convolution operation. Wienerfiltering was used to recover the images that were degradedby noise [16, 17]. The Wiener filtering method, introduced in1942, is not sensitive to inverse filtering of noise and is oneof the best approaches to recover images. The Wiener filteruses statistical parameters to minimize error. Although it isnonnally used to restore blU11'ed images, Matlab uses thismethod to enhance images affected by noise using thewiener2 command. This command does not need to haveany infonnation about the noise distribution and applies theWiener filter adaptively using the local statistical parameters.Compared to a linear filter, the Wiener filter is more selectiveand preserves edges and other high frequency components inthe image. Figure 4a,b shows sample images of workpiececontour before and after Wiener filtering. Figure 4c showsthe view direction of the camera relative to the workpieceand the region where the roughness profile is captured.3.3 SegmentationIn stage 3, the image was segmented to separate theworkpiece (dark region) from its background (brightregion) using a global thresholding method. Thresholdingproduces a binary image by setting all pixels in the inputimage for a given range of gray values to 1 and theremaining values to O. The threshold value T is used to define.tQ Springer

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!