[mmse2hmt] [Up] [mminfcanon] | Sup-generating And Inf-generating |
mmthreshad creates the image
y
as the threshold of the image
f
by the images
f1
and
f2
. A pixel in
y
has the value 1 when the value of the corresponding pixel in
f
is between the values of the corresponding pixels in
f1
and
f2
.
def mmthreshad(f, f1, f2=None): if f2 is None: y = mmbinary(f1 <= f) else: y = mmbinary((f1 <= f) & (f <= f2)) return y
[mmse2hmt] [Up] [mminfcanon] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |