Pr

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Pr as PDF for free.

More details

  • Words: 72
  • Pages: 1
% acquire and display input image i = imread('hand.jpg'); figure(1); imshow(i); title ('input image') %threshold the image file igray = rgb2gray(i); imthr = graythresh(igray); bw = im2bw(igray,imthr); figure(2); imshow(bw) ; title ('thresolded binary image') % remove all object containing fewer than 30 pixels bw = bwareaopen(bw,2000); figure(3);imshow(bw); title ('cleaned image'); % fill gaps se = strel('disk',2); bw = imclose(bw,se); % fill holes bw = imfill(bw,'holes'); figure(4);imshow(bw); title ('holes removed'); [b,l] = bwboundaries(bw,'noholes');

Related Documents

Pr
November 2019 68
Pr
November 2019 68
Pr
November 2019 56
Pr
October 2019 72
Pr
July 2020 35
Pr
November 2019 68