\doxysection{config\+\_\+reader.\+Config\+Reader Class Reference}
\hypertarget{classconfig__reader_1_1_config_reader}{}\label{classconfig__reader_1_1_config_reader}\index{config\_reader.ConfigReader@{config\_reader.ConfigReader}}
Inheritance diagram for config\+\_\+reader.\+Config\+Reader\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classconfig__reader_1_1_config_reader}
\end{center}
\end{figure}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classconfig__reader_1_1_config_reader_a73be962b79de11a5a90081f2d1664133}{\+\_\+\+\_\+init\+\_\+\+\_\+}} (self)
\item 
\mbox{\hyperlink{classconfig__reader_1_1_config_reader_ad731ac82f98be40fffd30ae975ac2fbc}{get\+Projected\+Image\+Width}} (self)
\item 
\mbox{\hyperlink{classconfig__reader_1_1_config_reader_a50e368d3bc91621f087ccc3b28c5bd44}{get\+Distance\+Between\+Projectors}} (self)
\item 
\mbox{\hyperlink{classconfig__reader_1_1_config_reader_af09a64fbb42918c72d3fa184a04d2f14}{get\+Image\+Width}} (self)
\item 
\mbox{\hyperlink{classconfig__reader_1_1_config_reader_a658a811dee70b56a76c97d7bc9a07487}{get\+Image\+Height}} (self)
\item 
\mbox{\hyperlink{classconfig__reader_1_1_config_reader_a7bc7184db683c24a00706ae9b4dad09f}{get\+Image\+Name}} (self)
\item 
\mbox{\hyperlink{classconfig__reader_1_1_config_reader_ab8d1c2bce571a887e3e4fbc7fbfa178c}{get\+Side}} (self)
\item 
\mbox{\hyperlink{classconfig__reader_1_1_config_reader_a64b94161650c3c54ca7b8a277b9cd5d6}{get\+Gamma}} (self)
\end{DoxyCompactItemize}
\doxysubsubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classconfig__reader_1_1_config_reader_adfd12fc2956da854f8f3e59c143a6f32}\label{classconfig__reader_1_1_config_reader_adfd12fc2956da854f8f3e59c143a6f32} 
{\bfseries CONFIG\+\_\+\+FILENAME}
\end{DoxyCompactItemize}
\doxysubsubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classconfig__reader_1_1_config_reader_a71c34d4fb3b5ba5c88c6e3a87ddc8529}\label{classconfig__reader_1_1_config_reader_a71c34d4fb3b5ba5c88c6e3a87ddc8529} 
str {\bfseries CONFIG\+\_\+\+FILENAME} = "{}config.\+json"{}
\end{DoxyCompactItemize}
\doxysubsubsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classconfig__reader_1_1_config_reader_a814e979dea4733b9de21307801982992}{\+\_\+load\+\_\+config}} (self)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\begin{DoxyVerb}@brief A helper class for reading configuration values from config.json.
@details
The class loads parameters only once during initialization and provides
getters which will be used by the MainAlphaBlender class.
@see main_alpha_blender.py
\end{DoxyVerb}
 

\doxysubsection{Constructor \& Destructor Documentation}
\Hypertarget{classconfig__reader_1_1_config_reader_a73be962b79de11a5a90081f2d1664133}\index{config\_reader.ConfigReader@{config\_reader.ConfigReader}!\_\_init\_\_@{\_\_init\_\_}}
\index{\_\_init\_\_@{\_\_init\_\_}!config\_reader.ConfigReader@{config\_reader.ConfigReader}}
\doxysubsubsection{\texorpdfstring{\_\_init\_\_()}{\_\_init\_\_()}}
{\footnotesize\ttfamily \label{classconfig__reader_1_1_config_reader_a73be962b79de11a5a90081f2d1664133} 
config\+\_\+reader.\+Config\+Reader.\+\_\+\+\_\+init\+\_\+\+\_\+ (\begin{DoxyParamCaption}\item[{}]{self}{}\end{DoxyParamCaption})}

\begin{DoxyVerb}@brief This is the constructor and this loads config.json into memory if it exists.
@details
If the JSON file does not exist, default values will be used.
\end{DoxyVerb}
 

