<?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="_bgraphseg_8cpp">
<title>/Users/bernard/b20/bsoft/src/bgraphseg.cpp File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/src/bgraphseg.cpp</primary></indexterm>
<para>

<para>Segment images into density regions using a nondirected graph. </para>
 
</para>
<programlisting>#include &quot;rwimg.h&quot;
#include &quot;options.h&quot;
#include &quot;utilities.h&quot;
#include &quot;timer.h&quot;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_bgraphseg_8cpp_1a0ddf1224851353fc92bfbff6f499fa97">main</link> (int argc, char *argv[])</para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Variables    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_bgraphseg_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453">verbose</link></para>
</listitem>
            <listitem><para>const char * <link linkend="_bgraphseg_8cpp_1a4de0ad4c7190962494815c0fa7f948df">use</link> []</para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Segment images into density regions using a nondirected graph. </para>

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

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

<para>Created: 20110318 </para>

<para>Modified: 20160306 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_bgraphseg_8cpp_1a0ddf1224851353fc92bfbff6f499fa97"/>    <section>
    <title>main()</title>
<indexterm><primary>main</primary><secondary>bgraphseg.cpp</secondary></indexterm>
<indexterm><primary>bgraphseg.cpp</primary><secondary>main</secondary></indexterm>
<para><computeroutput>int main (int argc, char * argv[])</computeroutput></para><para>
Definition at line 47 of file bgraphseg.cpp.</para>
</section>
</section>
<section>
<title>Variable Documentation</title>
<anchor xml:id="_bgraphseg_8cpp_1a4de0ad4c7190962494815c0fa7f948df"/>    <section>
    <title>use</title>
<indexterm><primary>use</primary><secondary>bgraphseg.cpp</secondary></indexterm>
<indexterm><primary>bgraphseg.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;bgraphseg&#32;[options]&#32;input.img&#32;output.img&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-----------------------------------------------&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Segment&#32;images&#32;into&#32;density&#32;regions&#32;using&#32;a&#32;nondirected&#32;graph.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Actions:&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-invert&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Invert&#32;density&#32;in&#32;the&#32;image&#32;before&#32;other&#32;operations.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-rescale&#32;-0.1,5.2&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Rescale&#32;data&#32;to&#32;average&#32;and&#32;standard&#32;deviation&#32;before&#32;other&#32;operations.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-smooth&#32;0.8&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Smooth&#32;using&#32;a&#32;gaussian&#32;kernel&#32;with&#32;the&#32;given&#32;width.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-type&#32;srm&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Type&#32;of&#32;segmentation&#32;(simple,&#32;srm).&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-minimum&#32;2300&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Join&#32;segments&#32;smaller&#32;than&#32;this&#32;size.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-voxel&#32;23,241,193,1&#32;&#32;&#32;&#32;&#32;&#32;Select&#32;the&#32;segment&#32;containing&#32;this&#32;voxel&#32;with&#32;an&#32;optional&#32;inversion&#32;flag.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-colorize&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Generate&#32;random&#32;segment&#32;colors.&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;Verbose&#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;-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;-connectivity&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Flag&#32;to&#32;use&#32;full&#32;neighbor&#32;connectivity&#32;(default&#32;2*dimension).&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-complexity&#32;1.6&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Segmentation&#32;complexity:&#32;larger&#32;value&#32;gives&#32;more&#32;regions&#32;(default&#32;1).&quot;</emphasis>,
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
<emphasis role="stringliteral">&quot;Input:&quot;</emphasis>,
<emphasis role="stringliteral">&quot;-Mask&#32;mask.tif&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Mask&#32;to&#32;limit&#32;segmentation.&quot;</emphasis>,
<emphasis role="stringliteral">&quot;&#32;&quot;</emphasis>,
NULL
}
</programlisting><para>
Definition at line 19 of file bgraphseg.cpp.</para>
    </section><anchor xml:id="_bgraphseg_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453"/>    <section>
    <title>verbose</title>
<indexterm><primary>verbose</primary><secondary>bgraphseg.cpp</secondary></indexterm>
<indexterm><primary>bgraphseg.cpp</primary><secondary>verbose</secondary></indexterm>
<para><computeroutput>int verbose</computeroutput></para></section>
</section>
</section>
