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

<para>Functions for reading and writing RAW files. </para>
 
</para>
<programlisting>#include &quot;rwRAW.h&quot;
#include &quot;utilities.h&quot;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rw_r_a_w_8cpp_1a6e2b32d6fe57bd5fe39a26e8cb7e542b">readRAW</link> (<link linkend="_class_bimage">Bimage</link> *p, int img_select)</para>

<para>Reading a raw block of data in a file. </para>
</listitem>
            <listitem><para>int <link linkend="_rw_r_a_w_8cpp_1a66698615f4498dce3b703c07f5479242">writeRAW</link> (<link linkend="_class_bimage">Bimage</link> *p)</para>

<para>Writing a raw block of data in a file. </para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Variables    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rw_r_a_w_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453">verbose</link></para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Functions for reading and writing RAW files. </para>

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

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

<para>Created: 19990724 </para>

<para>Modified: 20150910 <literallayout><computeroutput>A RAW file is a generalized image file defined as consisting of an optional header,
    and a contiguous, non-compressed block of data
</computeroutput></literallayout> </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_rw_r_a_w_8cpp_1a6e2b32d6fe57bd5fe39a26e8cb7e542b"/>    <section>
    <title>readRAW()</title>
<indexterm><primary>readRAW</primary><secondary>rwRAW.cpp</secondary></indexterm>
<indexterm><primary>rwRAW.cpp</primary><secondary>readRAW</secondary></indexterm>
<para><computeroutput>int readRAW (<link linkend="_class_bimage">Bimage</link> * p, int img_select)</computeroutput></para><para>

<para>Reading a raw block of data in a file. </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 image structure. </para>
</entry>
                            </row>
                            <row>
                                <entry>img_select</entry>
                                <entry>
<para>image selection in multi-image file (-1 = all images). </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0. A 5D format for generalized access to data in Bsoft. File format extensions: .raw and # The special symbol &apos;#&apos; appended to a valid file name is taken to indicate that the file should be interpreted as a raw data block. To further specify how the data block should be read, several variable-value pairs can be appended, each pair started with a &apos;#&apos;. Variable-value pairs: h=header_size d=data_type x=size_x,size_y,size_z p=page_size_x,page_size_y,page_size_z a=padding_bytes_between_pages s=sampling_x,sampling_y,sampling_z c=number_of_channels n=number_of_images i=image_selected f=transform_type (n=NoTransform, s=Standard, c=Centered, h=Hermitian, q=CentHerm) b=1=swap_bytes v=1=vax_floating_point </para>
</formalpara>
</para>
<para>
Definition at line 44 of file rwRAW.cpp.</para>
    </section><anchor xml:id="_rw_r_a_w_8cpp_1a66698615f4498dce3b703c07f5479242"/>    <section>
    <title>writeRAW()</title>
<indexterm><primary>writeRAW</primary><secondary>rwRAW.cpp</secondary></indexterm>
<indexterm><primary>rwRAW.cpp</primary><secondary>writeRAW</secondary></indexterm>
<para><computeroutput>int writeRAW (<link linkend="_class_bimage">Bimage</link> * p)</computeroutput></para><para>

<para>Writing a raw block of data in a file. </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 image structure. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0. A 5D format for generalized access to data in Bsoft. </para>
</formalpara>
</para>
<para>
Definition at line 192 of file rwRAW.cpp.</para>
</section>
</section>
<section>
<title>Variable Documentation</title>
<anchor xml:id="_rw_r_a_w_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453"/>    <section>
    <title>verbose</title>
<indexterm><primary>verbose</primary><secondary>rwRAW.cpp</secondary></indexterm>
<indexterm><primary>rwRAW.cpp</primary><secondary>verbose</secondary></indexterm>
<para><computeroutput>int verbose</computeroutput></para></section>
</section>
</section>
