The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Line smoothing within bw image
Replies: 2   Last Post: Jun 15, 2012 6:11 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 107
Registered: 2/27/10
Re: Line smoothing within bw image
Posted: Jun 13, 2012 4:30 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Giorgia " <> wrote in message <jra7s3$nve$>...
> Hi,
> I don't have a lot of experience in the image processing, so I'd be really glad to share with you this porblem of mine and any help is more than welcome. I'm working with a grey scale image, I've converted it in bw using im2bw matlab function. Thus at the moment I have a bw image with black background and a random continuous white line, which I have to detect and then analyse.
> the white line width is grater than 1 pixel, I'd like to reduce it to a 1 pixel line. Any idea of what I could do?
> thank you

This should do the trick:
bwmask_out = bwmorph(bwmask_in, 'thin', Inf);

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.