Erode without breaking continuous line

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Erode without breaking continuous line

jmcginnity
This post was updated on .
Hi, I have circular images with whose borders are of varying thickness.  An example is shown. I wish to Erode the circles by only one pixel but do not wish to break the continuity of the circle.  I do not wish to skeletonize.  Is there a way to do this?

Thanks,
Justin McGinnity
Extractive Metallurgy
Murdoch University
Perth,
Australia

Example of circular shape



Reply | Threaded
Open this post in threaded view
|

Re: Erode without breaking continuous line

Herbie
Good day,

did you try "Process > Binary > Skeletonize"?

You may also have a look at the "ImageJ User Guide" at:
<http://rsb.info.nih.gov/ij/docs/index.html>

HTH

Herbie
::::::::::::::::::::::::::::::::::::::::
Am 13.02.16 um 16:04 schrieb jmcginnity:

> Hi, I have circular images with whose borders are of varying
> thickness.  An example is shown. I wish to Erode the circles by one
> or two pixels but do not wish to break the circle.  Is there a way to
> do this? Thanks, Justin McGinnity Extractive Metallurgy Murdoch
> University Perth, Australia
>
> <http://imagej.1557.x6.nabble.com/file/n5015621/Circle.jpg>
>
>
>
>
>
>
>
> -- View this message in context:
> http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621.html
>
>
Sent from the ImageJ mailing list archive at Nabble.com.
>
> -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

RE: Erode without breaking continuous line

jmcginnity
Hi Herbie,
I do not wish to Skeletonize as it causes other shapes to become distorted.
Regards,
Justin

From: Herbie-5 [via ImageJ] [ml-node+[hidden email]]
Sent: Sunday, 14 February 2016 12:48 AM
To: Justin McGinnity
Subject: Re: Erode without breaking continuous line

Good day,

did you try "Process > Binary > Skeletonize"?

You may also have a look at the "ImageJ User Guide" at:
<http://rsb.info.nih.gov/ij/docs/index.html>

HTH

Herbie
::::::::::::::::::::::::::::::::::::::::
Am 13.02.16 um 16:04 schrieb jmcginnity:

> Hi, I have circular images with whose borders are of varying
> thickness.  An example is shown. I wish to Erode the circles by one
> or two pixels but do not wish to break the circle.  Is there a way to
> do this? Thanks, Justin McGinnity Extractive Metallurgy Murdoch
> University Perth, Australia
>
> <http://imagej.1557.x6.nabble.com/file/n5015621/Circle.jpg>
>
>
>
>
>
>
>
> -- View this message in context:
> http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621.html
>
>
Sent from the ImageJ mailing list archive at Nabble.com.
>
> -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html



If you reply to this email, your message will be added to the discussion below:
http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621p5015622.html
To unsubscribe from Erode without breaking continuous line, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Erode without breaking continuous line

Jeremy Adler
The skeletonize does not break your original binary image, so perform whatever erosion you want and then combine the eroded image with the skeleton image using a OR operation - any parts that are broken off by the erosion are then rejoined by the skeleton.


________________________________________
From: ImageJ Interest Group [[hidden email]] on behalf of jmcginnity [[hidden email]]
Sent: 14 February 2016 00:25
To: [hidden email]
Subject: Re: Erode without breaking continuous line

Hi Herbie,
I do not wish to Skeletonize as it causes other shapes to become distorted.
Regards,
Justin
________________________________
From: Herbie-5 [via ImageJ] [[hidden email]]
Sent: Sunday, 14 February 2016 12:48 AM
To: Justin McGinnity
Subject: Re: Erode without breaking continuous line

Good day,

did you try "Process > Binary > Skeletonize"?

You may also have a look at the "ImageJ User Guide" at:
<http://rsb.info.nih.gov/ij/docs/index.html>

HTH

Herbie
::::::::::::::::::::::::::::::::::::::::
Am 13.02.16 um 16:04 schrieb jmcginnity:

> Hi, I have circular images with whose borders are of varying
> thickness.  An example is shown. I wish to Erode the circles by one
> or two pixels but do not wish to break the circle.  Is there a way to
> do this? Thanks, Justin McGinnity Extractive Metallurgy Murdoch
> University Perth, Australia
>
> <http://imagej.1557.x6.nabble.com/file/n5015621/Circle.jpg>
>
>
>
>
>
>
>
> -- View this message in context:
> http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621.html
>
>
Sent from the ImageJ mailing list archive at Nabble.com.
>
> -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html


