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
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
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
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
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