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: 3
Non-data size: 9
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: LCAV/pyroomacoustics
Commit Name: 5214393bb75498ded8fc140914edd79c1799af05
Time: 2017-04-04
Author: fakufaku@gmail.com
File Name: pyroomacoustics/beamforming.py
Class Name: Beamformer
Method Name: steering_vector_2D_from_point
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: LCAV/pyroomacoustics
Commit Name: 7a77233231c67038271c9945760b7a1d711b242d
Time: 2017-04-04
Author: fakufaku@gmail.com
File Name: pyroomacoustics/beamforming.py
Class Name: Beamformer
Method Name: steering_vector_2D_from_point