Image compression using DCT This is a demo of the Entropy-Based camera focus measure calculated using discrete cosine transform of the focusing window. The demostration loads an image and evaluates the measure within a predefined focusing window at different gaussian kernels. Large values of the measure correspond to sharper images.