\hypertarget{classitk_1_1_image_file_reader_k_w}{\section{itk\-:\-:Image\-File\-Reader\-K\-W$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$ Class Template Reference}
\label{classitk_1_1_image_file_reader_k_w}\index{itk\-::\-Image\-File\-Reader\-K\-W$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$@{itk\-::\-Image\-File\-Reader\-K\-W$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$}}
}


Data source that reads image data from a single file.  




{\ttfamily \#include $<$itk\-Image\-File\-Reader\-K\-W.\-h$>$}



Inheritance diagram for itk\-:\-:Image\-File\-Reader\-K\-W$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=234pt]{classitk_1_1_image_file_reader_k_w__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for itk\-:\-:Image\-File\-Reader\-K\-W$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=234pt]{classitk_1_1_image_file_reader_k_w__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef \hyperlink{classitk_1_1_image_file_reader_k_w}{Image\-File\-Reader\-K\-W} \hyperlink{classitk_1_1_image_file_reader_k_w_a6616e1e0fe9f4aceb7f693250b5f5b5c}{Self}
\item 
\hypertarget{classitk_1_1_image_file_reader_k_w_afb5a9f09477bb47f45a4faf6832e74e4}{typedef Image\-Source$<$ T\-Output\-Image $>$ {\bfseries Superclass}}\label{classitk_1_1_image_file_reader_k_w_afb5a9f09477bb47f45a4faf6832e74e4}

\item 
\hypertarget{classitk_1_1_image_file_reader_k_w_a05a8d76fe334c335c3c432de498ca087}{typedef Smart\-Pointer$<$ \hyperlink{classitk_1_1_image_file_reader_k_w_a6616e1e0fe9f4aceb7f693250b5f5b5c}{Self} $>$ {\bfseries Pointer}}\label{classitk_1_1_image_file_reader_k_w_a05a8d76fe334c335c3c432de498ca087}

\item 
typedef T\-Output\-Image\-::\-Size\-Type \hyperlink{classitk_1_1_image_file_reader_k_w_a7a7f4acf918af20f820cdb57ab4ae18d}{Size\-Type}
\item 
typedef T\-Output\-Image\-::\-Index\-Type \hyperlink{classitk_1_1_image_file_reader_k_w_a9daa1ecf6fe0192e6ea86f9bf9785912}{Index\-Type}
\item 
typedef T\-Output\-Image\-::\-Region\-Type \hyperlink{classitk_1_1_image_file_reader_k_w_aeb29601addf7afcf200728eafc93dccd}{Image\-Region\-Type}
\item 
typedef \\*
T\-Output\-Image\-::\-Internal\-Pixel\-Type \hyperlink{classitk_1_1_image_file_reader_k_w_a3bc68922731e94450245260bc9eced45}{Output\-Image\-Pixel\-Type}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classitk_1_1_image_file_reader_k_w_a4513482202af52da330f62385fe410d2}{itk\-New\-Macro} (\hyperlink{classitk_1_1_image_file_reader_k_w_a6616e1e0fe9f4aceb7f693250b5f5b5c}{Self})
\item 
\hyperlink{classitk_1_1_image_file_reader_k_w_a47c81c07c8aee4750469f79c97076e87}{itk\-Type\-Macro} (\hyperlink{classitk_1_1_image_file_reader_k_w}{Image\-File\-Reader\-K\-W}, Image\-Source)
\item 
\hyperlink{classitk_1_1_image_file_reader_k_w_ab33b100a76cddfc01310a5b167994cd7}{itk\-Set\-Get\-Decorated\-Input\-Macro} (File\-Name, std\-::string)
\item 
void \hyperlink{classitk_1_1_image_file_reader_k_w_a5f6df1f414ee32ffc1a7042a2ac7769d}{Set\-Image\-I\-O} (Image\-I\-O\-Base $\ast$image\-I\-O)
\item 
\hypertarget{classitk_1_1_image_file_reader_k_w_a34921bf522b330b9d2a6904019fea262}{{\bfseries itk\-Get\-Modifiable\-Object\-Macro} (Image\-I\-O, Image\-I\-O\-Base)}\label{classitk_1_1_image_file_reader_k_w_a34921bf522b330b9d2a6904019fea262}

