CalcWorldHub
Free online calculator · no signup

Orthonormal discrete cosine transform calculator

Convert a finite real block into cosine coefficients with an energy-preserving DCT-II convention.

4,000 tools
Orthonormal discrete cosine transform calculator — Uniform samples (signal units) and calculation method
Orthonormal discrete cosine transform calculator: inputs and calculation method.

How to use this calculator

Convert a finite real block into cosine coefficients with an energy-preserving DCT-II convention.

  1. Enter Uniform samples (signal units). Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Orthonormal discrete cosine transform explained

The orthonormal DCT-II represents a finite real sequence with cosine basis coefficients. Its scaling preserves signal energy across coefficients, while the DC term summarizes the sequence’s constant component.

Inputs, symbols, and units

x — Uniform samples (signal units)
Chronological real samples; use a comma-separated list in the same signal units. Use comma-separated values in the stated order.

Formula and method

Ck=αkΣn x[n]cos[π(n+1/2)k/N], α0=1/√N and αk>0=√(2/N): orthonormal DCT type II.

The transform corresponds to an even extension at half-sample boundaries, unlike the periodic extension used by the DFT. Every coefficient is exposed for reuse.

A worked scenario

Uniform samples (signal units) = [1, 2, 3, 4, 4, 3, 2, 1].

  • DC cosine coefficient: 7.071068 signal units
  • Cosine coefficient energy: 60 signal units²
  • DCT coefficient 0: 7.071068 signal units
  • DCT coefficient 1: 8.88178420e-16 signal units
  • DCT coefficient 2: -3.154322 signal units
  • DCT coefficient 3: 1.11022302e-16 signal units
  • DCT coefficient 4: 9.99200722e-16 signal units
  • DCT coefficient 5: -1.11022302e-15 signal units
  • DCT coefficient 6: -0.224171 signal units
  • DCT coefficient 7: 5.66213743e-15 signal units

An eight-point symmetric rising-and-falling block concentrates strongly into its DC and low-order cosine terms.

Assumptions and edge cases

No quantization, coefficient truncation or compression ratio is inferred. DCT normalization differs among software libraries.

Reading the outputs

Energy equals the input squared sample sum; DC is scaled by square root of block length.

Frequently asked questions

Which DCT type is used?

Type II with orthonormal scaling.

Does the DCT create complex coefficients?

No. Real input produces real cosine coefficients.

Why is the DC coefficient not the mean?

It equals the mean multiplied by square root of the block length.

How do I use the Orthonormal discrete cosine transform calculator?

Enter Uniform samples (signal units). Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Orthonormal discrete cosine transform?

Uniform samples (signal units) = [1, 2, 3, 4, 4, 3, 2, 1]. DC cosine coefficient: 7.071068 signal units Cosine coefficient energy: 60 signal units² DCT coefficient 0: 7.071068 signal units DCT coefficient 1: 8.88178420e-16 signal units DCT coefficient 2: -3.154322 signal units DCT coefficient 3: 1.11022302e-16 signal units DCT coefficient 4: 9.99200722e-16 signal units DCT coefficient 5: -1.11022302e-15 signal units DCT coefficient 6: -0.224171 signal units DCT coefficient 7: 5.66213743e-15 signal units An eight-point symmetric rising-and-falling block concentrates strongly into its DC and low-order cosine terms.