031ea658382e7aba5fcad49df9e116824a391be5,mahotas/labeled.py,,borders,#Any#Any#Any#,91

Before Change


        Pixels are True exactly where there is a border 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.borders: output must be boolean")
        if not output.flags["C_CONTIGUOUS"]:
            raise TypeError("mahotas.labeled.borders: output must be C-contiguous")
        if output.shape != labeled.shape:
            raise ValueError("mahotas.labeled.borders: output must be of same size as `labeled`")
    return _labeled.borders(labeled, Bc, output)

After Change


        Pixels are True exactly where there is a border in `labeled`
    """
    Bc = get_structuring_elem(labeled, Bc)
    output = _get_output(labeled, output, "labeled.borders", bool)
    output.fill(False)
    return _labeled.borders(labeled, Bc, output)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 17

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: borders


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: 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


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