Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Jeff
Posts:
107
Registered:
2/27/10
|
|
Re: Line smoothing within bw image
Posted:
Jun 13, 2012 4:30 PM
|
|
"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);
|
|
|
|