\item 
\hyperlink{classitk_1_1_image_file_reader_k_w_adabd23848a1de6aaefe2108eed86de30}{itk\-Set\-Macro} (Use\-Streaming, bool)
\item 
\hypertarget{classitk_1_1_image_file_reader_k_w_aa762efa75974bceb3af017e411962d01}{{\bfseries itk\-Get\-Const\-Reference\-Macro} (Use\-Streaming, bool)}\label{classitk_1_1_image_file_reader_k_w_aa762efa75974bceb3af017e411962d01}

\item 
\hypertarget{classitk_1_1_image_file_reader_k_w_a024a210a9cf0362a910f08efce300ce9}{{\bfseries itk\-Boolean\-Macro} (Use\-Streaming)}\label{classitk_1_1_image_file_reader_k_w_a024a210a9cf0362a910f08efce300ce9}

\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classitk_1_1_image_file_reader_k_w_abeb559364dac015e1430ef6fa0086d33}{void {\bfseries Print\-Self} (std\-::ostream \&os, Indent indent) const I\-T\-K\-\_\-\-O\-V\-E\-R\-R\-I\-D\-E}\label{classitk_1_1_image_file_reader_k_w_abeb559364dac015e1430ef6fa0086d33}

\item 
void \hyperlink{classitk_1_1_image_file_reader_k_w_a36590b67313b769b377ab84dab64e6dc}{Do\-Convert\-Buffer} (void $\ast$buffer, size\-\_\-t number\-Of\-Pixels)
\item 
void \hyperlink{classitk_1_1_image_file_reader_k_w_a68e1c6d1289530941de1424844f481b5}{Test\-File\-Existance\-And\-Readability} ()
\item 
virtual void \hyperlink{classitk_1_1_image_file_reader_k_w_a5fc2235fca283e451de26035fd237cda}{Generate\-Output\-Information} (void) I\-T\-K\-\_\-\-O\-V\-E\-R\-R\-I\-D\-E
\item 
virtual void \hyperlink{classitk_1_1_image_file_reader_k_w_a313f37f91aad5e0c91fe9b37b9f1e156}{Enlarge\-Output\-Requested\-Region} (Data\-Object $\ast$output) I\-T\-K\-\_\-\-O\-V\-E\-R\-R\-I\-D\-E
\item 
virtual void \hyperlink{classitk_1_1_image_file_reader_k_w_a1096f13bf512a24092565fa6a3a82508}{Generate\-Data} () I\-T\-K\-\_\-\-O\-V\-E\-R\-R\-I\-D\-E
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classitk_1_1_image_file_reader_k_w_ad8257c25171cf6c698f19ece08189535}{Image\-I\-O\-Base\-::\-Pointer {\bfseries m\-\_\-\-Image\-I\-O}}\label{classitk_1_1_image_file_reader_k_w_ad8257c25171cf6c698f19ece08189535}

\item 
\hypertarget{classitk_1_1_image_file_reader_k_w_ab7a9a3dacdffcbfca83153ff40665ac4}{bool {\bfseries m\-\_\-\-User\-Specified\-Image\-I\-O}}\label{classitk_1_1_image_file_reader_k_w_ab7a9a3dacdffcbfca83153ff40665ac4}

\item 
\hypertarget{classitk_1_1_image_file_reader_k_w_a7b56980da3e50436905c3ae5731fc557}{bool {\bfseries m\-\_\-\-Use\-Streaming}}\label{classitk_1_1_image_file_reader_k_w_a7b56980da3e50436905c3ae5731fc557}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T\-Output\-Image, typename Convert\-Pixel\-Traits = Default\-Convert\-Pixel\-Traits$<$                    typename T\-Output\-Image\-::\-I\-O\-Pixel\-Type $>$$>$class itk\-::\-Image\-File\-Reader\-K\-W$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$}

Data source that reads image data from a single file. 

This source object is a general filter to read data from a variety of file formats. It works with a Image\-I\-O\-Base subclass to actually do the reading of the data. Object factory machinery can be used to automatically create the Image\-I\-O\-Base, or the Image\-I\-O\-Base can be manually created and set. Note that this class reads data from a single file; if you wish to read data from a series of files use Image\-Series\-Reader.

