How does the imresize function work?
5 次查看(过去 30 天)
显示 更早的评论
Hi, I was wondering if the resize function changes the size of the pixel? Is the resize function same as CCD binning? I like to change the size of my image but not change the ratio. My original image has a pixelsize of 5,5 um.
J = imresize(I, 0.5);
I tried to see if resizing changed the result (the size of my object and the integrated intensity) and it does comes out differently than if I would calculate with my orginial image which takes a long time (with convolution of my image and my mask aperture which is considerably smaller image than my orginial image). Try to figure out why it coems out differently.
0 个评论
采纳的回答
Jan
2018-8-14
imresize does not have or use any information about the size of the pixels. It combines the values of the pixels only to create a smaller or greater output array.
If the resizing changes your "result", this must be an effect on how the "result" is calculated. So please post the code you are using and explain the differences between the output and your expectations ins detail.
2 个评论
Jan
2018-8-14
Of course reducing the number of pixels to a quarter of the original number changes the contents of the image. imresize does not change the size of the pixels, but their number. I do not know, what the shown parameters are, but it seems to be obvious that their value if affected by the reduction of the pixels. Why do you assume, that the values do not change? I think, that this assumption is the only problem.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!