From: rap2@vuse.vanderbilt.edu (Alan Peters)
Subject: announcement: Morphology Software
Followup-To: sci.image.processing
Summary: PD software for Mathematical Morphology available
Keywords: mathematical morphology
Organization: Vanderbilt University School of Engineering, Nashville, TN, USA
Date: Mon, 27 Jul 1992 16:17:55 GMT

I have written c/unix software for mathematical morphology that I have
made available via anonymous ftp. 

==============================================================================

Software for 2D and 3D Mathematical Morphology

written by

Richard Alan Peters II
Assistant Professor of Electrical Engineering
Vanderbilt University School of Engineering
Nashville, TN 37235
(615) 322-7924
rap2@vuse.vanderbilt.edu


Mathematical morphology is a powerful tool for image analysis and enhancement.
Morphological operators are shape-dependent, nonlinear image transforms such
as erosion, dilation, opening, closing, and rank filters.
The mathematical operators are defined in $n$ dimensions so it is possible to 
create programs that will operate on 1D signals, 2D images, or 3D datasets
using exactly the same concepts.
As operators on 2D binary images, mathematical morphology is well known;
much software is available which performs binary morphology.
However, the true power in morphology lies in its ability to transform grayscale
2D pixel images and 3D voxel datasets.
Software for these operations is less common.

This is a morphological software package written under the
auspices of the US Airforce Office of Scientific Research at Arnold Airforce
Base, Tullahoma, TN during the 1991 Summer Faculty Research program.
The software includes a 2D image morphology program, a 3D voxel image
morphology program, a program for enhancement and noise reduction of 2D
images, and related support routines for image arithmetic and logical 
operations.
These programs will perform many -- if not all -- of the possible morphological
operations on both binary and grayscale images.
They provide many of the commonly used features automatically or permit
the user to customize the operation to fit an application.
The user programs operate on Sun rasterfiles.
However, the main morphological routines are c-code subroutines.
These are independent of specific file formats, so a users can easily write an
interface program to operate on other file formats.

The software was written on sun sparcstations under SunOS Release 4.1.1.
However, I used no indigenous libraries other than libm.a.
The user interface is of the standard csh command-line variety.
This should make porting to other unix platforms trivial (Yeah, right!).

This software is freely redistributable, providing I and my school get 
appropriate credit where due.
I am not in a position to actively support development of this software.
Nor do I have a lot of time to answer questions about it, although I'll
make every attempt to do so. 
The software was used by a dozen grad students in a seminar class this
spring; so I'm reasonably sure the most egregious bugs have been squashed.
Please do report any bugs to me, though. I'll do what I can to fix them.

Enjoy!

-Alan.

Installation instructions:

1.	cd to whatever directory in which you want to have the installation
    procedure create and fill a directory called "morph".

2.	ftp to taacman and get morph.tar.Z. A transcription of a typical session
	follows:

	% ftp 129.59.100.16
	Connected to 129.59.100.16.
	220 image FTP server (SunOS 4.1) ready.
	Name (nnn.nn.nnn.nn:xxx): anonymous
	331 Guest login ok, send ident as password.
	Password: [your email address]
	230 Guest login ok, access restrictions apply
	ftp> cd /pub
	250 CWD command successful.
	ftp> bin
	200 Type set to I.
	ftp> get morph.tar.Z
	200 PORT command successful.
	150 Binary data connection for morph.tar.Z (n.n.n.n,xxxx) (243551 bytes).
	226 Binary Transfer complete.
	local: morph.tar.Z remote: morph.tar.Z
	243551 bytes received in 2.9 seconds (81 Kbytes/s)
	ftp> quit
	221 Goodbye.

3.	dearchive the morph directory and its contents:

	zcat morph.tar.Z | tar xvf -

	x morph/Makefile, 1593 bytes, 4 tape blocks
	x morph/arith/maximg.c, 2437 bytes, 5 tape blocks
	x morph/arith/linco.c, 7716 bytes, 16 tape blocks

	...

	x morph/.nse_depinfo, 201 bytes, 1 tape blocks
	x morph/man/man1/morph.1, 9134 bytes, 18 tape blocks
	x morph/man/man1/linco.1, 3107 bytes, 7 tape blocks

4.	change access permission of directory "morph" (if you want to)

	chmod 755 morph

5.	cd to morph and make either all of morph 

	cd morph
	make

	or just the library

	cd morph
	make library


-- 
Newsgroups: sci.image.processing