I'm creating this function in Python:
def myThreshold(I,p):
Ibn = I;
if((p > 0) && (p < 256))
index = find(I >= p);
lbn = lbn * 0;
lbn(index) = 255;
return lbn
but on the line of the if an error appears that says that the syntax is not valid, what am I failing?
Thanks