How i can do sub-sampling for an image by its pixels
7 次查看(过去 30 天)
显示 更早的评论
Hi I want sub-sample a image by its pixels, can any one help. Thanks in advance
0 个评论
回答(1 个)
Image Analyst
2014-4-17
For example, to subsample by a factor of 2 in the x direction and 3 in the y direction:
smallImage = bigImage(1:3:end, 1:2:end); % Remember (row, column) = (y, x) NOT (x,y)
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!