<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_baddmask_8cpp">
<title>/Users/bernard/b20/bsoft/src/baddmask.cpp File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/src/baddmask.cpp</primary></indexterm>
<para>

<para>Program to catenate image files. </para>
 
</para>
<programlisting>#include &quot;rwimg.h&quot;
#include &quot;img_combine.h&quot;
#include &quot;utilities.h&quot;
#include &quot;options.h&quot;
#include &quot;timer.h&quot;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para><link linkend="_class_bimage">Bimage</link> * <link linkend="_baddmask_8cpp_1a6a96871a187dc3f848915a7fafd3d610">img_composite_mask</link> (<link linkend="_class_bstring">Bstring</link> *file_list, int mask_type)</para>

<para>Generates a composite of multiple masks. </para>
</listitem>
            <listitem><para>int <link linkend="_baddmask_8cpp_1a3c04138a5bfe5d72780bb7e82a18e627">main</link> (int argc, char **argv)</para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Variables    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_baddmask_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453">verbose</link></para>
</listitem>
            <listitem><para>const char * <link linkend="_baddmask_8cpp_1a4de0ad4c7190962494815c0fa7f948df">use</link> []</para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Program to catenate image files. </para>

<para><formalpara><title>Author: </title>

<para>Bernard Heymann </para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 20091117 </para>

<para>Modified: 20170117 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_baddmask_8cpp_1a6a96871a187dc3f848915a7fafd3d610"/>    <section>
    <title>img_composite_mask()</title>
<indexterm><primary>img_composite_mask</primary><secondary>baddmask.cpp</secondary></indexterm>
<indexterm><primary>baddmask.cpp</primary><secondary>img_composite_mask</secondary></indexterm>
<para><computeroutput><link linkend="_class_bimage">Bimage</link> * img_composite_mask (<link linkend="_class_bstring">Bstring</link> * file_list, int mask_type)</computeroutput></para><para>

<para>Generates a composite of multiple masks. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*file_list</entry>
                                <entry>
<para>list of file names. </para>
</entry>
                            </row>
                            <row>
                                <entry>mask_type</entry>
                                <entry>
<para>type of mask to generate (2/3). </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>Bimage* composite mask (4-byte integer). <literallayout><computeroutput>The composite mask can be either a multi-bit mask (mask_type = 2),
or a multi-level mask (mask_type = 3).
</computeroutput></literallayout> </para>
</formalpara>
</para>
<para>
Definition at line 148 of file baddmask.cpp.</para>
    </section><anchor xml:id="_baddmask_8cpp_1a3c04138a5bfe5d72780bb7e82a18e627"/>    <section>
    <title>main()</title>
<indexterm><primary>main</primary><secondary>baddmask.cpp</secondary></indexterm>
<indexterm><primary>baddmask.cpp</primary><secondary>main</secondary></indexterm>
<para><computeroutput>int main (int argc, char ** argv)</computeroutput></para><para>
Definition at line 43 of file baddmask.cpp.</para>
</section>
</section>
<section>
<title>Variable Documentation</title>
<anchor xml:id="_baddmask_8cpp_1a4de0ad4c7190962494815c0fa7f948df"/>    <section>
    <title>use</title>
<indexterm><primary>use</primary><secondary>baddmask.cpp</secondary></indexterm>
<indexterm><primary>baddmask.cpp</primary><secondary>use</secondary></indexterm>
<para><computeroutput>const char* use[]</computeroutput></para><emphasis role="strong">Initial value:</emphasis><programlisting>=&#32;{
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Usage:&#32;baddmask&#32;[options]&#32;input.images&quot;</emphasis>,
<emphasis role="stringliteral">&quot;--------------------------------------&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Adds&#32;multiple&#32;masks&#32;to&#32;generate&#32;a&#32;new&#32;composite&#32;mask.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Any&#32;number&#32;of&#32;input&#32;images&#32;may&#32;be&#32;given&#32;and&#32;may&#32;include&#32;the&#32;wild&#32;card&#32;\&quot;*\&quot;.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Actions:&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-type&#32;bit&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Type&#32;of&#32;composite&#32;mask:&#32;uniform/bit/level.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Parameters:&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-verbose&#32;7&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Verbosity&#32;of&#32;output.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-datatype&#32;u&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Force&#32;writing&#32;of&#32;a&#32;new&#32;data&#32;type.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-sampling&#32;1.5,1.5,1.5&#32;&#32;&#32;&#32;Sampling&#32;(A/pixel;&#32;a&#32;single&#32;value&#32;can&#32;be&#32;given).&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-origin&#32;0.8,-10,15.7&#32;&#32;&#32;&#32;&#32;Set&#32;the&#32;origin&#32;(default&#32;from&#32;input&#32;image).&quot;</emphasis>,
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Output:&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-output&#32;output.img&#32;&#32;&#32;&#32;&#32;&#32;&#32;Output&#32;image&#32;(default&#32;sum.map).&quot;</emphasis>,
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
NULL
}
</programlisting><para>
Definition at line 21 of file baddmask.cpp.</para>
    </section><anchor xml:id="_baddmask_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453"/>    <section>
    <title>verbose</title>
<indexterm><primary>verbose</primary><secondary>baddmask.cpp</secondary></indexterm>
<indexterm><primary>baddmask.cpp</primary><secondary>verbose</secondary></indexterm>
<para><computeroutput>int verbose</computeroutput></para></section>
</section>
</section>
