Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
22 posts
|
Hi,
I wish to fill circles that intersect the edge of the image. I've tried Fill Holes but this only fills holes that are completely bounded. Is there a macro that enables a hole to be filled where one of its edges is the edge of the window? Please see the image below which shows some doughnut shapes on the edges that I would like to fill. ![]() Thanks, Justin |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
466 posts
|
Hi Justin,
Please try: Process->Binary->Fill_Holes Best regards, Philippe -----Message d'origine----- De : ImageJ Interest Group [mailto:[hidden email]] De la part de jmcginnity Envoyé : mardi 14 janvier 2014 16:43 À : [hidden email] Objet : Fill holes of circles on edge Hi, I wish to fill circles that intersect the edge of the image. I've tried Fill Holes but this only fills holes that are completely bounded. Is there a macro that enables a hole to be filled where one of its edges is the edge of the window? Please see the image below which shows some doughnut shapes on the edges that I would like to fill. <http://imagej.1557.x6.nabble.com/file/n5006118/Slice1a.jpg> Thanks, Justin -- View this message in context: http://imagej.1557.x6.nabble.com/Fill-holes-of-circles-on-edge-tp5006118.htm l 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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
2136 posts
|
In reply to this post by jmcginnity
Hi Justin,
you can try this macro: w=getWidth(); h=getHeight(); run("Invert"); run("Canvas Size...", "width="+(w+1)+" height="+(h+1)+" position=Top-Left"); run("Invert"); run("Fill Holes"); run("Canvas Size...", "width=&w height=&h position=Top-Left zero"); run("Invert"); run("Canvas Size...", "width="+(w+1)+" height="+(h+1)+" position=Bottom-Right"); run("Invert"); run("Fill Holes"); run("Canvas Size...", "width=&w height=&h position=Bottom-Right zero"); Michael ________________________________________________________________ On Jan 14, 2014, at 16:43, jmcginnity wrote: > Hi, > I wish to fill circles that intersect the edge of the image. I've tried > Fill Holes but this only fills holes that are completely bounded. Is there > a macro that enables a hole to be filled where one of its edges is the edge > of the window? Please see the image below which shows some doughnut shapes > on the edges that I would like to fill. > <http://imagej.1557.x6.nabble.com/file/n5006118/Slice1a.jpg> > > Thanks, > > Justin > > > > -- > View this message in context: http://imagej.1557.x6.nabble.com/Fill-holes-of-circles-on-edge-tp5006118.html > Sent from the ImageJ mailing list archive at Nabble.com. > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html ... [show rest of quote] -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
22 posts
|
Hi Michael,
Thanks. It works really well. with appreciation, Justin |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
22 posts
|
From: jmcginnity [via ImageJ] [mailto:ml-node+[hidden email]]
Hi Michael, If you reply to this email, your message will be added to the discussion below: http://imagej.1557.x6.nabble.com/Fill-holes-of-circles-on-edge-tp5006118p5006127.html
To unsubscribe from Fill holes of circles on edge,
click here. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
1 post
|
In reply to this post by Michael Schmid
Hello Michael
Your code works perfectly so thank you for sharing. Although if an area that needs to be filled is touching to the "bottom left" or "top right" corner of the image simultaneously, it escapes filling. A workarround is obviously adding 2 more Canvas expansions to include Top Right and Bottom Left as well but then it becomes too much work just to fill maximum two empty areas. Cheers & Thanks Ferhat |
Free forum by Nabble | Disable Popup Ads | Edit this page |