\doxysection{Nav\+Pixel\texorpdfstring{$<$}{<} chan\+\_\+t \texorpdfstring{$>$}{>} Struct Template Reference}
\hypertarget{structNavPixel}{}\label{structNavPixel}\index{NavPixel$<$ chan\_t $>$@{NavPixel$<$ chan\_t $>$}}


{\ttfamily \#include $<$Nav\+Image.\+hpp$>$}

\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{structNavPixel_ad5146506861f5b4958d9ae6d4cdadd9c}\label{structNavPixel_ad5146506861f5b4958d9ae6d4cdadd9c} 
void {\bfseries set\+Float} (const \mbox{\hyperlink{structNavPixel}{Nav\+Pixel}}$<$ float $>$ \&, float coverage)
\item 
\Hypertarget{structNavPixel_afebf6a5aea789ff8800b427eb82de20f}\label{structNavPixel_afebf6a5aea789ff8800b427eb82de20f} 
void {\bfseries add\+Point} (const \mbox{\hyperlink{classNavPoint}{Nav\+Point}} \&, char z, chan\+\_\+t v\+TB, chan\+\_\+t vM)
\item 
\Hypertarget{structNavPixel_a1dfe74186be5b97ea37ac054f144db90}\label{structNavPixel_a1dfe74186be5b97ea37ac054f144db90} 
void {\bfseries add\+Pin} (char z, chan\+\_\+t)
\item 
\Hypertarget{structNavPixel_a77655f435a544adc093ec76eb19ddaca}\label{structNavPixel_a77655f435a544adc093ec76eb19ddaca} 
void {\bfseries add\+Rats\+Nest} (char z, chan\+\_\+t)
\item 
\Hypertarget{structNavPixel_adec16e47f98b9bf45d85f0cefec0eff5}\label{structNavPixel_adec16e47f98b9bf45d85f0cefec0eff5} 
void {\bfseries add\+Track} (char z, chan\+\_\+t v\+TB, chan\+\_\+t vM)
\item 
\Hypertarget{structNavPixel_a3da4cbf0345b481f06c2468f3b306e19}\label{structNavPixel_a3da4cbf0345b481f06c2468f3b306e19} 
void {\bfseries add\+Via} (chan\+\_\+t)
\item 
\Hypertarget{structNavPixel_a41735dafe6bdfd2bacc7711edc10164d}\label{structNavPixel_a41735dafe6bdfd2bacc7711edc10164d} 
void {\bfseries zero} ()
\item 
\Hypertarget{structNavPixel_a3c7cbfeff4f1a3c8fdee2ccb0ddc2d8d}\label{structNavPixel_a3c7cbfeff4f1a3c8fdee2ccb0ddc2d8d} 
bool {\bfseries is\+Nonzero} () const
\end{DoxyCompactItemize}
\doxysubsubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{structNavPixel_acf109978057090e14afca9b650327db4}\label{structNavPixel_acf109978057090e14afca9b650327db4} 
chan\+\_\+t {\bfseries Chan} \mbox{[}NAV\+\_\+\+IMAGE\+\_\+\+NUM\+\_\+\+CHANS\mbox{]}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename chan\+\_\+t$>$\newline
struct Nav\+Pixel$<$ chan\+\_\+t $>$}
This class represents a "{}pixel"{} in an "{}image"{} representation of the board. If the encoding is u8, by default we use 0 to 144 for channels with graduation (PIN\+\_\+T,B and TRACK\+\_\+M), and and 0/1 otherwise. 144 is the most divisble by the common number of layers (2,3,4,6,8,9,12,16). This avoid roundoff errors when converting to floats for neural networks. 

The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/home/chr/devel/\+Ph\+D/\+Environment/pub/\+PCBEnv/pcbenv/cxx/Nav\+Image.\+hpp\end{DoxyCompactItemize}
