방정식을 사용하여 3열 그림 만들기

방정식을 사용하여 3열 그림 만들기

이미지에 첨부된 것과 비슷한 것을 만드는 방법을 아는 사람이 있는지 궁금합니다. 여기에 이미지 설명을 입력하세요

다음 코드가 있지만 내가 찾고 있는 것은 이를 이전 그림에서 보여준 것과 유사한 것으로 변환할 수 있는 것입니다.

\documentclass[8pt]{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}\setlength\arraycolsep{0pt}\small% added
\text{Roberts}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    1 & 0\\
                    0 & -1
                \end{pmatrix} \\[3ex]
           G_y = \begin{pmatrix}
                    0 & 1\\
                    -1 & 0
                \end{pmatrix}
        \end{cases}
\text{Prewitt}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    1 & 0 & -1\\
                    1 & 0 & -1\\
                    1 & 0 & -1
                \end{pmatrix}\\[4ex]
           G_y = \begin{pmatrix}
                    1 & 1 & 1\\
                    0 & 0 & 0\\
                    -1 & -1 & -1
                \end{pmatrix}
        \end{cases}
\ 
\text{Sobel}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    -1 & 0 & -1\\
                    -2 & 0 & 2\\
                    -1 & 0 & 1
                \end{pmatrix}\\[4ex]
           G_y = \begin{pmatrix}
                    1 & 2 & 1\\
                    0 & 0 & 0\\
                    -1 & -2 & -1
                \end{pmatrix}
        \end{cases}
\label{eq:2}
\end{equation}


\end{document}

답변1

다음을 사용하여 subfigures:

여기에 이미지 설명을 입력하세요

\documentclass{article}
\usepackage{geometry}
\usepackage{amsmath}
\usepackage{caption,subcaption}
\captionsetup{skip=1ex,
              font={small,sf},
              labelfont=bf,
              singlelinecheck=false}

\begin{document}
    \begin{figure}[ht]
    \setlength\arraycolsep{1pt}
    \small
\begin{subfigure}[b]{0.3\linewidth}
\[
\text{Roberts}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    1 & 0\\
                    0 & -1
                \end{pmatrix} \\[9ex]
           G_y = \begin{pmatrix}
                    0 & 1\\
                    -1 & 0
                \end{pmatrix}
        \end{cases}
\]
\caption{}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\linewidth}
\[
\text{Prewitt}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    1 & 0 & -1\\
                    1 & 0 & -1\\
                    1 & 0 & -1
                \end{pmatrix}\\[2ex]
           G_y = \begin{pmatrix}
                    1 & 1 & 1\\
                    0 & 0 & 0\\
                    -1 & -1 & -1
                \end{pmatrix}
        \end{cases}
\]
\caption{}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\linewidth}
\[
\text{Sobel}
    =\begin{cases}
           G_x = \begin{pmatrix}
                    -1 & 0 & -1\\
                    -2 & 0 & 2\\
                    -1 & 0 & 1
                \end{pmatrix}\\[2ex]
           G_y = \begin{pmatrix}
                    1 & 2 & 1\\
                    0 & 0 & 0\\
                    -1 & -2 & -1
                \end{pmatrix}
        \end{cases}
\]
\caption{}
\end{subfigure}
\caption{Example}
\label{eq:2}
    \end{figure}
\end{document}

관련 정보