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

<para>Fast cross-correlation search for the best fit of a 3D map to a template. </para>
 
</para>
<programlisting>#include &quot;rwimg.h&quot;
#include &quot;mg_processing.h&quot;
#include &quot;mg_particle_select.h&quot;
#include &quot;rwmg.h&quot;
#include &quot;linked_list.h&quot;
#include &quot;file_util.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>double <link linkend="_bfcc_8cpp_1a95020f602b2aabd6a303d3b126aedcc5">img_fcc_search</link> (<link linkend="_class_bimage">Bimage</link> *p, <link linkend="_class_bimage">Bimage</link> *ptemp, <link linkend="_class_view">View</link> *view, <link linkend="_class_f_s_i___kernel">FSI_Kernel</link> *<link linkend="_structkernel">kernel</link>, double hires, double lores, <link linkend="_class_bimage">Bimage</link> *pmask)</para>

<para>Fast cross-correlation searches a 2D/3D density map for a template. </para>
</listitem>
            <listitem><para>double <link linkend="_bfcc_8cpp_1a358992990791a7d18dc65ddfa9b5b9f5">img_fcc_for_view</link> (<link linkend="_class_bimage">Bimage</link> *p, <link linkend="_class_bimage">Bimage</link> *ptemp, <link linkend="_class_view">View</link> view, <link linkend="_class_f_s_i___kernel">FSI_Kernel</link> *<link linkend="_structkernel">kernel</link>, double hires, double lores, <link linkend="_class_bimage">Bimage</link> *pmask)</para>
</listitem>
            <listitem><para>double <link linkend="_bfcc_8cpp_1a09ba5cdff4b0f3b66e2e1525d3b306a7">img_cc_for_view</link> (<link linkend="_class_bimage">Bimage</link> *p, <link linkend="_class_bimage">Bimage</link> *ptemp, <link linkend="_class_view">View</link> view, <link linkend="_class_f_s_i___kernel">FSI_Kernel</link> *<link linkend="_structkernel">kernel</link>, double hires, double lores, double searchrad, <link linkend="_class_bimage">Bimage</link> *pmask)</para>
</listitem>
            <listitem><para>int <link linkend="_bfcc_8cpp_1a3c04138a5bfe5d72780bb7e82a18e627">main</link> (int argc, char **argv)</para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Variables    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_bfcc_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453">verbose</link></para>
</listitem>
            <listitem><para>const char * <link linkend="_bfcc_8cpp_1a4de0ad4c7190962494815c0fa7f948df">use</link> []</para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Fast cross-correlation search for the best fit of a 3D map to a template. </para>

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

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

<para>Created: 20130523 </para>

<para>Modified: 20160604 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_bfcc_8cpp_1a09ba5cdff4b0f3b66e2e1525d3b306a7"/>    <section>
    <title>img_cc_for_view()</title>
<indexterm><primary>img_cc_for_view</primary><secondary>bfcc.cpp</secondary></indexterm>
<indexterm><primary>bfcc.cpp</primary><secondary>img_cc_for_view</secondary></indexterm>
<para><computeroutput>double img_cc_for_view (<link linkend="_class_bimage">Bimage</link> * p, <link linkend="_class_bimage">Bimage</link> * ptemp, <link linkend="_class_view">View</link> view, <link linkend="_class_f_s_i___kernel">FSI_Kernel</link> * kernel, double hires, double lores, double searchrad, <link linkend="_class_bimage">Bimage</link> * pmask)</computeroutput></para><para>
Definition at line 736 of file bfcc.cpp.</para>
    </section><anchor xml:id="_bfcc_8cpp_1a358992990791a7d18dc65ddfa9b5b9f5"/>    <section>
    <title>img_fcc_for_view()</title>
