Re: Help for Otsu implementation from C

2007-11-07 Thread Johny
On Sep 22, 6:24 pm, azrael <[EMAIL PROTECTED]> wrote: > Thanks Man, I did it. It works fantastic. > Can you please posted the working Python implementation of the Otsu filter . Thanks L. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help for Otsu implementation from C

2007-09-22 Thread azrael
Thanks Man, I did it. It works fantastic. On Sep 19, 9:33 pm, azrael <[EMAIL PROTECTED]> wrote: > I know. The translation is not so important to me, because this is > going to just a little function that is working in the last step of > the whole proces. The whole implementation wont be published

Re: Help for Otsu implementation from C

2007-09-19 Thread azrael
I know. The translation is not so important to me, because this is going to just a little function that is working in the last step of the whole proces. The whole implementation wont be published and has just the meaning to implement a first alpha version of a face recognition system. It is nearly

Re: Help for Otsu implementation from C

2007-09-19 Thread Peter Otten
azrael wrote: > Can somone look at this > def otsu(hi): > fmax=-1.0 > border=len(hi) > for i in range(border): > if hi[i]!=0:break > for j in range(border-1,0-1,-1): > if hi[j] != 0:break > s = sum([k*hi[k] for k in range(border)]) n = sum(hi) # > product(i

Help for Otsu implementation from C

2007-09-19 Thread azrael
Can somone look at this def otsu(hi): fmax=-1.0 border=len(hi) for i in range(border): if hi[i]!=0:break for j in range(border-1,0-1,-1): if hi[j] != 0:break s = sum([k*hi[k] for k in range(border)]) n = sum(hi) # product(im.size) n1=n2=csum=0.0 for