janalysis/dct.py
def dct2_twod_orthonormal(two_d_array):
    """
    Implements the 2d dct2 as JPEG requires it (orthonormal, N points' size
    equal to row and columns).
    :param two_d_array: The time domain sequence.
    :type two_d_array: numpy.array.
    :returns: numpy.array -- the transform representation of the sequence.
    """
    matrix_dimensions = two_d_array.shape
    output = numpy.zeros(matrix_dimensions)
    for row_index, output_row in enumerate(output):
        for col_index in range(output_row.size):
            output[row_index][col_index] = _get_twod_value_dct2(row_index,
                                                                col_index,
                                                                two_d_array)
    return output

    Implements the 2d dct2 as JPEG requires it (orthonormal, N points' size
    equal to row and columns).
    :param two_d_array: The time domain sequence.
    :type two_d_array: numpy.array.
    :returns: numpy.array -- the transform representation of the sequence.
    
Implements the 2d dct2 as JPEG requires it (orthonormal, N points' size
equal to row and columns).
Implements the 2d dct2 as JPEG requires it ( orthonormal N points ' size equal to row and columns ) .
def dct2_twod_orthonormal(two_d_array):
    matrix_dimensions = two_d_array.shape
    output = numpy.zeros(matrix_dimensions)
    for row_index, output_row in enumerate(output):
        for col_index in range(output_row.size):
            output[row_index][col_index] = _get_twod_value_dct2(row_index,
                                                                col_index,
                                                                two_d_array)
    return output
def dct2_twod_orthonormal ( two_d_array ) : matrix_dimensions = two_d_array . shape output = numpy . zeros ( matrix_dimensions ) for row_index , output_row in enumerate ( output ) : for col_index in range ( output_row . size ) : output [ row_index ] [ col_index ] = _get_twod_value_dct2 ( row_index , col_index , two_d_array ) return output
Implements the 2d dct2 as JPEG requires it (orthonormal, N points' size
equal to row and columns).
Implements the 2d dct2 as JPEG requires it ( orthonormal N points ' size equal to row and columns ) .
"""
    Implements the 2d dct2 as JPEG requires it (orthonormal, N points' size
    equal to row and columns).
    :param two_d_array: The time domain sequence.
    :type two_d_array: numpy.array.
    :returns: numpy.array -- the transform representation of the sequence.
    """
numpy.array -- the transform representation of the sequence.
numpy . array -- the transform representation of the sequence .
two_d_array
The time domain sequence.
The time domain sequence .