e4ca6cd5b657a4a092f1f962356ec119e0992a7c,imgaug/augmentables/lines.py,LineString,extract_from_image,#LineString#Any#Any#Any#Any#Any#Any#,999
Before Change
image.shape[0:2], alpha=1.0, size=size, antialiased=antialiased)
image = image.astype(np.float32) * heatmap
bb = self.to_bounding_box()
return bb.extract_from_image(image, pad=pad, pad_max=pad_max,
prevent_zero_size=prevent_zero_size)
def concat(self, other):
Concat this line string with another one.
After Change
heatmap = self.draw_line_heatmap_array(
image.shape[0:2], alpha=1.0, size=size, antialiased=antialiased)
heatmap_thresh = heatmap > 0.1
heatmap_nz = heatmap_thresh.nonzero()
y1 = np.min(heatmap_nz[0])
y2 = np.max(heatmap_nz[0])
x1 = np.min(heatmap_nz[1])
x2 = np.max(heatmap_nz[1])
image = image.astype(np.float32) * heatmap
bb = BoundingBox(x1=x1, y1=y1, x2=x2, y2=y2)
extract = bb.extract_from_image(image, pad=pad, pad_max=pad_max,
prevent_zero_size=prevent_zero_size)
return np.clip(np.round(extract), 0, 255).astype(np.uint8)
def concat(self, other):
Concat this line string with another one.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: aleju/imgaug
Commit Name: e4ca6cd5b657a4a092f1f962356ec119e0992a7c
Time: 2019-04-05
Author: kontakt@ajung.name
File Name: imgaug/augmentables/lines.py
Class Name: LineString
Method Name: extract_from_image
Project Name: HazyResearch/fonduer
Commit Name: 0110937ab04f4298f98963bed1de08962d776b24
Time: 2020-07-01
Author: wajdikhattel@think-it.io
File Name: src/fonduer/utils/data_model_utils/structural.py
Class Name:
Method Name: lowest_common_ancestor_depth
Project Name: IBM/AIF360
Commit Name: e740698e304efd4509187a0a31742976e438cfed
Time: 2020-02-19
Author: hoffman.sc@gmail.com
File Name: aif360/sklearn/postprocessing/calibrated_equalized_odds.py
Class Name: CalibratedEqualizedOdds
Method Name: predict_proba
Project Name: dit/dit
Commit Name: a1890b56835ef626b1a32edcaf28c1e2b10baa48
Time: 2015-03-19
Author: chebee7i@gmail.com
File Name: dit/algorithms/maxentropyfw.py
Class Name:
Method Name: isolate_zeros