
\documentclass{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath}

\setcounter{MaxMatrixCols}{10}
%TCIDATA{OutputFilter=LATEX.DLL}
%TCIDATA{Version=5.00.0.2606}
%TCIDATA{<META NAME="SaveForMode" CONTENT="1">}
%TCIDATA{BibliographyScheme=Manual}
%TCIDATA{Created=Thursday, November 03, 2005 12:22:41}
%TCIDATA{LastRevised=Thursday, November 03, 2005 12:50:13}
%TCIDATA{<META NAME="GraphicsSave" CONTENT="32">}
%TCIDATA{<META NAME="DocumentShell" CONTENT="Standard LaTeX\Blank - Standard LaTeX Article">}
%TCIDATA{CSTFile=40 LaTeX article.cst}

\newtheorem{theorem}{Theorem}
\newtheorem{acknowledgement}[theorem]{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\input{tcilatex}

\begin{document}


\begin{center}
NTSC Space (YIQ)
\end{center}

\bigskip

Y=luminance \qquad gray scale information

I=hue

Q=saturation

\bigskip

\begin{equation*}
\begin{bmatrix}
Y \\ 
I \\ 
Q%
\end{bmatrix}%
=%
\begin{bmatrix}
0.299 & 0.587 & 0.114 \\ 
0.596 & -0.274 & -0.322 \\ 
0.211 & -0.523 & 0.312%
\end{bmatrix}%
\begin{bmatrix}
R \\ 
G \\ 
B%
\end{bmatrix}%
\end{equation*}%
Note that sum of first row is one and sum of the second/third row is zero

\begin{center}
yiq-image=rgb2ntsc(rgb-image)
\end{center}

\begin{equation*}
\begin{bmatrix}
R \\ 
G \\ 
B%
\end{bmatrix}%
=%
\begin{bmatrix}
1 & 0.956 & 0.621 \\ 
1 & -0.272 & -0.647 \\ 
1 & -1.106 & 1.703%
\end{bmatrix}%
\begin{bmatrix}
Y \\ 
I \\ 
Q%
\end{bmatrix}%
\end{equation*}

\begin{center}
rgb-image = ntsc2rgb(yiq-image)
\end{center}

\newpage

\begin{center}
YCbCr Space
\end{center}

useful in video \bigskip

Y=luminance \qquad gray scale information

Cb= difference between blue and reference value

Cr= difference between red and reference value

\bigskip

\begin{equation*}
\begin{bmatrix}
Y \\ 
Cb \\ 
Cr%
\end{bmatrix}%
=%
\begin{bmatrix}
0.299 & 0.587 & 0.114 \\ 
0.596 & -0.274 & -0.322 \\ 
0.211 & -0.523 & 0.312%
\end{bmatrix}%
\begin{bmatrix}
R \\ 
G \\ 
B%
\end{bmatrix}%
\end{equation*}%
Note that sum of first row is one

\begin{center}
ycbce-image=rgb2ycbcr(rgb-image)
\end{center}

\end{document}
