Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 ]
Jeff

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 " <emika@hotmail.it> wrote in message <jra7s3$nve$1@newscl01ah.mathworks.com>...
> 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.
>
> PROBLEM :
> 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]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.