필터 지우기
필터 지우기

Anti-Aliasing Filter for matlab imresize

조회 수: 5 (최근 30일)
Wu
Wu 2011년 6월 14일
Hi, I am doing a project on computer graphics and have been asked to implement the matlab's imresize function in C++, using bicubic interpolation.
As you know, if the scale factor is less than one,we need a anti-aliasing filter while interpolation. However I have no experience in filter design and at the moment I'm still relatively new to matlab and the image processing toolbox. I've tried using the fspecial gaussian filter but it doesnt seem to have muxh effect. Can you give me any tips on how to produce an appropriate filter in matlab, or point me to relevant information.
Any help is appeciated,
many thanks,
Xifei WU 2011.6.14
  댓글 수: 3
Wu
Wu 2011년 6월 14일
Thanks for your suggestion. The bicubic interpolation wanted need to be written by C++ and get the same results as they are get by imresize of matlab.
Can you tell me the name of lowpass FIR filter used in imresize of matlab when shrinking an matrix, and how they are used in imresize, or give me any tips on it.Thank you!
David Young
David Young 2011년 6월 14일
I'm sorry, but I don't know about the internal operation of imresize. I guess with some effort it would be possible to work out the anitaliasing method by applying imresize to simple examples.

댓글을 달려면 로그인하십시오.

답변 (2개)

Jan
Jan 2011년 6월 14일
You can look inside the IMRESIZE function itself. All necessary methods are implemented there.
  댓글 수: 1
Wu
Wu 2011년 6월 14일
after enter the command line of "open imresize" in matlab, we can see the code of imresize.But the most of functions is used to deal with the command line you enter, and the function to deal with data is:
out = imresizemex(in, weights', indices', dim), however, the function of imresizemex can not be seen.

댓글을 달려면 로그인하십시오.


Yoav
Yoav 2011년 7월 17일
What does the function imresizemex do? (I don't care about the specific implementation, just to understand how to output is defined by the input). Thanks in advance, Yoav
  댓글 수: 1
Wu
Wu 2011년 7월 23일
imresizemex is a function used in imresize of matlab 2010.If you want to know how the funciton of imresize work, you can look the source code of imresize in the environment of matlab 2007, which is more deatail than matlab 2010.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by