T\-Output\-Image is the type expected by the external users of the filter. If data stored in the file is stored in a different format then specified by T\-Output\-Image, than this filter converts data between the file type and the external expected type. The Convert\-Traits template argument is used to do the conversion.

A Pluggable factory pattern is used this allows different kinds of readers to be registered (even at run time) without having to modify the code in this class. Normally just setting the File\-Name with the appropriate suffix is enough to get the reader to instantiate the correct Image\-I\-O and read the file properly. However, some files (like raw binary format) have no accepted suffix, so you will have to manually create the Image\-I\-O instance of the write type.

\begin{DoxySeeAlso}{See Also}
Image\-Series\-Reader 

Image\-I\-O\-Base
\end{DoxySeeAlso}
\{I\-O/\-Read\-Vector\-Image,Read an image file with an unknown number of components\} \{I\-O/\-Read\-Unknown\-Image\-Type,Read an image file without knowing its type before hand\} \{I\-O/\-Image\-File\-Reader\-K\-W,Read an image\}  

\subsection{Member Typedef Documentation}
\hypertarget{classitk_1_1_image_file_reader_k_w_aeb29601addf7afcf200728eafc93dccd}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Image\-Region\-Type@{Image\-Region\-Type}}
\index{Image\-Region\-Type@{Image\-Region\-Type}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Image\-Region\-Type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits  = Default\-Convert\-Pixel\-Traits$<$                    typename T\-Output\-Image\-::\-I\-O\-Pixel\-Type $>$$>$ typedef T\-Output\-Image\-::\-Region\-Type {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::{\bf Image\-Region\-Type}}}\label{classitk_1_1_image_file_reader_k_w_aeb29601addf7afcf200728eafc93dccd}
The region of the output image. \hypertarget{classitk_1_1_image_file_reader_k_w_a9daa1ecf6fe0192e6ea86f9bf9785912}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Index\-Type@{Index\-Type}}
\index{Index\-Type@{Index\-Type}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Index\-Type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits  = Default\-Convert\-Pixel\-Traits$<$                    typename T\-Output\-Image\-::\-I\-O\-Pixel\-Type $>$$>$ typedef T\-Output\-Image\-::\-Index\-Type {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::{\bf Index\-Type}}}\label{classitk_1_1_image_file_reader_k_w_a9daa1ecf6fe0192e6ea86f9bf9785912}
The size of the output image. \hypertarget{classitk_1_1_image_file_reader_k_w_a3bc68922731e94450245260bc9eced45}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Output\-Image\-Pixel\-Type@{Output\-Image\-Pixel\-Type}}
\index{Output\-Image\-Pixel\-Type@{Output\-Image\-Pixel\-Type}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Output\-Image\-Pixel\-Type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits  = Default\-Convert\-Pixel\-Traits$<$                    typename T\-Output\-Image\-::\-I\-O\-Pixel\-Type $>$$>$ typedef T\-Output\-Image\-::\-Internal\-Pixel\-Type {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::{\bf Output\-Image\-Pixel\-Type}}}\label{classitk_1_1_image_file_reader_k_w_a3bc68922731e94450245260bc9eced45}
The pixel type of the output image. \hypertarget{classitk_1_1_image_file_reader_k_w_a6616e1e0fe9f4aceb7f693250b5f5b5c}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Self@{Self}}
\index{Self@{Self}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Self}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits  = Default\-Convert\-Pixel\-Traits$<$                    typename T\-Output\-Image\-::\-I\-O\-Pixel\-Type $>$$>$ typedef {\bf Image\-File\-Reader\-K\-W} {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::{\bf Self}}}\label{classitk_1_1_image_file_reader_k_w_a6616e1e0fe9f4aceb7f693250b5f5b5c}
Standard class typedefs. \hypertarget{classitk_1_1_image_file_reader_k_w_a7a7f4acf918af20f820cdb57ab4ae18d}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Size\-Type@{Size\-Type}}
\index{Size\-Type@{Size\-Type}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Size\-Type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits  = Default\-Convert\-Pixel\-Traits$<$                    typename T\-Output\-Image\-::\-I\-O\-Pixel\-Type $>$$>$ typedef T\-Output\-Image\-::\-Size\-Type {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::{\bf Size\-Type}}}\label{classitk_1_1_image_file_reader_k_w_a7a7f4acf918af20f820cdb57ab4ae18d}
The size of the output image. 

