031ea658382e7aba5fcad49df9e116824a391be5,mahotas/labeled.py,,border,#,51
Before Change
Pixels are True exactly where there is a border between `i` and `j` in `labeled`
"""
Bc = get_structuring_elem(labeled, Bc)
if output is None:
output = np.zeros(labeled.shape, bool)
else:
if output.dtype != bool:
raise TypeError("mahotas.labeled.border: output must be boolean")
if not output.flags["C_CONTIGUOUS"]:
raise TypeError("mahotas.labeled.border: output must be C-contiguous")
if output.shape != labeled.shape:
raise ValueError("mahotas.labeled.border: output must be of same size as `labeled`")
return _labeled.border(labeled, Bc, output, i, j, bool(always_return))
def borders(labeled, Bc=None, output=None):
"""
After Change
Pixels are True exactly where there is a border between `i` and `j` in `labeled`
"""
Bc = get_structuring_elem(labeled, Bc)
output = _get_output(labeled, output, "labeled.border", bool)
output.fill(False)
return _labeled.border(labeled, Bc, output, i, j, bool(always_return))
def borders(labeled, Bc=None, output=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 16
Instances Project Name: luispedro/mahotas
Commit Name: 031ea658382e7aba5fcad49df9e116824a391be5
Time: 2011-06-23
Author: luis@luispedro.org
File Name: mahotas/labeled.py
Class Name:
Method Name: border
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: 031ea658382e7aba5fcad49df9e116824a391be5
Time: 2011-06-23
Author: luis@luispedro.org
File Name: mahotas/labeled.py
Class Name:
Method Name: borders
Project Name: luispedro/mahotas
Commit Name: 031ea658382e7aba5fcad49df9e116824a391be5
Time: 2011-06-23
Author: luis@luispedro.org
File Name: mahotas/labeled.py
Class Name:
Method Name: border