648d4d50901749951a7350637d57c574a527a6ba,mahotas/convolve.py,,rank_filter,#Any#Any#Any#Any#Any#Any#,112
Before Change
if not output.flags.contiguous: raise ValueError("mahotas.rank_filter: `output` is not c-array")
else:
output = np.empty(f.shape, f.dtype)
if mode not in modes:
raise ValueError("mahotas.rank_filter: `mode` not in %s" % modes)
if mode == "constant" and cval != 0.:
raise NotImplementedError("Please email mahotas developers to get this implemented.")
return _convolve.rank_filter(f, Bc, output, rank, mode2int[mode])
After Change
"""
Bc = morph.get_structuring_elem(f, Bc)
output = _get_output(f, output, "rank_filter")
_check_mode(mode, cval, "rank_filter")
return _convolve.rank_filter(f, Bc, output, rank, mode2int[mode])
def template_match(f, template, mode="reflect", cval=0., output=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: luispedro/mahotas
Commit Name: 648d4d50901749951a7350637d57c574a527a6ba
Time: 2011-06-23
Author: luis@luispedro.org
File Name: mahotas/convolve.py
Class Name:
Method Name: rank_filter
Project Name: luispedro/mahotas
Commit Name: 648d4d50901749951a7350637d57c574a527a6ba
Time: 2011-06-23
Author: luis@luispedro.org
File Name: mahotas/convolve.py
Class Name:
Method Name: median_filter
Project Name: luispedro/mahotas
Commit Name: 648d4d50901749951a7350637d57c574a527a6ba
Time: 2011-06-23
Author: luis@luispedro.org
File Name: mahotas/convolve.py
Class Name:
Method Name: convolve
Project Name: luispedro/mahotas
Commit Name: 648d4d50901749951a7350637d57c574a527a6ba
Time: 2011-06-23
Author: luis@luispedro.org
File Name: mahotas/convolve.py
Class Name:
Method Name: rank_filter