Image 查看图像的像素强度
如何在matlab中通过在图像上移动鼠标指针来查看图像的像素强度 我用过:Image 查看图像的像素强度,image,matlab,image-processing,Image,Matlab,Image Processing,如何在matlab中通过在图像上移动鼠标指针来查看图像的像素强度 我用过: imshow(imread('image.jpg')); 但无法查看图像中每个像素的像素强度 比如说, In MS-paint, while moving the mouse pointer over the image we can see the location of the pixel such as (20, 117) at the status bar. 但是我需
imshow(imread('image.jpg'));
但无法查看图像中每个像素的像素强度
比如说,
In MS-paint, while moving the mouse pointer
over the image we can see the location of
the pixel such as (20, 117) at the status bar.
但是我需要看到像素的强度
是否有其他选项可以查看它。或者我需要编写代码来查看它?如果要创建强度贴图,可以使用MATLAB的。这将把从
imread
获得的n×m×3 RGB阵列转换为包含像素强度的n×m矩阵
然后,您可以指向当前鼠标坐标的强度矩阵。您有
impixelinfo
和impixelinfoval
用于显示交互信息。另一个更具交互性的选项是
imtool(imread('image.jpg')); % For GrayScale Image
imtool(rgb2gray(imread('image.jpg'))); % For RGB Image
相关人士:谢谢。它起作用了。我刚刚输入了两行imshow(imread('image.jpg');数据游标模式开启;现在,通过在图像上移动光标,强度将与X、Y、Z坐标一起显示。@user2522560:噢,哇,更简单了;不知道:)好吧,对你有好处!请记住,您可以通过单击旁边的大“勾号”标记将此答案标记为已接受。对于灰度图像,它可以工作;对于RGB图像,我们需要使用rgb2gray将图像转换为RGB,然后继续此imshow(rgb2gray(imread('image.jpg'));数据游标模式开启;你是对的。非常感谢。