extraction of pixel values of image
3 次查看(过去 30 天)
显示 更早的评论
Hello
i want to extract the pixels values of image attached and store it in array or matrix?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/268040/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/268040/image.jpeg)
3 个评论
回答(1 个)
Jose Jeremias Caballero
2020-1-24
编辑:Jose Jeremias Caballero
2020-1-24
>> a=imread('image.jpeg');
>> read1=a(:,:,1);
>> green1=a(:,:,2);
>> blue1=a(:,:,3);
3 个评论
Image Analyst
2020-1-24
read is a built-in function. You shouldn't use built-in function names as variables -- I think you meant red.
另请参阅
类别
在 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!