Need Explanation of Bicubic Interpolation, in imresize inbuilt function of MatLab?
조회 수: 35 (최근 30일)
이전 댓글 표시
I have a Image and I want to resize it by factor of 0.5 in C code . So In matlab I can do by using inbuilt function imresize(Image,0.5 'bicubic') .But I have to convert this imresize inbuilt function in C code. So I need expalnation on how imresize function is working in matlab??
Can anyone please Explain me How Can I processd??
댓글 수: 0
답변 (3개)
DGM
2022년 12월 18일
편집: DGM
2022년 12월 18일
If you're out to replicate imresize(), see this answer:
and this comment:
Also:
https://stackoverflow.com/questions/26823140/imresize-trying-to-understand-the-bicubic-interpolation
I also recall another conversation that I can't find yet. I'll add it if I do. It might have been deleted.
Ultimately, you'll find that the core issue will be the black box that is imresizemex.mexa64. I don't know what's in that.
If you just want any example of 2D interpolation, there are probably more examples around.
Image Analyst
2022년 12월 18일
Did you try
>> edit imresize
댓글 수: 2
Image Analyst
2022년 12월 19일
Then see the algorithm here:
and write that in C code. We won't do that for you since we're only about MATLAB code here.
Steven Lord
2022년 12월 18일
If you have access to MATLAB Coder, the imresize function supports the C / C++ Code Generation extended capability (with some limitations.) See the Extended Capabilities section on its documentation page for more information about what's supported.
참고 항목
카테고리
Help Center 및 File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!