Hi

please always make "reply to all" and keep the mailing list CC'ed so
others can join in the discussion (specially if others have matlab and
cantest this for us).

On 10 November 2011 15:25, Adrián del Pino <delpinonavarr...@gmail.com> wrote:
> Hi Carnë,
>
> I have tested this program with several images, and it always ran well (It
> does what I need).

Can you explain this better. Do you mean to say that the function I
sent you last night is always working good, or that the previous
version had always been working good in other cases and my
modifications to it were too much?

> Nevertheless, I have noticed that you also have corrected the "x" number
> ([counts, x] = imhist(img);) but I think this number should start from 1
> because it is a bin number (not the grey level). As I do not have Matlab,  I
> cannot prove it. However, as Matlab admits this sentence "imhist(I, n)"
> (with n the number of bins), the first bin can include many grey levels.

I asked someone in ##matlab to test this for me and matlab returns 0
for the first bin (so this compatibility). The way I see it, the first
bin is for values of 1. Yes, bin number starts from 1 therefore the
index is 1.

> Besides, the histogram does not display.

The histogram should only display if you ask for no output values (at
least that's what I understood from the MatLab documentation..

[counts,x]=imhist(img);  ## no image, just output
imhist(img);              ## no output, just image

Carnë

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to