<?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="_radon__util_8h">
<title>/Users/bernard/b20/bsoft/radon/radon_util.h File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/radon/radon_util.h</primary></indexterm>
<programlisting>#include &quot;rwimg.h&quot;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_radon__util_8h_1ae51d80dee450c482f7751f4281cbd6cb">rotZ_cart</link> (double x, double y, double z, double ang, double *xx, double *yy, double *zz)</para>

<para>Rotates a vector of cartesian coordinates along the Z axis. </para>
</listitem>
            <listitem><para>int <link linkend="_radon__util_8h_1a889d47ccf32fad8b1ba0061157704c3d">rotY_cart</link> (double x, double y, double z, double ang, double *xx, double *yy, double *zz)</para>

<para>Rotates a vector of cartesian coordinates along the Y axis. </para>
</listitem>
            <listitem><para>int <link linkend="_radon__util_8h_1a9239b034e103d64c3d85e0b3b8d55bbe">rotX_cart</link> (double x, double y, double z, double ang, double *xx, double *yy, double *zz)</para>

<para>Rotates a vector of cartesian coordinates along the X axis. </para>
</listitem>
            <listitem><para>double <link linkend="_radon__util_8h_1abe06d9532178eb0039d2c65c8fdb7553">ang_one_two</link> (double a1, double b1, double a2, double b2)</para>

<para>Calculates the angle (in radians) from 2 vectors. </para>
</listitem>
            <listitem><para>int <link linkend="_radon__util_8h_1ae1e1267a08c8df5bef1e88de353c3909">sphere</link> (<link linkend="_class_bimage">Bimage</link> *p)</para>
</listitem>
            <listitem><para>int <link linkend="_radon__util_8h_1a8dccd30363bd8913d974e5fe349f8d6a">mean_to_0</link> (<link linkend="_class_bimage">Bimage</link> *p)</para>

<para>Set each value equal to old_value-(first image pixel) </para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

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

<para>P.L. Bellon, F. Cantele and S. Lanzavecchia Dip. Chimica Strutturale e Stereochimica Inorganica Via Venezian 21, 20133 Milano, Italy</para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 7 04 2003 </para>

<para>Modified: 07 07 2005 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_radon__util_8h_1abe06d9532178eb0039d2c65c8fdb7553"/>    <section>
    <title>ang_one_two()</title>
<indexterm><primary>ang_one_two</primary><secondary>radon_util.h</secondary></indexterm>
<indexterm><primary>radon_util.h</primary><secondary>ang_one_two</secondary></indexterm>
<para><computeroutput>double ang_one_two (double a1, double b1, double a2, double b2)</computeroutput></para><para>

<para>Calculates the angle (in radians) from 2 vectors. </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>a1</entry>
                                <entry>
<para>first coordinate of first vector </para>
</entry>
                            </row>
                            <row>
                                <entry>b1</entry>
                                <entry>
<para>second coordinate of first vector </para>
</entry>
                            </row>
                            <row>
                                <entry>a2</entry>
                                <entry>
<para>first coordinate of second vector </para>
</entry>
                            </row>
                            <row>
                                <entry>b2</entry>
                                <entry>
<para>second coordinate of second vector </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>double angle </para>
</formalpara>
</para>
<para>
Definition at line 89 of file radon_util.cpp.</para>
    </section><anchor xml:id="_radon__util_8h_1a8dccd30363bd8913d974e5fe349f8d6a"/>    <section>
    <title>mean_to_0()</title>
<indexterm><primary>mean_to_0</primary><secondary>radon_util.h</secondary></indexterm>
<indexterm><primary>radon_util.h</primary><secondary>mean_to_0</secondary></indexterm>
<para><computeroutput>int mean_to_0 (<link linkend="_class_bimage">Bimage</link> * p)</computeroutput></para><para>

<para>Set each value equal to old_value-(first image pixel) </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>image. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0. </para>
</formalpara>
</para>
<para>
Definition at line 193 of file radon_util.cpp.</para>
    </section><anchor xml:id="_radon__util_8h_1a9239b034e103d64c3d85e0b3b8d55bbe"/>    <section>
    <title>rotX_cart()</title>
<indexterm><primary>rotX_cart</primary><secondary>radon_util.h</secondary></indexterm>
<indexterm><primary>radon_util.h</primary><secondary>rotX_cart</secondary></indexterm>
<para><computeroutput>int rotX_cart (double x, double y, double z, double ang, double * xx, double * yy, double * zz)</computeroutput></para><para>

<para>Rotates a vector of cartesian coordinates along the X axis. </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>x</entry>
                                <entry>
<para>x coordinate of starting vector </para>
</entry>
                            </row>
                            <row>
                                <entry>y</entry>
                                <entry>
