home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
m
/
morpho.zip
/
morpho
/
README
< prev
Wrap
Text File
|
1992-08-20
|
3KB
|
80 lines
Hello!
This directory contains a tar file in which is a toolbox named
"morpho", containing routines for greyscale morphology.
In addition to the tar file containing
the toolbox is this README. This README provides instructions for
setting up and compiling the toolbox.
First, acquire the "morpho.tar.Z" file with "binary" mode set to
TRUE on ftp. ( ftp> bin ).
Next, create a location for toolboxes if you have not already done
so. It doesn't matter where, but don't put it in $KHOROS_HOME/src.
You may want to create a $KHOROS_HOME/toolboxes, or some such location.
Move the tar file to that directory.
Next, untar the toolbox with the command:
% zcat morpho.tar.Z | tar -xfoB -
-OR-
% uncompress -c morpho.tar.Z | tar -xfoB -
This will create the "morpho" toolbox for you, with the conversion
routines in it. I will refer to the path {toolbox location}/morpho
as the "top dir".
Now, you will need to modify the "Toolboxes" file to get access to
the new toolbox. I recommend that you copy the file
$KHOROS_HOME/repos/Toolboxes to your own account, and add the following
line:
MORPHO:/{your home directory}/morpho:morpho Toolbox:A toolbox for
morphology:G. W . Donohoe:$MORPHO/.Toolbox_info
Note that this MUST be all one long line (NO carriage returns!), and
that you must substitute your "top dir" in the second field, according
to where you untarred the toolbox. DO NOT PUT ANY SPACES IN THE
SECOND FIELD, BEFORE OR AFTER THE COLON (:).
Set the KHOROS_TOOLBOX environment variable to this modified
toolbox file:
% setenv KHOROS_TOOLBOX {modified Toolbox file}
As this will need to be done every time you log in, you may want to
put it in your ".cshrc" file.
Next, you will need to compile the routines. If compiling a single
architecture, you must follow the steps below. If you are compiling
multiple architectures, please see Chapter 9 of the Khoros Programmer's
Manual, on "Configuration Management".
1) modify the {top dir}/repos/config/src_conf/morpho file.
- substitute your user name as the KHOROS_USER on line 32.
- substitute the absolute location to the LOCAL_SRC_TOP on
line 39. Use "\pwd" in the toolbox/src directory to
get the absolute path, and replace /a/rocky/research/data4/morpho/
with this path.
2) cd {top dir}/src
3) make Makefile Makefiles
4) make depend
5) make install
Finally, you will need to add {top dir}/bin to your path so that you
will be able to execute the routines. You may want to do this in your
".cshrc" file, so that you will not have to remember to set the path
every time you log in.
Good luck!
~ Greg Donohoe
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Greg Donohoe, Assistant Professor
Electrical and Computer Engineering
University of New Mexico
Albuquerque, NM 87131 USA Tel: 505-277-6724
donohoe@chama.eece.unm.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~