<indexterm><primary>img_fcc_for_view</primary><secondary>bfcc.cpp</secondary></indexterm>
<indexterm><primary>bfcc.cpp</primary><secondary>img_fcc_for_view</secondary></indexterm>
<para><computeroutput>double img_fcc_for_view (<link linkend="_class_bimage">Bimage</link> * p, <link linkend="_class_bimage">Bimage</link> * ptemp, <link linkend="_class_view">View</link> view, <link linkend="_class_f_s_i___kernel">FSI_Kernel</link> * kernel, double hires, double lores, <link linkend="_class_bimage">Bimage</link> * pmask)</computeroutput></para><para>
Definition at line 664 of file bfcc.cpp.</para>
    </section><anchor xml:id="_bfcc_8cpp_1a95020f602b2aabd6a303d3b126aedcc5"/>    <section>
    <title>img_fcc_search()</title>
<indexterm><primary>img_fcc_search</primary><secondary>bfcc.cpp</secondary></indexterm>
<indexterm><primary>bfcc.cpp</primary><secondary>img_fcc_search</secondary></indexterm>
<para><computeroutput>double img_fcc_search (<link linkend="_class_bimage">Bimage</link> * p, <link linkend="_class_bimage">Bimage</link> * ptemp, <link linkend="_class_view">View</link> * view, <link linkend="_class_f_s_i___kernel">FSI_Kernel</link> * kernel, double hires, double lores, <link linkend="_class_bimage">Bimage</link> * pmask)</computeroutput></para><para>

<para>Fast cross-correlation searches a 2D/3D density map for a template. </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>*p</entry>
                                <entry>
<para>the Fourier transformed image. </para>
</entry>
                            </row>
                            <row>
                                <entry>*ptemp</entry>
                                <entry>
<para>the Fourier transformed template to be searched for. </para>
</entry>
                            </row>
                            <row>
                                <entry>view</entry>
                                <entry>
<para>view. </para>
</entry>
                            </row>
                            <row>
                                <entry>*kernel</entry>
                                <entry>
<para>interpolation kernel. </para>
</entry>
                            </row>
                            <row>
                                <entry>hires</entry>
                                <entry>
<para>high resolution limit. </para>
</entry>
                            </row>
                            <row>
                                <entry>lores</entry>
                                <entry>
<para>low resolution limit. </para>
</entry>
                            </row>
                            <row>
                                <entry>*pmask</entry>
                                <entry>
<para>mask for cross-correlation (ignored if NULL). </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>double correlation coefficient. <literallayout><computeroutput>The template is rotated to the view and cross-correlated to find
a set of high-scoring fits.
The views must be calculated externally to allow for custom sets.
The best view is returned in the image view record.
</computeroutput></literallayout> </para>
</formalpara>
</para>
<para>
Definition at line 594 of file bfcc.cpp.</para>
    </section><anchor xml:id="_bfcc_8cpp_1a3c04138a5bfe5d72780bb7e82a18e627"/>    <section>
    <title>main()</title>
<indexterm><primary>main</primary><secondary>bfcc.cpp</secondary></indexterm>
<indexterm><primary>bfcc.cpp</primary><secondary>main</secondary></indexterm>
<para><computeroutput>int main (int argc, char ** argv)</computeroutput></para><para>
Definition at line 100 of file bfcc.cpp.</para>
</section>
</section>
<section>
<title>Variable Documentation</title>
<anchor xml:id="_bfcc_8cpp_1a4de0ad4c7190962494815c0fa7f948df"/>    <section>
    <title>use</title>
<indexterm><primary>use</primary><secondary>bfcc.cpp</secondary></indexterm>
<indexterm><primary>bfcc.cpp</primary><secondary>use</secondary></indexterm>
<para><computeroutput>const char* use[]</computeroutput></para><para>
Definition at line 33 of file bfcc.cpp.</para>
    </section><anchor xml:id="_bfcc_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453"/>    <section>
    <title>verbose</title>
<indexterm><primary>verbose</primary><secondary>bfcc.cpp</secondary></indexterm>
<indexterm><primary>bfcc.cpp</primary><secondary>verbose</secondary></indexterm>
<para><computeroutput>int verbose</computeroutput></para></section>
</section>
</section>
