简体   繁体   English

有没有办法使八度音阶中的imshow表现得更像Matlab?

[英]Is there a way to make imshow in octave behave more like Matlab?

I'm currently migrating some computer vision work I'd previously been doing in Matlab to Octave. 我目前正在将以前在Matlab中所做的一些计算机视觉工作迁移到Octave。 For the most part, it's been a smooth transition, except for one annoyance. 在大多数情况下,这是一个平稳的过渡,唯一令人烦恼的是。

I often use the imshow() procedure to view an image. 我经常使用imshow()过程查看图像。 In the viewer I get in Matlab, I'm able to inspect individual pixels to see their value. 在进入Matlab的查看器中,我可以检查单个像素以查看其值。 For example, if I was looking at a connected-components labled image, I could click on a blob and see the actual value of the pixels in it. 例如,如果我正在看一个连接组件标记的图像,则可以单击一个斑点并查看其中像素的实际值。

Unfortunately, I've not found a way to do this in Octave. 不幸的是,我在Octave中没有找到实现此目的的方法。 I get a viewing window, but it doesn't seem to have any capability to inspect individual pixels. 我有一个查看窗口,但是它似乎没有检查单个像素的功能。 Does anyone know how to emulate this behavior in Octave? 有谁知道如何在Octave中模仿这种行为? Thanks. 谢谢。

I don't have imshow in my matlab (r2007b) or in my octave (no octave-forge). 我在matlab(r2007b)或八度音阶(无八度音阶伪造)中没有显示。 I am going to guess it is image after an imread. 我想这是经过深思熟虑的形象。 try 尝试

type imshow

from matlab to see what's going on internally; 从matlab看看内部发生了什么; if that is the case, I am going to guess you could do 如果是这样,我猜你可以做

F = imread(filename);
image(F);   %to show the entire image
image(F(1:100,1:100));    %to show a corner, etc.

you might want to also try pcolor (in matlab, not sure about octave). 您可能还想尝试pcolor(在matlab中,不确定八度)。

hth, hth,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM