Parallelization of Discrete Cosine Transform in Shape from Focus