How to get pixel values from a selected image window
1 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I am trying to get all the pixel values from a rectangle region
0 个评论
采纳的回答
Image Analyst
2014-11-26
First of all, x is column, and y is row - not vice versa like you have it. So to get a 5-by-5block of pixels, a subimage, around an x,y location, you can use indexing:
subImage5x5 = fullImage(y-2:y+2, x-2:x+2);
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!