Is there a way to make imshow in octave look more like Matlab?

I am currently carrying over some computer work that I used to do in Matlab in Octave. For the most part, it was a smooth transition, save for one annoyance.

I often use the imshow () routine to view an image. In the viewer I get in Matlab, I can inspect the individual pixels to see their value. For example, if I was looking at an image with the components connected, I could click on the blob and see the actual pixel value in it.

Unfortunately I haven't found a way to do this in Octave. I am getting a viewport, but it has no way of inspecting individual pixels. Does anyone know how to emulate this behavior in Octave? Thank.

+2


source to share


1 answer


I don't have imshow in my matlab (r2007b) or in my octave (no octave forge). I'm going to guess that this is the image after the impression. try it

type imshow

      

from Matlab to see what's going on inside; if so i'm going to suggest what 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 can also try pcolor (in matlab not sure about octave).

HTH,

0


source







All Articles