\doxysubsection{Member Function Documentation}
\Hypertarget{classconfig__reader_1_1_config_reader_a814e979dea4733b9de21307801982992}\index{config\_reader.ConfigReader@{config\_reader.ConfigReader}!\_load\_config@{\_load\_config}}
\index{\_load\_config@{\_load\_config}!config\_reader.ConfigReader@{config\_reader.ConfigReader}}
\doxysubsubsection{\texorpdfstring{\_load\_config()}{\_load\_config()}}
{\footnotesize\ttfamily \label{classconfig__reader_1_1_config_reader_a814e979dea4733b9de21307801982992} 
config\+\_\+reader.\+Config\+Reader.\+\_\+load\+\_\+config (\begin{DoxyParamCaption}\item[{}]{self}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}}

\begin{DoxyVerb}@brief Internal function to load JSON configuration.
@details
This function opens config.json (if present) and loads settings into a dictionary.
For the missing files, this will not raise any error but defaults will be used instead.
\end{DoxyVerb}
 \Hypertarget{classconfig__reader_1_1_config_reader_a50e368d3bc91621f087ccc3b28c5bd44}\index{config\_reader.ConfigReader@{config\_reader.ConfigReader}!getDistanceBetweenProjectors@{getDistanceBetweenProjectors}}
\index{getDistanceBetweenProjectors@{getDistanceBetweenProjectors}!config\_reader.ConfigReader@{config\_reader.ConfigReader}}
\doxysubsubsection{\texorpdfstring{getDistanceBetweenProjectors()}{getDistanceBetweenProjectors()}}
{\footnotesize\ttfamily \label{classconfig__reader_1_1_config_reader_a50e368d3bc91621f087ccc3b28c5bd44} 
config\+\_\+reader.\+Config\+Reader.\+get\+Distance\+Between\+Projectors (\begin{DoxyParamCaption}\item[{}]{self}{}\end{DoxyParamCaption})}

\begin{DoxyVerb}@brief This returns the physical distance between projector lenses in centimeters.
@details this is used to compute percentage of overlap between the two images.
@return return  Distance between projectors in float or 0 in case of wrong format.
@see main_alpha_blender.py
\end{DoxyVerb}
 \Hypertarget{classconfig__reader_1_1_config_reader_a64b94161650c3c54ca7b8a277b9cd5d6}\index{config\_reader.ConfigReader@{config\_reader.ConfigReader}!getGamma@{getGamma}}
\index{getGamma@{getGamma}!config\_reader.ConfigReader@{config\_reader.ConfigReader}}
\doxysubsubsection{\texorpdfstring{getGamma()}{getGamma()}}
{\footnotesize\ttfamily \label{classconfig__reader_1_1_config_reader_a64b94161650c3c54ca7b8a277b9cd5d6} 
config\+\_\+reader.\+Config\+Reader.\+get\+Gamma (\begin{DoxyParamCaption}\item[{}]{self}{}\end{DoxyParamCaption})}

\begin{DoxyVerb}@brief This returns the gamma value used for mask correction.
@details Typical projector gamma is around 2.2.
@return return Gamma value in float.
@see main_alpha_blender.py
\end{DoxyVerb}
 \Hypertarget{classconfig__reader_1_1_config_reader_a658a811dee70b56a76c97d7bc9a07487}\index{config\_reader.ConfigReader@{config\_reader.ConfigReader}!getImageHeight@{getImageHeight}}
\index{getImageHeight@{getImageHeight}!config\_reader.ConfigReader@{config\_reader.ConfigReader}}
\doxysubsubsection{\texorpdfstring{getImageHeight()}{getImageHeight()}}
{\footnotesize\ttfamily \label{classconfig__reader_1_1_config_reader_a658a811dee70b56a76c97d7bc9a07487} 
config\+\_\+reader.\+Config\+Reader.\+get\+Image\+Height (\begin{DoxyParamCaption}\item[{}]{self}{}\end{DoxyParamCaption})}

\begin{DoxyVerb}@brief this returns the pixel height of the input image.
@return return the Pixel height (default 1080) in int.
@see main_alpha_blender.py
\end{DoxyVerb}
 \Hypertarget{classconfig__reader_1_1_config_reader_a7bc7184db683c24a00706ae9b4dad09f}\index{config\_reader.ConfigReader@{config\_reader.ConfigReader}!getImageName@{getImageName}}
