031ea658382e7aba5fcad49df9e116824a391be5,mahotas/labeled.py,,border,#,51

Before Change


    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`")

After Change


    """
    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):
    """
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

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: 5649adce6e8c52fb69e213644dceb6267cee0c80
Time: 2010-05-11
Author: lpc@cmu.edu
File Name: mahotas/texture.py
Class Name:
Method Name: cooccurence


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