________________________________
If you reply to this email, your message will be added to the discussion below:
http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621p5015622.html
To unsubscribe from Erode without breaking continuous line, click here<
NAML<
http://imagej.1557.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621p5015625.html
Sent from the ImageJ mailing list archive at Nabble.com.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Erode without breaking continuous line

Gabriel Landini
In reply to this post by jmcginnity
On Saturday 13 Feb 2016 07:04:25 you wrote:
> Hi, I have circular images with whose borders are of varying thickness.  An
> example is shown. I wish to Erode the circles by one or two pixels but do
> not wish to break the circle.  Is there a way to do this?

Maybe the BinaryThin or BinaryThin2 plugins in the Morphology set can be used
for that if you limit the number of iterations to 1 or 2.
There are a few examples of macros using those at:
http://www.mecourse.com/landinig/software/software.html
The direct link to the Morphology plugins is
http://www.mecourse.com/landinig/software/morphology.zip

Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

RE: Erode without breaking continuous line

jmcginnity
In reply to this post by Jeremy Adler

Thanks Jeremy.

It is simple and works.

Justin

 

From: Jeremy Adler [via ImageJ] [mailto:ml-node+[hidden email]]
Sent: Sunday, 14 February 2016 5:31 PM
To: Justin McGinnity
Subject: Re: Erode without breaking continuous line

 

The skeletonize does not break your original binary image, so perform whatever erosion you want and then combine the eroded image with the skeleton image using a OR operation - any parts that are broken off by the erosion are then rejoined by the skeleton.


________________________________________
From: ImageJ Interest Group [[hidden email]] on behalf of jmcginnity [[hidden email]]
Sent: 14 February 2016 00:25
To: [hidden email]
Subject: Re: Erode without breaking continuous line

Hi Herbie,
I do not wish to Skeletonize as it causes other shapes to become distorted.
Regards,
Justin
________________________________
From: Herbie-5 [via ImageJ] [[hidden email]]
Sent: Sunday, 14 February 2016 12:48 AM
To: Justin McGinnity
Subject: Re: Erode without breaking continuous line

Good day,

did you try "Process > Binary > Skeletonize"?

You may also have a look at the "ImageJ User Guide" at:
<http://rsb.info.nih.gov/ij/docs/index.html>

HTH

Herbie
::::::::::::::::::::::::::::::::::::::::
Am 13.02.16 um 16:04 schrieb jmcginnity:


> Hi, I have circular images with whose borders are of varying
> thickness.  An example is shown. I wish to Erode the circles by one
> or two pixels but do not wish to break the circle.  Is there a way to
> do this? Thanks, Justin McGinnity Extractive Metallurgy Murdoch
> University Perth, Australia
>
> <http://imagej.1557.x6.nabble.com/file/n5015621/Circle.jpg>
>
>
>
>
>
>
>
> -- View this message in context:
> http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621.html
>
>

Sent from the ImageJ mailing list archive at Nabble.com.
>
> -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html


________________________________
If you reply to this email, your message will be added to the discussion below:
http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621p5015622.html
To unsubscribe from Erode without breaking continuous line, click here<
NAML<
http://imagej.1557.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621p5015625.html
Sent from the ImageJ mailing list archive at Nabble.com.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html


If you reply to this email, your message will be added to the discussion below:

http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621p5015628.html

To unsubscribe from Erode without breaking continuous line, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

RE: Erode without breaking continuous line

jmcginnity
In reply to this post by Gabriel Landini

Thanks Gabriel,

I’ll give this a try also.

Justin

 

From: Gabriel Landini [via ImageJ] [mailto:ml-node+[hidden email]]
Sent: Sunday, 14 February 2016 6:55 PM
To: Justin McGinnity
Subject: Re: Erode without breaking continuous line

 

On Saturday 13 Feb 2016 07:04:25 you wrote:
> Hi, I have circular images with whose borders are of varying thickness.  An
> example is shown. I wish to Erode the circles by one or two pixels but do
> not wish to break the circle.  Is there a way to do this?

Maybe the BinaryThin or BinaryThin2 plugins in the Morphology set can be used
for that if you limit the number of iterations to 1 or 2.
There are a few examples of macros using those at:
http://www.mecourse.com/landinig/software/software.html
The direct link to the Morphology plugins is
http://www.mecourse.com/landinig/software/morphology.zip

Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html


If you reply to this email, your message will be added to the discussion below:

http://imagej.1557.x6.nabble.com/Erode-without-breaking-continuous-line-tp5015621p5015629.html

To unsubscribe from Erode without breaking continuous line, click here.
NAML