Semester assignments for the course "Digital Image Processing" of THMMY in AUTH university.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
501 B

function x = mydequant(q, w)
%Implementation of a uniform, symmetric dequantizer without a dead zone
% Usage x = mydequant(q, w), where:
% Inputs
% - q is the input that is going to be dequantized, this can be a
% scalar, a column or row vector or a matrix
% - w is the quantization step size
%
% Output
% - x holds the quantized value(s), depending on the input this may
% be a scalar, a column or row vector or a matrix
x = (2 * q .* w + w) / 2;
end