How to extract image pixel region by image index value ?
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Jiro Doke
2017-8-4
编辑:Jiro Doke
2017-8-4
im_region = im(id1:id2,id3:id4);
2 个评论
Jiro Doke
2017-8-11
编辑:Jiro Doke
2017-8-11
I guess your question doesn't make sense. What do you mean by "pixel position". In my answer, id1, id2, id3, id4 are pixel positions. So I just provided an answer where you extract a region of an image defined by those 4 positions.
Please be more precise with your problem statement. Note that the body text of your question just says "selc_region". What does that even mean? Also, tell us what you have tried and where exactly you are struggling. Providing code samples you tried would be best.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!