de807f39aed300bc07e1eb76d39a2c68838298ab,lazyflow/operators/opFilterLabels.py,,remove_wrongly_sized_connected_components,#Any#Any#Any#Any#Any#,64
Before Change
except TypeError:
// On 32-bit systems, must explicitly convert from uint32 to int
// (This fix is just for VM testing.)
component_sizes = numpy.bincount( numpy.asarray(a.reshape(-1, order="A"), dtype=int) )
bad_sizes = component_sizes < min_size
if max_size is not None:
numpy.logical_or( bad_sizes, component_sizes > max_size, out=bad_sizes )
del component_sizes
After Change
numpy.place(a,a,1)
return a
component_sizes = numpy.bincount( a.ravel(order="K") )
bad_sizes = component_sizes < min_size
if max_size is not None:
numpy.logical_or( bad_sizes, component_sizes > max_size, out=bad_sizes )
del component_sizes
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: ilastik/ilastik
Commit Name: de807f39aed300bc07e1eb76d39a2c68838298ab
Time: 2016-02-08
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/opFilterLabels.py
Class Name:
Method Name: remove_wrongly_sized_connected_components
Project Name: scikit-image/scikit-image
Commit Name: 834f8b6701ec55394f0e48d59a1524a4bbada14a
Time: 2020-02-07
Author: rfezzani@gmail.com
File Name: skimage/exposure/_adapthist.py
Class Name:
Method Name: _clahe
Project Name: EducationalTestingService/skll
Commit Name: d191b774f73f0e8a099db618d292f2b939c0086a
Time: 2013-08-22
Author: dblanchard@ets.org
File Name: skll/metrics.py
Class Name:
Method Name: kappa
Project Name: biolab/orange3
Commit Name: c58dfba8ea98b84aebdab0076eec0e5d9533f7c4
Time: 2012-09-29
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/classification/majority.py
Class Name: MajorityLearner
Method Name: __call__
Project Name: EducationalTestingService/skll
Commit Name: 6deff016d07906e01ec8c97fa991338034a6bd67
Time: 2013-09-09
Author: dblanchard@ets.org
File Name: skll/metrics.py
Class Name:
Method Name: kappa