Skip to content

A numpy & pytorch deployment of 2D DiscreteCosineTransformation (DCT)

Notifications You must be signed in to change notification settings

yjh0410/DiscreteCosineTransformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discrete Cosine Transformation

We release the codes of 2D DCT with Numpy and PyTorch.

Our deployment can process a batch of square images with [B, N, N] shape, rather than process image one by one.

Examples

  • Original mask images:

image image

  • transformed by cv2.dct:

image image

  • transformed by our Numpy deployment:

image image

  • transformed by our PyTorch deployment:

image image

  • Recover by cv2.idct:

image image

  • Recover by our Numpy deployment:

image image

  • Recover by our PyTorch deployment:

image image

About

A numpy & pytorch deployment of 2D DiscreteCosineTransformation (DCT)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages