Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
fill image (imfill)

Subject: fill image (imfill)

From: Dave Brackett

Date: 8 Dec, 2009 15:35:18

Message: 1 of 1

Hi, I want to fill certain parts of a black and white bitmap as shown in the pdf at this location: http://rapidshare.com/files/318038978/images.pdf.html

Referring to this file, I am using imfill with the below code but that fills the entire circle.

image=imread('imagefile24.bmp')
image=1-(im2bw(image))
image_filled=1-(imfill(image,'holes'))

what I want is the 3rd image in the attachment. is there a way to do this in Matlab?
Thanks.

Let me know if you have any trouble viewing the file.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us