\section{histogram.c File Reference}
\label{histogram_8c}\index{histogram.c@{histogram.c}}
{\tt \#include \char`\"{}trees.h\char`\"{}}\par
{\tt \#include \char`\"{}histogram.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf HIST\_\-INIT} ({\bf HISTOGRAM} $\ast$hist)
\item 
void {\bf HIST\_\-MAG} ({\bf IMAGE\_\-BYTE} $\ast$i\-Mag, {\bf MOSAIC\_\-INDEX} $\ast$index, {\bf HISTOGRAM} $\ast$globalhist, {\bf HISTOGRAM} $\ast$$\ast$localhist, int nrows, int ncols)
\item 
void {\bf HIST\_\-RTH\_\-PERCENTILE} ({\bf HISTOGRAM} $\ast$globalhist, {\bf HISTOGRAM} $\ast$$\ast$localhist, double r, int nrows, int ncols)
\item 
void {\bf HIST\_\-DIR} ({\bf IMAGE\_\-BYTE} $\ast$i\-Mag, {\bf IMAGE\_\-BYTE} $\ast$i\-Dir, {\bf MOSAIC\_\-INDEX} $\ast$index, {\bf HISTOGRAM} $\ast$globalhist, {\bf HISTOGRAM} $\ast$$\ast$localhist, int nrows, int ncols)
\item 
void {\bf HIST\_\-ORIENTATION} ({\bf HISTOGRAM} $\ast$globalhist, {\bf HISTOGRAM} $\ast$$\ast$localhist, int nrows, int ncols)
\item 
int {\bf HIST\_\-DIR\_\-OF\_\-EDGE\_\-NEIGHBOUR} ({\bf HISTOGRAM} $\ast$globalhist, {\bf HISTOGRAM} $\ast$$\ast$localhist, int nrows, int ncols, int i, int j)
\item 
void {\bf HIST\_\-RESOLVE} ({\bf HISTOGRAM} $\ast$globalhist, {\bf HISTOGRAM} $\ast$$\ast$localhist, int nrows, int ncols)
\item 
int {\bf HIST\_\-NUM\_\-RING\_\-NEIGH} ({\bf IMAGE\_\-BYTE} $\ast$i\-Dir, {\bf MOSAIC\_\-INDEX} $\ast$index, int m, int n, int bin)
\item 
void {\bf HIST\_\-SUPPRESS} ({\bf IMAGE\_\-BYTE} $\ast$i\-Mag, {\bf IMAGE\_\-BYTE} $\ast$i\-Dir, {\bf MOSAIC\_\-INDEX} $\ast$index, {\bf HISTOGRAM} $\ast$$\ast$localhist)
\item 
int {\bf HIST\_\-FIND\_\-MAX\_\-NEIGH} ({\bf IMAGE\_\-BYTE} $\ast$i\-Mag, {\bf IMAGE\_\-BYTE} $\ast$byteimg, {\bf MOSAIC\_\-INDEX} $\ast$index, int startx, int starty, int $\ast$newx, int $\ast$newy)
\item 
int {\bf HIST\_\-NUM\_\-NEIGH} ({\bf IMAGE\_\-BYTE} $\ast$i\-Mag, {\bf MOSAIC\_\-INDEX} $\ast$index, int m, int n)
\end{CompactItemize}


\subsection{Function Documentation}
\index{histogram.c@{histogram.c}!HIST_DIR@{HIST\_\-DIR}}
\index{HIST_DIR@{HIST\_\-DIR}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HIST\_\-DIR ({\bf IMAGE\_\-BYTE} $\ast$ {\em i\-Mag}, {\bf IMAGE\_\-BYTE} $\ast$ {\em i\-Dir}, {\bf MOSAIC\_\-INDEX} $\ast$ {\em index}, {\bf HISTOGRAM} $\ast$ {\em globalhist}, {\bf HISTOGRAM} $\ast$$\ast$ {\em localhist}, int {\em nrows}, int {\em ncols})}\label{histogram_8c_a3}




Definition at line 212 of file histogram.c.

References IMAGE\_\-BYTE::data, HISTOGRAM::dir, MOSAIC\_\-INDEX::hend, HIST\_\-BLOCK\_\-DIM, MOSAIC\_\-INDEX::hstart, HISTOGRAM::per, Prog\-Meter\_\-Create, Prog\-Meter\_\-Destroy, Prog\-Meter\_\-Update, MOSAIC\_\-INDEX::roi, REGION\_\-OF\_\-INTEREST::top, MOSAIC\_\-INDEX::vend, MOSAIC\_\-INDEX::voffset, and MOSAIC\_\-INDEX::vstart.\index{histogram.c@{histogram.c}!HIST_DIR_OF_EDGE_NEIGHBOUR@{HIST\_\-DIR\_\-OF\_\-EDGE\_\-NEIGHBOUR}}
\index{HIST_DIR_OF_EDGE_NEIGHBOUR@{HIST\_\-DIR\_\-OF\_\-EDGE\_\-NEIGHBOUR}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int HIST\_\-DIR\_\-OF\_\-EDGE\_\-NEIGHBOUR ({\bf HISTOGRAM} $\ast$ {\em globalhist}, {\bf HISTOGRAM} $\ast$$\ast$ {\em localhist}, int {\em nrows}, int {\em ncols}, int {\em i}, int {\em j})}\label{histogram_8c_a5}




Definition at line 364 of file histogram.c.

References HISTOGRAM::bin, and LOCAL\_\-DEVN.\index{histogram.c@{histogram.c}!HIST_FIND_MAX_NEIGH@{HIST\_\-FIND\_\-MAX\_\-NEIGH}}
\index{HIST_FIND_MAX_NEIGH@{HIST\_\-FIND\_\-MAX\_\-NEIGH}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int HIST\_\-FIND\_\-MAX\_\-NEIGH ({\bf IMAGE\_\-BYTE} $\ast$ {\em i\-Mag}, {\bf IMAGE\_\-BYTE} $\ast$ {\em byteimg}, {\bf MOSAIC\_\-INDEX} $\ast$ {\em index}, int {\em startx}, int {\em starty}, int $\ast$ {\em newx}, int $\ast$ {\em newy})}\label{histogram_8c_a9}




Definition at line 574 of file histogram.c.

References IMAGE\_\-BYTE::data, MOSAIC\_\-INDEX::hend, MOSAIC\_\-INDEX::hstart, max, MOSAIC\_\-INDEX::vend, MOSAIC\_\-INDEX::voffset, and MOSAIC\_\-INDEX::vstart.\index{histogram.c@{histogram.c}!HIST_INIT@{HIST\_\-INIT}}
\index{HIST_INIT@{HIST\_\-INIT}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HIST\_\-INIT ({\bf HISTOGRAM} $\ast$ {\em hist})}\label{histogram_8c_a0}




Definition at line 12 of file histogram.c.

References HISTOGRAM::bin, HISTOGRAM::cbin, HISTOGRAM::dir, HISTOGRAM::edge, HIST\_\-RESOL, HISTOGRAM::mag, HISTOGRAM::numpixels, HISTOGRAM::per, and HISTOGRAM::r.\index{histogram.c@{histogram.c}!HIST_MAG@{HIST\_\-MAG}}
\index{HIST_MAG@{HIST\_\-MAG}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HIST\_\-MAG ({\bf IMAGE\_\-BYTE} $\ast$ {\em i\-Mag}, {\bf MOSAIC\_\-INDEX} $\ast$ {\em index}, {\bf HISTOGRAM} $\ast$ {\em globalhist}, {\bf HISTOGRAM} $\ast$$\ast$ {\em localhist}, int {\em nrows}, int {\em ncols})}\label{histogram_8c_a1}




Definition at line 36 of file histogram.c.

References IMAGE\_\-BYTE::data, MOSAIC\_\-INDEX::hend, HIST\_\-BLOCK\_\-DIM, HIST\_\-RESOL, MOSAIC\_\-INDEX::hstart, HISTOGRAM::mag, HISTOGRAM::numpixels, Prog\-Meter\_\-Create, Prog\-Meter\_\-Destroy, Prog\-Meter\_\-Update, MOSAIC\_\-INDEX::roi, REGION\_\-OF\_\-INTEREST::top, MOSAIC\_\-INDEX::vend, MOSAIC\_\-INDEX::voffset, and MOSAIC\_\-INDEX::vstart.\index{histogram.c@{histogram.c}!HIST_NUM_NEIGH@{HIST\_\-NUM\_\-NEIGH}}
\index{HIST_NUM_NEIGH@{HIST\_\-NUM\_\-NEIGH}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int HIST\_\-NUM\_\-NEIGH ({\bf IMAGE\_\-BYTE} $\ast$ {\em i\-Mag}, {\bf MOSAIC\_\-INDEX} $\ast$ {\em index}, int {\em m}, int {\em n})}\label{histogram_8c_a10}




Definition at line 625 of file histogram.c.

References IMAGE\_\-BYTE::data, MOSAIC\_\-INDEX::hend, MOSAIC\_\-INDEX::hstart, MOSAIC\_\-INDEX::vend, MOSAIC\_\-INDEX::voffset, and MOSAIC\_\-INDEX::vstart.\index{histogram.c@{histogram.c}!HIST_NUM_RING_NEIGH@{HIST\_\-NUM\_\-RING\_\-NEIGH}}
\index{HIST_NUM_RING_NEIGH@{HIST\_\-NUM\_\-RING\_\-NEIGH}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int HIST\_\-NUM\_\-RING\_\-NEIGH ({\bf IMAGE\_\-BYTE} $\ast$ {\em i\-Dir}, {\bf MOSAIC\_\-INDEX} $\ast$ {\em index}, int {\em m}, int {\em n}, int {\em bin})}\label{histogram_8c_a7}




Definition at line 474 of file histogram.c.

References IMAGE\_\-BYTE::data, DIR\_\-TOL, MOSAIC\_\-INDEX::hend, MOSAIC\_\-INDEX::hstart, MOSAIC\_\-INDEX::vend, MOSAIC\_\-INDEX::voffset, and MOSAIC\_\-INDEX::vstart.\index{histogram.c@{histogram.c}!HIST_ORIENTATION@{HIST\_\-ORIENTATION}}
\index{HIST_ORIENTATION@{HIST\_\-ORIENTATION}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HIST\_\-ORIENTATION ({\bf HISTOGRAM} $\ast$ {\em globalhist}, {\bf HISTOGRAM} $\ast$$\ast$ {\em localhist}, int {\em nrows}, int {\em ncols})}\label{histogram_8c_a4}




Definition at line 285 of file histogram.c.

References HISTOGRAM::bin, HISTOGRAM::cbin, HISTOGRAM::dir, HIST\_\-RESOL, max, Prog\-Meter\_\-Create, Prog\-Meter\_\-Destroy, and Prog\-Meter\_\-Update.\index{histogram.c@{histogram.c}!HIST_RESOLVE@{HIST\_\-RESOLVE}}
\index{HIST_RESOLVE@{HIST\_\-RESOLVE}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HIST\_\-RESOLVE ({\bf HISTOGRAM} $\ast$ {\em globalhist}, {\bf HISTOGRAM} $\ast$$\ast$ {\em localhist}, int {\em nrows}, int {\em ncols})}\label{histogram_8c_a6}




Definition at line 398 of file histogram.c.

References HISTOGRAM::bin, HIST\_\-DIR\_\-OF\_\-EDGE\_\-NEIGHBOUR, LOCAL\_\-DEVN, Prog\-Meter\_\-Create, Prog\-Meter\_\-Destroy, and Prog\-Meter\_\-Update.\index{histogram.c@{histogram.c}!HIST_RTH_PERCENTILE@{HIST\_\-RTH\_\-PERCENTILE}}
\index{HIST_RTH_PERCENTILE@{HIST\_\-RTH\_\-PERCENTILE}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HIST\_\-RTH\_\-PERCENTILE ({\bf HISTOGRAM} $\ast$ {\em globalhist}, {\bf HISTOGRAM} $\ast$$\ast$ {\em localhist}, double {\em r}, int {\em nrows}, int {\em ncols})}\label{histogram_8c_a2}




Definition at line 131 of file histogram.c.

References HIST\_\-RESOL, HISTOGRAM::mag, HISTOGRAM::numpixels, HISTOGRAM::per, Prog\-Meter\_\-Create, Prog\-Meter\_\-Destroy, Prog\-Meter\_\-Update, and HISTOGRAM::r.\index{histogram.c@{histogram.c}!HIST_SUPPRESS@{HIST\_\-SUPPRESS}}
\index{HIST_SUPPRESS@{HIST\_\-SUPPRESS}!histogram.c@{histogram.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void HIST\_\-SUPPRESS ({\bf IMAGE\_\-BYTE} $\ast$ {\em i\-Mag}, {\bf IMAGE\_\-BYTE} $\ast$ {\em i\-Dir}, {\bf MOSAIC\_\-INDEX} $\ast$ {\em index}, {\bf HISTOGRAM} $\ast$$\ast$ {\em localhist})}\label{histogram_8c_a8}




Definition at line 508 of file histogram.c.

References HISTOGRAM::bin, IMAGE\_\-BYTE::data, DIR\_\-TOL, MOSAIC\_\-INDEX::hend, HIST\_\-BLOCK\_\-DIM, HIST\_\-NUM\_\-RING\_\-NEIGH, MOSAIC\_\-INDEX::hstart, Prog\-Meter\_\-Create, Prog\-Meter\_\-Destroy, Prog\-Meter\_\-Update, MOSAIC\_\-INDEX::roi, REGION\_\-OF\_\-INTEREST::top, MOSAIC\_\-INDEX::vend, MOSAIC\_\-INDEX::voffset, and MOSAIC\_\-INDEX::vstart.