<para>y coordinate of starting vector </para>
</entry>
                            </row>
                            <row>
                                <entry>z</entry>
                                <entry>
<para>z coordinate of starting vector </para>
</entry>
                            </row>
                            <row>
                                <entry>ang</entry>
                                <entry>
<para>rotation angle (in radiants) </para>
</entry>
                            </row>
                            <row>
                                <entry>*xx</entry>
                                <entry>
<para>x coordinate of rotated vector </para>
</entry>
                            </row>
                            <row>
                                <entry>*yy</entry>
                                <entry>
<para>y coordinate of rotated vector </para>
</entry>
                            </row>
                            <row>
                                <entry>*zz</entry>
                                <entry>
<para>z coordinate of rotated vector </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0 </para>
</formalpara>
</para>
<para>
Definition at line 71 of file radon_util.cpp.</para>
    </section><anchor xml:id="_radon__util_8h_1a889d47ccf32fad8b1ba0061157704c3d"/>    <section>
    <title>rotY_cart()</title>
<indexterm><primary>rotY_cart</primary><secondary>radon_util.h</secondary></indexterm>
<indexterm><primary>radon_util.h</primary><secondary>rotY_cart</secondary></indexterm>
<para><computeroutput>int rotY_cart (double x, double y, double z, double ang, double * xx, double * yy, double * zz)</computeroutput></para><para>

<para>Rotates a vector of cartesian coordinates along the Y axis. </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>x</entry>
                                <entry>
<para>x coordinate of starting vector </para>
</entry>
                            </row>
                            <row>
                                <entry>y</entry>
                                <entry>
<para>y coordinate of starting vector </para>
</entry>
                            </row>
                            <row>
                                <entry>z</entry>
                                <entry>
<para>z coordinate of starting vector </para>
</entry>
                            </row>
                            <row>
                                <entry>ang</entry>
                                <entry>
<para>rotation angle (in radiants) </para>
</entry>
                            </row>
                            <row>
                                <entry>*xx</entry>
                                <entry>
<para>x coordinate of rotated vector </para>
</entry>
                            </row>
                            <row>
                                <entry>*yy</entry>
                                <entry>
<para>y coordinate of rotated vector </para>
</entry>
                            </row>
                            <row>
                                <entry>*zz</entry>
                                <entry>
<para>z coordinate of rotated vector </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0 </para>
</formalpara>
</para>
<para>
Definition at line 50 of file radon_util.cpp.</para>
    </section><anchor xml:id="_radon__util_8h_1ae51d80dee450c482f7751f4281cbd6cb"/>    <section>
    <title>rotZ_cart()</title>
<indexterm><primary>rotZ_cart</primary><secondary>radon_util.h</secondary></indexterm>
<indexterm><primary>radon_util.h</primary><secondary>rotZ_cart</secondary></indexterm>
<para><computeroutput>int rotZ_cart (double x, double y, double z, double ang, double * xx, double * yy, double * zz)</computeroutput></para><para>

<para>Rotates a vector of cartesian coordinates along the Z axis. </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>x</entry>
                                <entry>
<para>x coordinate of starting vector </para>
</entry>
                            </row>
                            <row>
                                <entry>y</entry>
                                <entry>
<para>y coordinate of starting vector </para>
</entry>
                            </row>
                            <row>
                                <entry>z</entry>
                                <entry>
<para>z coordinate of starting vector </para>
</entry>
                            </row>
                            <row>
                                <entry>ang</entry>
                                <entry>
<para>rotation angle (in radiants) </para>
</entry>
                            </row>
                            <row>
                                <entry>*xx</entry>
                                <entry>
<para>x coordinate of rotated vector </para>
</entry>
                            </row>
                            <row>
                                <entry>*yy</entry>
                                <entry>
<para>y coordinate of rotated vector </para>
</entry>
                            </row>
                            <row>
                                <entry>*zz</entry>
                                <entry>
<para>z coordinate of rotated vector </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0 </para>
</formalpara>
</para>
<para>
Definition at line 29 of file radon_util.cpp.</para>
    </section><anchor xml:id="_radon__util_8h_1ae1e1267a08c8df5bef1e88de353c3909"/>    <section>
    <title>sphere()</title>
<indexterm><primary>sphere</primary><secondary>radon_util.h</secondary></indexterm>
<indexterm><primary>radon_util.h</primary><secondary>sphere</secondary></indexterm>
<para><computeroutput>int sphere (<link linkend="_class_bimage">Bimage</link> * p)</computeroutput></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></para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0 </para>
</formalpara>
</para>
<para>
Definition at line 114 of file radon_util.cpp.</para>
</section>
</section>
</section>
