(For example, when I quantize the image after using DWT and then use IDWT, the image is filled with squares). But I dont seem to get a good quantization of the image. =wavread('road.wav') %fs gets the sampling rate of the sound signalįt = y(:,1) %Assuming that the sound file has two channels, we only analyze the first channel. I created a method in Matlab for quantizing an Image. The matlab implementation code is as follows: Once again, I experience that matlab is too powerful. PS: I didn't expect that matlab can also read, modify, and play sound files. I read a lot of information and blogs on the Internet, but at the end I still looked at a loss, and finally I wrote it bit by bit by myself.Īlthough a lot of problems have been created, in the end I resolved it by myself and recorded the results of this hard work. The teaching task is to read a sound file and perform 4bit uniform quantization on the first 200 sampling points. In order to become suitable for digital processing, an image function f(x,y) must be digitized both spatially and in amplitude.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |