Homograpy transformation maps a point in one plane into a point in another plane, $$\begin{pmatrix}x'\\ y'\\ 1\end{pmatrix} = H_{3\times 3}\begin{pmatrix}x\\ y\\ 1\end{pmatrix},$$ where the points $X'$ and $X$ are represented using homogeneous coordinates.
It is said that matrix $H$ is defined up to scale and its degree of freedom is 8. I understand that if $H$ is up to scale, then $dof(H) = 8$, but why $H$ is defined up to scale?
UPDATE
Affine transformation is $$\begin{pmatrix}x'\\ y'\\ 1\end{pmatrix} = Ax = \begin{pmatrix}a_1 &a_2 &a_3\\ a_4 &a_5 &a_6\\ 0 &0 &1\end{pmatrix}\begin{pmatrix}x\\ y\\ 1\end{pmatrix},$$ why is $dof(A)$ 6?