Getting the DCT coefficient based on what I've read, is usually done through a matrix, usually 8x8 or 16x16 using these formulas:
$$B_{pq}=\alpha_p\alpha_q\sum_{m=0}^{M-1}\sum_{n=0}^{N-1}A_{mn}\cos\left(\frac{\pi(2m+1)p}{2M}\right)\cos\left(\frac{\pi(2n+1)q}{2N}\right),\quad \begin{align} &0\leq p\leq M-1\\ &0\leq q\leq N-1 \end{align} $$
$$\alpha_p=\left\{ \begin{array}{ll} 1/\sqrt{M},& p=0\\ \sqrt{2/M}, & 1\leq p\leq M-1 \end{array}\right. \quad \alpha_q=\left\{ \begin{array}{ll} 1/\sqrt{N},& q=0\\ \sqrt{2/N}, & 1\leq q\leq N-1 \end{array}\right. $$
However, I would like to know if it is possible to determine the corresponding DCT coefficient of a pixel or of the edges of an image? Is there a way to detect edges through DCT coefficients?