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).
OK. I'll do.
> 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?
Of course. I only asked that counts ([counts, x] = imhist(img);) array were
correct, and it works fine when I tested it. However, I cannot assure that
this function gives always the correct answer because I do not take care of
all the inputs, for example, imhist(X, map). In fact, imhist(img, n) does
not work when I test it with n = 2.
> 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
In my computer, it does not display the image using the second sentence.
Greetings.
Adrián
On Thu, Nov 10, 2011 at 1:08 PM, Carnë Draug <carandraug+...@gmail.com>wrote:
> 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