Posted by
Prodanov Dimiter on
Feb 21, 2011; 11:17am
URL: http://imagej.273.s1.nabble.com/Erode-Dilate-tp3685602p3685603.html
Hi Daniel
Try line erode in Gray Morphology
Best regards,
Dimiter
-----Original Message-----
From: Daniel James White [mailto:
[hidden email]]
Sent: Friday 18 February 2011 14:35
Subject: Re: Erode/Dilate
Hi Alfred,
On Feb 18, 2011, at 6:01 AM, IMAGEJ automatic digest system wrote:
>
> Date: Thu, 17 Feb 2011 12:56:19 -0500
> From: Alfred Wagner <
[hidden email]>
> Subject: Erode/Dilate
>
> Hello ImageJ Users,
>
> Is there any way to dilate or erode a binary image in one axis/direction
> only, rather than symmetrically around the objects?
Yes, but you need to understand how spatial filtering works.
read the wikipedia articles on spatial filters and their kernels,
and on morphological filters.
Morphological filters can be implemented as spatial filters using a kernel of a certain shape.
try the
convolve
plugin
using this , asymmetrical "kernel"
0 1 0
0 1 0
0 1 0
ot this one
0 0 0
1 1 1
0 0 0
(tip, turn off normalize Kernel, and you can only use kernels that have odd numbers of ca;lues in x and y,
meaning there must be a central value....
values should be separated by spaces.
you will be interested to see what happens!
If you understand how this works, you can perform the magic you require... and much much more.
cheers
Dan
>
[hidden email]
> The binary images I'm using are primarily shapes with 90 or 180 degree
> corners, i.e. not many rounded shapes.
>
> I've considered shifting duplicate images along one axis and ORing with
> the original image, but the run time starts to get very long when
> processing large numbers of images.
>
> Any suggestions would be much appreciated.
>
> Thanks.
>
> Al Wagner
> IBM Watson Research Center
Dr. Daniel James White BSc. (Hons.) PhD
Senior Microscopist / Image Visualisation, Processing and Analysis
Light Microscopy and Image Processing Facilities
Max Planck Institute of Molecular Cell Biology and Genetics
Pfotenhauerstrasse 108
01307 DRESDEN
Germany
+49 (0)15114966933 (German Mobile)
+49 (0)351 210 2627 (Work phone at MPI-CBG)
+49 (0)351 210 1078 (Fax MPI-CBG LMF)
http://www.bioimagexd.net BioImageXD
http://pacific.mpi-cbg.de Fiji - is just ImageJ (Batteries Included)
http://www.chalkie.org.uk Dan's Homepages
https://ifn.mpi-cbg.de Dresden Imaging Facility Network
dan (at) chalkie.org.uk
( white (at) mpi-cbg.de )