dct3D function

Calculate and threshold DCT for an 3D image