Need Explanation of Bicubic Interpolation, in imresize inbuilt function of MatLab?
38 views (last 30 days)
Show older comments
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 Comments
Answers (3)
DGM
on 18 Dec 2022
Edited: DGM
on 18 Dec 2022
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
on 18 Dec 2022
Did you try
>> edit imresize
2 Comments
Image Analyst
on 19 Dec 2022
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
on 18 Dec 2022
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.
See Also
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!