Here's a solution that uses multline
, to split your equation into multiple lines, combined with cases
or with drcases
depending on what you prefer most:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{multline*}
\text{Master-\textbf{Dark}[Bias]-}pix(x,y) \\
=
\begin{cases}
\mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n+1}{2}}(x,y) & \text{if $n$ is odd,} \\
\dfrac{1}{2}\left(\mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n}{2}}(x,y) + \mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n}{2}+1}(x,y)\right) & \text{if $n$ is even.} \\
\end{cases}
\end{multline*}
\begin{multline*}
\text{Master-\textbf{Dark}[Bias]-}pix(x,y) \\
=
\begin{cases}
\text{if $n$ is odd:} & \mathbf{Dark}\mathrm{[Bias]}\text{-}pix_\frac{n+1}{2}(x,y) \\
\text{if $n$ is even:} & \dfrac{1}{2}\left(\mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n}{2}}(x,y) + \mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n}{2}+1}(x,y)\right) \\
\end{cases}
\end{multline*}
\begin{multline*}
\begin{drcases}
\text{if $n$ is odd:} & \mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n+1}{2}}(x,y) \\
\text{if $n$ is even:} & \dfrac{1}{2}\left(\mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n}{2}}(x,y) + \mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n}{2}+1}(x,y)\right) \\
\end{drcases} \\
= \text{Master-\textbf{Dark}[Bias]-}pix(x,y)
\end{multline*}
\begin{multline*}
\begin{drcases}
\mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n+1}{2}}(x,y) & \text{if $n$ is odd,} \\
\dfrac{1}{2}\left(\mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n}{2}}(x,y) + \mathbf{Dark}\mathrm{[Bias]}\text{-}pix_{\frac{n}{2}+1}(x,y)\right) & \text{if $n$ is even.} \\
\end{drcases} \\
= \text{Master-\textbf{Dark}[Bias]-}pix(x,y)
\end{multline*}
\end{document}
Or the very same with abbreviation commands:
\documentclass{article}
\usepackage{mathtools}
\newcommand\B{[\mathrm{Bias}]}
\newcommand\D{\mathbf{Dark}}
\begin{document}
\begin{multline*}
\text{Master-\textbf{Dark}[Bias]-}pix(x,y) \\
=
\begin{cases}
\D\B\text{-}pix_{\frac{n+1}{2}}(x,y) & \text{if $n$ is odd,} \\
\dfrac{1}{2}\left(\D\B\text{-}pix_{\frac{n}{2}}(x,y) + \D\B\text{-}pix_{\frac{n}{2}+1}(x,y)\right) & \text{if $n$ is even.} \\
\end{cases}
\end{multline*}
\begin{multline*}
\text{Master-\textbf{Dark}[Bias]-}pix(x,y) \\
=
\begin{cases}
\text{if $n$ is odd:} & \D\B\text{-}pix_{\frac{n+1}{2}}(x,y) \\
\text{if $n$ is even:} & \dfrac{1}{2}\left(\D\B\text{-}pix_{\frac{n}{2}}(x,y) + \D\B\text{-}pix_{\frac{n}{2}+1}(x,y)\right) \\
\end{cases}
\end{multline*}
\begin{multline*}
\begin{drcases}
\text{if $n$ is odd:} & \D\B\text{-}pix_{\frac{n+1}{2}}(x,y) \\
\text{if $n$ is even:} & \dfrac{1}{2}\left(\D\B\text{-}pix_{\frac{n}{2}}(x,y) + \D\B\text{-}pix_{\frac{n}{2}+1}(x,y)\right) \\
\end{drcases} \\
= \text{Master-\textbf{Dark}[Bias]-}pix(x,y)
\end{multline*}
\begin{multline*}
\begin{drcases}
\D\B\text{-}pix_{\frac{n+1}{2}}(x,y) & \text{if $n$ is odd,} \\
\dfrac{1}{2}\left(\D\B\text{-}pix_{\frac{n}{2}}(x,y) + \D\B\text{-}pix_{\frac{n}{2}+1}(x,y)\right) & \text{if $n$ is even.} \\
\end{drcases} \\
= \text{Master-\textbf{Dark}[Bias]-}pix(x,y)
\end{multline*}
\end{document}
EDIT: As to your request of having the formulae centered and using an underbrace:
Use \array
to get something centered. Then put an \underbrace
under the entire array:
\documentclass{article}
\usepackage{MnSymbol}
\newcommand\B{[\mathrm{Bias}]}
\newcommand\D{\mathbf{Dark}}
\begin{document}
\begin{equation*}
\underbrace{
\begin{array}{rc}
\text{if $n$ is odd:} & \D\B\text{-}pix_{\frac{n+1}{2}}(x,y) \\
\text{if $n$ is even:} & \dfrac{1}{2}\left(\D\B\text{-}pix_{\frac{n}{2}}(x,y) + \D\B\text{-}pix_{\frac{n}{2}+1}(x,y)\right)
\end{array}
}_{= \text{Master-\textbf{Dark}[Bias]-}pix(x,y)}
\end{equation*}
\end{document}