home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
vis-ftp.cs.umass.edu
/
vis-ftp.cs.umass.edu.tar
/
vis-ftp.cs.umass.edu
/
pub
/
imdb
/
image-db.hlp
< prev
next >
Wrap
Text File
|
1990-12-11
|
6KB
|
179 lines
1 Add-Image
Format:
IMDB> Add-Image image-name description-file keyword1 ... keywordN
Adds a new image description record. The image name must be unique and not
allready in use in the image DB file. The description file is just an
ordinary text file. The keywords should be brief descriptive words.
1 Close-IMDB-Libr
Format:
IMDB> Close-IMDB-Libr
Closes the currently opened image db file. If the file is still open upon
exiting, it is automatically closed.
1 Command-Structure
The commands to IMAGEDB program fall into several groups:
o File open and close commands:
Create-IMDB-Libr, Open-IMDB-Libr, and Close-IMDB-Libr.
o Update commands:
Add-Image, Delete-Image, and Replace-Image.
o Interagation commands:
Directory, List-Keywords, Describe-Image, Extract-Image,
Search-Image-DB, Show-Select, File-Select, and Kill-Select.
o Other commands:
Help and Exit.
1 Command-Syntax
The IMAGEDB command line consists of one or more "words". Words are
separated by whitespace characters (space, tab, etc.). Commands can be
abbrivated to the minimum characters needed to resolve ambiguity.
2 Escape characters
Words normally cannot contain whitespace characters. There are two ways
to handle "exotic" characters. One way is to prefix the exotic character
with a backslash character (\). The other way is to put double quote marks
(") around the word. Examples:
Image-with-a\\-backslash
Image\ name\ with\ spaces
"Keyword 1"
While these sorts of keywords and image names are posible, they are hard to
type and probably shouldn't be used unless necessary.
2 Line continuation.
Commands can be continued over 2 or more lines with the use of the line
continuation. This is done by placing a backslash as the last character
before the newline character at the end of the line. Both this backslash and
the newline character are discarded and the next line is tacked onto the end
of the current line. Line continuation can occur in the midst of a word not
in quote marks.
2 Name processing.
Image names are limited to 31 characters and keywords to 15 characters.
Neither can contain commas. IMAGEDB program will truncate a longer image
names to 31 characters and keywords to 15 characters as well as replace
commas with semicolons without complaining. Also, image names and keywords
are converted to uppercase for internal storage.
1 Create-IMDB-Libr
Format:
IMDB> Create-IMDB-Libr library-file-name
Creates a new, empty image db file. File is opened for update access.
The file gets a default type of ".ilb".
1 Delete-Image
Format:
IMDB> Delete-Image image-name
Deletes an image description record.
1 Describe-Image
Format:
IMDB> Describe-Image image-name
Describes a specified image. The keywords and the description record for
the specified image is displayed on standard output.
1 Directory
Format:
IMDB> Directory [wildcarded-image-name]
Does a directory of the image records. If no argument is given, then "*" is
used (all image names are listed). The image name can have the standard UNIX
wildcard characters: * and ?.
1 Exit
Format:
IMDB> Exit
The exit command exits the program.
1 Extract-Image
Format:
IMDB> Extract-Image image-name description-out-file keyword-out-file
Copies the description and keywords for a specified image to the specified
output files.
1 File-Select
Format:
IMDB> File-Select output-file-name
The images on the select list are described to the specified output file.
1 HELP
The IMAGEDB program accesses and maintains image description data-bases.
These data-bases can be interagated with keyword searches. Each data record
contains two parts: a list of keywords and a body of descriptive text. Each
record has a name (usually the name of the image or image set).
Image names are limited to 31 characters and keywords are limited to 15
characters. The keyword list must fit in a space of 255 characters, which
includes a comma between keywords and a null character at the end. The
descriptive text is limited only by the available disk space.
1 Kill-Select
Format:
IMDB> Kill-Select
The current select list is cleared.
1 List-Keywords
Format:
IMDB> List-Keywords [wildcarded-keyword]
Generates a list of know keywords. If no argument is given, then "*" is
used (all keywords are listed). The keyword can have the standard UNIX
wildcard characters: * and ?.
1 Open-IMDB-Libr
Format:
IMDB> Open-IMDB-Libr library-file-name [Update]
Opens an old image db file. File can be opened for readonly access (the
default) or for update access (if the word "Update" is appended to the
command line. The file gets a default type of ".ilb".
1 Replace-Image
Format:
IMDB> Replace-Image image-name description-file keyword1 ... keywordN
Replaces an image description record. This command actually just does a
Delete-Image followed by an Add-Image.
1 Search-Image-DB
Format:
IMDB> Search-Image-DB wildcarded-keyword1 ... wildcarded-keywordN
The image DB file is searched for all images which have one or more of the
specified keywords. The keywords can have the UNIX wild card characters *
and ?. The image names are accumulated on an internal list. If the search
command is given repeatedly, the additional images names found are added to
this list. (See the Kill-Select command). The list can be viewed with the
Show-Select command. (See also the File-Select command.)
1 Show-Select
Format:
IMDB> Show-Select
The images on the select list are described to standard output. If
operating from a terminal, the IMAGEDB program will pause after each image
description, giving the user the option of quiting