<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
                   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<!-- lifted from troff+man by doclifter -->
<refentry id='dwsq141'>
<!--  @(#)dwsq14.1 2001/04/02 NIST -->
<!--  I Image Group -->
<!--  Craig Watson and Michael D. Garris -->

<refmeta>
<refentrytitle>DWSQ14</refentrytitle>
<manvolnum>1D</manvolnum>
<refmiscinfo class='date'>02 April 2001</refmiscinfo>
<refmiscinfo class='source'>NIST</refmiscinfo>
<refmiscinfo class='manual'>NFIS Reference Manual</refmiscinfo>
</refmeta>
<refnamediv id='name'>
<refname>dwsq14</refname>
<refpurpose>decompresses a WSQ14-encoded grayscale fingerprint image from NIST Special Database 14.</refpurpose>
</refnamediv>
<!-- body begins here -->
<refsynopsisdiv id='synopsis'>
<cmdsynopsis>
  <command>dwsq14</command>    
    <arg choice='plain'><replaceable>&lt;outext&gt;&lt;imagefile&gt;</replaceable></arg>
    <arg choice='opt'>-raw_out </arg>
    <sbr/>
</cmdsynopsis>
</refsynopsisdiv>


<refsect1 id='description'><title>DESCRIPTION</title>
<para><emphasis remap='B'>Dwsq14</emphasis>
takes as input a file containing a WSQ14-compressed grayscale fingerprint
image from NIST Special Database 14.  The version of WSQ14 used to compress
the images on this database is not certified and produces loss that may
be more than permitted by a certified WSQ compression algorithm.  Once
read into memory, the lossy-compressed pixmap is decoded and reconstructed
using Wavelet Scalar Quantization as described in the FBI's Criminal
Justice Information Services (CJIS) document, "WSQ Gray-scale Fingerprint
Compressions Specification," Dec. 1997.  This is the only fingerprint
compression format accepted by the FBI IAFIS system.</para>

<para>Upon completion, two different output image file formats are possible,
a NIST IHead file (the default) or a raw pixmap file (specified by the
<option>-raw_out</option> flag).  In addition, a specially formatted text
file, called a NISTCOM, is created with extension ".ncm".  The NISTCOM
file contains relevant image attributes associated with the decoded
and reconstructed output image.
(See NISTCOM OUTPUT below.)</para>

</refsect1>

<refsect1 id='options'><title>OPTIONS</title>
<para>All switch names may be abbreviated; for example,
<option>-raw_out</option> may be written <option>-r</option>.</para>
<variablelist remap='TP'>
  <varlistentry>
  <term><emphasis remap='I'>&lt;outext&gt;</emphasis></term>
  <listitem>
<para>the extension of the decompressed output file.
To construct the output filename, <command>dwsq14</command> takes the
input filename and replaces its extension with the one
specified here.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><emphasis remap='I'>&lt;image file&gt;</emphasis></term>
  <listitem>
<para>the input WSQ14 file to be decompressed.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><option>-raw_out</option></term>
  <listitem>
<para>specifies that the decoded and reconstructed image should be
stored to a raw pixmap file.</para>

  </listitem>
  </varlistentry>
</variablelist>
</refsect1>

<refsect1 id='nistcom_output'><title>NISTCOM OUTPUT</title>
<para>Upon successful completion, <command>dwsq14</command>, creates a specially
formatted text file called a NISTCOM file.
A NISTCOM is a text-based attribute list comprised
of (name, value) pairs, one pair per text line.
The first line of a NISTCOM always has name = "NIST_COM" 
and its value is always the total number of attributes included in
the list.  These attributes are collected from two sources
and merged to represent the history and condition of the resulting
reconstructed image.  The two sources for the attributes are the
IHEAD header of the compressed image (specific information
about the fingerprint itself is contained here) and the
decompression process.  In general, attribute values from the second
source are given precedence over those from the first.</para>

<para>The NISTCOM output filename is constructed by combining the
basename of the input WSQ14 file with the extension ".ncm".
By creating the NISTCOM file, relevant attributes associated
with the decoded and reconstructed image are retained and
easily accessed.  This is especially useful when dealing with
raw pixmap files and creating image archives.  The following
is an example NISTCOM generated by <command>dwsq14</command> (highlighted
items specific to SD14):</para>

<!-- .RS -->
<para>NIST_COM 12
<!-- .br -->
PPI 500
<!-- .br -->
<emphasis remap='B'>SD_ID 14</emphasis>
<!-- .br -->
<emphasis remap='B'>HISTORY f0000001.wsq 20 tape3.t1116010.01 4096x1536</emphasis>
<!-- .br -->
<emphasis remap='B'>FING_CLASS R</emphasis>
<!-- .br -->
<emphasis remap='B'>SEX m</emphasis>
<!-- .br -->
<emphasis remap='B'>SCAN_TYPE i</emphasis>
<!-- .br -->
PIX_WIDTH 832
<!-- .br -->
PIX_HEIGHT 768
<!-- .br -->
PIX_DEPTH 8
<!-- .br -->
LOSSY 1
<!-- .br -->
COLORSPACE GRAY</para>

</refsect1>

<refsect1 id='examples'><title>EXAMPLES</title>
<para>From <emphasis remap='I'>test/imgtools/execs/dwsq14/dwsq14.src</emphasis>:</para>

<!-- .RS -->
<para><emphasis remap='B'>% dwsq14 raw sd14.old -r</emphasis>
<!-- .br -->
decompresses a WSQ14-encoded fingerprint image and stores
the reconstructed image to a raw pixmap file.  Note the
NISTCOM file, <emphasis remap='B'>sd14.ncm</emphasis>, is also created.</para>

</refsect1>

<refsect1 id='see_also'><title>SEE ALSO</title>
<para><emphasis remap='B'>cwsq</emphasis>(1D),
<emphasis remap='B'>dwsq</emphasis>(1D),
<emphasis remap='B'>dpyimage</emphasis>(1D),</para>

</refsect1>

<refsect1 id='author'><title>AUTHOR</title>
<para>NIST/ITL/DIV894/Image Group</para>
</refsect1>
</refentry>