\index{getImageName@{getImageName}!config\_reader.ConfigReader@{config\_reader.ConfigReader}}
\doxysubsubsection{\texorpdfstring{getImageName()}{getImageName()}}
{\footnotesize\ttfamily \label{classconfig__reader_1_1_config_reader_a7bc7184db683c24a00706ae9b4dad09f} 
config\+\_\+reader.\+Config\+Reader.\+get\+Image\+Name (\begin{DoxyParamCaption}\item[{}]{self}{}\end{DoxyParamCaption})}

\begin{DoxyVerb}@brief this returns the file name of the image to process.
@return return Input image path in string.
@see main_alpha_blender.py
\end{DoxyVerb}
 \Hypertarget{classconfig__reader_1_1_config_reader_af09a64fbb42918c72d3fa184a04d2f14}\index{config\_reader.ConfigReader@{config\_reader.ConfigReader}!getImageWidth@{getImageWidth}}
\index{getImageWidth@{getImageWidth}!config\_reader.ConfigReader@{config\_reader.ConfigReader}}
\doxysubsubsection{\texorpdfstring{getImageWidth()}{getImageWidth()}}
{\footnotesize\ttfamily \label{classconfig__reader_1_1_config_reader_af09a64fbb42918c72d3fa184a04d2f14} 
config\+\_\+reader.\+Config\+Reader.\+get\+Image\+Width (\begin{DoxyParamCaption}\item[{}]{self}{}\end{DoxyParamCaption})}

\begin{DoxyVerb}@brief this returns the pixel width of the input image.
@return return the Pixel width (default 1920) in int.
@see main_alpha_blender.py
\end{DoxyVerb}
 \Hypertarget{classconfig__reader_1_1_config_reader_ad731ac82f98be40fffd30ae975ac2fbc}\index{config\_reader.ConfigReader@{config\_reader.ConfigReader}!getProjectedImageWidth@{getProjectedImageWidth}}
\index{getProjectedImageWidth@{getProjectedImageWidth}!config\_reader.ConfigReader@{config\_reader.ConfigReader}}
\doxysubsubsection{\texorpdfstring{getProjectedImageWidth()}{getProjectedImageWidth()}}
{\footnotesize\ttfamily \label{classconfig__reader_1_1_config_reader_ad731ac82f98be40fffd30ae975ac2fbc} 
config\+\_\+reader.\+Config\+Reader.\+get\+Projected\+Image\+Width (\begin{DoxyParamCaption}\item[{}]{self}{}\end{DoxyParamCaption})}

\begin{DoxyVerb}@brief This returns the physical width of the projected image.
@details This is the width of *one* projector's image in centimeters.
@return return  Projected image width in float or 0 if not found or invalid.
@see main_alpha_blender.py
\end{DoxyVerb}
 \Hypertarget{classconfig__reader_1_1_config_reader_ab8d1c2bce571a887e3e4fbc7fbfa178c}\index{config\_reader.ConfigReader@{config\_reader.ConfigReader}!getSide@{getSide}}
\index{getSide@{getSide}!config\_reader.ConfigReader@{config\_reader.ConfigReader}}
\doxysubsubsection{\texorpdfstring{getSide()}{getSide()}}
{\footnotesize\ttfamily \label{classconfig__reader_1_1_config_reader_ab8d1c2bce571a887e3e4fbc7fbfa178c} 
config\+\_\+reader.\+Config\+Reader.\+get\+Side (\begin{DoxyParamCaption}\item[{}]{self}{}\end{DoxyParamCaption})}

\begin{DoxyVerb}@brief This returns which projector side this instance represents.
@details Valid values are `"left"` or `"right"`. Defaults to `"left"`.
@return return the  Blend side in lowercase in string i.e "left" or "right".
@see main_alpha_blender.py
\end{DoxyVerb}
 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/\+Users/kaungzinthu/\+Desktop/projectpbl2/\mbox{\hyperlink{config__reader_8py}{config\+\_\+reader.\+py}}\end{DoxyCompactItemize}
