What will happen if in imresize in the rows/columns is a floating point number.
1 次查看(过去 30 天)
显示 更早的评论
I was trying to understand what happens if in imresize the rows/columns is a floating point number. Eg: imresize(IM, [22.75, 22.75], 'bilinear')
0 个评论
回答(1 个)
David Sanchez
2013-6-6
Matlab will _round_the given values. In your case, 22.75 -> 23
imresize(IM, [22.75, 22.75], 'bilinear') %will be applied as
imresize(IM, [23, 23], 'bilinear')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!