49f4e83ae4323e032bdd232e466e59b4aeceb458,dataset/batch_image.py,ImagesBatch,_posterize_,#ImagesBatch#Any#Any#,788
Before Change
image = image.copy()
dtype = image.dtype
max_bin = 256 if np.issubdtype(dtype, np.integer) else 1.0001
max_intencity = 255 if np.issubdtype(dtype, np.integer) else 1.
bins = np.linspace(0, max_bin, colors_number+1)
color_indices = np.digitize(image, bins) - 1
After Change
self
return PIL.ImageOps.posterize(image, bits)
def _cutout_(self, image, origin, shape, color):
Fills given areas with color
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: analysiscenter/batchflow
Commit Name: 49f4e83ae4323e032bdd232e466e59b4aeceb458
Time: 2018-03-28
Author: g.ivanov@analysiscenter.ru
File Name: dataset/batch_image.py
Class Name: ImagesBatch
Method Name: _posterize_
Project Name: tensorflow/models
Commit Name: ddee8c74a282fc64929323f45e87b58e47173667
Time: 2018-06-23
Author: shallue@google.com
File Name: research/astronet/astronet/data/generate_input_records.py
Class Name:
Method Name: _process_tce
Project Name: analysiscenter/batchflow
Commit Name: d381fb0787395076ecb8a3bd6984f52a16793fae
Time: 2018-03-27
Author: g.ivanov@analysiscenter.ru
File Name: dataset/batch_image.py
Class Name: ImagesBatch
Method Name: _posterize_
Project Name: analysiscenter/batchflow
Commit Name: 49f4e83ae4323e032bdd232e466e59b4aeceb458
Time: 2018-03-28
Author: g.ivanov@analysiscenter.ru
File Name: dataset/batch_image.py
Class Name: ImagesBatch
Method Name: _posterize_