\subsection{Member Function Documentation}
\hypertarget{classitk_1_1_image_file_reader_k_w_a36590b67313b769b377ab84dab64e6dc}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Do\-Convert\-Buffer@{Do\-Convert\-Buffer}}
\index{Do\-Convert\-Buffer@{Do\-Convert\-Buffer}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Do\-Convert\-Buffer}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits $>$ void {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::Do\-Convert\-Buffer (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{buffer, }
\item[{size\-\_\-t}]{number\-Of\-Pixels}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}}\label{classitk_1_1_image_file_reader_k_w_a36590b67313b769b377ab84dab64e6dc}
Convert a block of pixels from one type to another. \hypertarget{classitk_1_1_image_file_reader_k_w_a313f37f91aad5e0c91fe9b37b9f1e156}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Enlarge\-Output\-Requested\-Region@{Enlarge\-Output\-Requested\-Region}}
\index{Enlarge\-Output\-Requested\-Region@{Enlarge\-Output\-Requested\-Region}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Enlarge\-Output\-Requested\-Region}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits $>$ void {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::Enlarge\-Output\-Requested\-Region (
\begin{DoxyParamCaption}
\item[{Data\-Object $\ast$}]{output}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}}\label{classitk_1_1_image_file_reader_k_w_a313f37f91aad5e0c91fe9b37b9f1e156}
Give the reader a chance to indicate that it will produce more output than it was requested to produce. \hyperlink{classitk_1_1_image_file_reader_k_w}{Image\-File\-Reader\-K\-W} cannot currently read a portion of an image (since the Image\-I\-O objects cannot read a portion of an image), so the \hyperlink{classitk_1_1_image_file_reader_k_w}{Image\-File\-Reader\-K\-W} must enlarge the Requested\-Region to the size of the image on disk. \hypertarget{classitk_1_1_image_file_reader_k_w_a1096f13bf512a24092565fa6a3a82508}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Generate\-Data@{Generate\-Data}}
\index{Generate\-Data@{Generate\-Data}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Generate\-Data}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits $>$ void {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::Generate\-Data (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}}\label{classitk_1_1_image_file_reader_k_w_a1096f13bf512a24092565fa6a3a82508}
Does the real work. \hypertarget{classitk_1_1_image_file_reader_k_w_a5fc2235fca283e451de26035fd237cda}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Generate\-Output\-Information@{Generate\-Output\-Information}}
\index{Generate\-Output\-Information@{Generate\-Output\-Information}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Generate\-Output\-Information}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits $>$ void {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::Generate\-Output\-Information (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}}\label{classitk_1_1_image_file_reader_k_w_a5fc2235fca283e451de26035fd237cda}
Prepare the allocation of the output image during the first back propagation of the pipeline. \hypertarget{classitk_1_1_image_file_reader_k_w_a4513482202af52da330f62385fe410d2}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!itk\-New\-Macro@{itk\-New\-Macro}}
\index{itk\-New\-Macro@{itk\-New\-Macro}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{itk\-New\-Macro}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits  = Default\-Convert\-Pixel\-Traits$<$                    typename T\-Output\-Image\-::\-I\-O\-Pixel\-Type $>$$>$ {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::itk\-New\-Macro (
\begin{DoxyParamCaption}
\item[{{\bf Self}}]{}
\end{DoxyParamCaption}
)}}\label{classitk_1_1_image_file_reader_k_w_a4513482202af52da330f62385fe410d2}
Method for creation through the object factory. \hypertarget{classitk_1_1_image_file_reader_k_w_ab33b100a76cddfc01310a5b167994cd7}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!itk\-Set\-Get\-Decorated\-Input\-Macro@{itk\-Set\-Get\-Decorated\-Input\-Macro}}
\index{itk\-Set\-Get\-Decorated\-Input\-Macro@{itk\-Set\-Get\-Decorated\-Input\-Macro}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{itk\-Set\-Get\-Decorated\-Input\-Macro}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits  = Default\-Convert\-Pixel\-Traits$<$                    typename T\-Output\-Image\-::\-I\-O\-Pixel\-Type $>$$>$ {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::itk\-Set\-Get\-Decorated\-Input\-Macro (
\begin{DoxyParamCaption}
\item[{File\-Name}]{, }
\item[{std\-::string}]{}
\end{DoxyParamCaption}
)}}\label{classitk_1_1_image_file_reader_k_w_ab33b100a76cddfc01310a5b167994cd7}
Specify the file to read. This is forwarded to the I\-O instance. \hypertarget{classitk_1_1_image_file_reader_k_w_adabd23848a1de6aaefe2108eed86de30}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!itk\-Set\-Macro@{itk\-Set\-Macro}}
\index{itk\-Set\-Macro@{itk\-Set\-Macro}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{itk\-Set\-Macro}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits  = Default\-Convert\-Pixel\-Traits$<$                    typename T\-Output\-Image\-::\-I\-O\-Pixel\-Type $>$$>$ {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::itk\-Set\-Macro (
\begin{DoxyParamCaption}
\item[{Use\-Streaming}]{, }
\item[{bool}]{}
\end{DoxyParamCaption}
)}}\label{classitk_1_1_image_file_reader_k_w_adabd23848a1de6aaefe2108eed86de30}
Set the stream On or Off \hypertarget{classitk_1_1_image_file_reader_k_w_a47c81c07c8aee4750469f79c97076e87}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!itk\-Type\-Macro@{itk\-Type\-Macro}}
\index{itk\-Type\-Macro@{itk\-Type\-Macro}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{itk\-Type\-Macro}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits  = Default\-Convert\-Pixel\-Traits$<$                    typename T\-Output\-Image\-::\-I\-O\-Pixel\-Type $>$$>$ {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::itk\-Type\-Macro (
\begin{DoxyParamCaption}
\item[{{\bf Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$}]{, }
\item[{Image\-Source}]{}
\end{DoxyParamCaption}
)}}\label{classitk_1_1_image_file_reader_k_w_a47c81c07c8aee4750469f79c97076e87}
Run-\/time type information (and related methods). \hypertarget{classitk_1_1_image_file_reader_k_w_a5f6df1f414ee32ffc1a7042a2ac7769d}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Set\-Image\-I\-O@{Set\-Image\-I\-O}}
\index{Set\-Image\-I\-O@{Set\-Image\-I\-O}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Set\-Image\-I\-O}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits $>$ void {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::Set\-Image\-I\-O (
\begin{DoxyParamCaption}
\item[{Image\-I\-O\-Base $\ast$}]{image\-I\-O}
\end{DoxyParamCaption}
)}}\label{classitk_1_1_image_file_reader_k_w_a5f6df1f414ee32ffc1a7042a2ac7769d}
Set/\-Get the Image\-I\-O helper class. Often this is created via the object factory mechanism that determines whether a particular Image\-I\-O can read a certain file. This method provides a way to get the Image\-I\-O instance that is created. Or you can directly specify the Image\-I\-O to use to read a particular file in case the factory mechanism will not work properly (e.\-g., unknown or unusual extension). \hypertarget{classitk_1_1_image_file_reader_k_w_a68e1c6d1289530941de1424844f481b5}{\index{itk\-::\-Image\-File\-Reader\-K\-W@{itk\-::\-Image\-File\-Reader\-K\-W}!Test\-File\-Existance\-And\-Readability@{Test\-File\-Existance\-And\-Readability}}
\index{Test\-File\-Existance\-And\-Readability@{Test\-File\-Existance\-And\-Readability}!itk::ImageFileReaderKW@{itk\-::\-Image\-File\-Reader\-K\-W}}
\subsubsection[{Test\-File\-Existance\-And\-Readability}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T\-Output\-Image , typename Convert\-Pixel\-Traits $>$ void {\bf itk\-::\-Image\-File\-Reader\-K\-W}$<$ T\-Output\-Image, Convert\-Pixel\-Traits $>$\-::Test\-File\-Existance\-And\-Readability (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}}\label{classitk_1_1_image_file_reader_k_w_a68e1c6d1289530941de1424844f481b5}
Test whether the given filename exist and it is readable, this is intended to be called before attempting to use Image\-I\-O classes for actually reading the file. If the file doesn't exist or it is not readable, and exception with an approriate message will be thrown. 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
lib/itk\-Image\-File\-Reader\-K\-W.\-h\item 
lib/itk\-Image\-File\-Reader\-K\-W.\-hxx\end{DoxyCompactItemize}
