Proposed methodology i have applied different image

Info icon This preview shows pages 2–5. Sign up to view the full content.

View Full Document Right Arrow Icon
techniques and applying thresholding we will separate disk from overall image. Proposed Methodology: I have applied different image enhancements techniques in spatial domain and by applying thresholding successfully separated the disk. The methods used are: 1. Sobel (first derivative) filter Colored to grayscale image Highlights the edges Apply Thresholding
Image of page 2

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2. Averaging filter Experimental results: Code: [fname path]=uigetfile( '*.tif' , 'Select an image' ); % [FILENAME, PATHNAME, FILTERINDEX] = UIGETFILE(FILTERSPEC, TITLE) fname=strcat(path,fname); im=imread(fname); im=imresize(im,[255 255]); figure subplot(2,2,1); imshow(im,[]); title( 'Original image' ); im=rgb2gray(im); subplot(2,2,2); imshow(im,[]); title( 'Original image in grayscale' ); %using sobel y=double(im); BW = edge(y, 'sobel' ); BW=BW+y; subplot(2,2,3); imshow(BW,[]); title( 'sobel' ) impixelinfo %thresholding for i=1:255 for j=1:255 if BW(i,j)<170; BW(i,j)=0; end end end %SE = strel(shape, parameters) se = strel( 'disk' ,1); BW=imerode(BW,se); BW=imfill(BW, 'holes' ); subplot(2,2,4); Colored to grayscale image Smooth the edges Apply Thresholding
Image of page 3
imshow(BW,[]); title( 'sobel after thresholding' ); %smoothing filter f=fspecial( 'Average' , [30 30]); x=imfilter(im,f); figure subplot(2,2,1); imshow(x,[]); title( 'average filter' ); impixelinfo %thresholding for i=1:255 for j=1:255 if x(i,j)<170; x(i,j)=0; end end end %SE = strel(shape, parameters) se = strel( 'disk' ,2); x=imerode(x,se); %x=imfill(x,'holes'); subplot(2,2,2); imshow(x,[]); title( 'Average filter after thresholding' ); Explanation: First image is converted into gray scale for processing. If we apply sobel or any sharpening filter
Image of page 4

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern