fc80bc8d663f3999394cdcc608a237405cc77442,mahotas/demos/nuclear_distance_watershed.py,,,#,6
Before Change
import numpy as np
from matplotlib import pyplot as plt
try:
nuclear_path = path.join(
path.dirname(path.abspath(__file__)),
"data",
"nuclear.png")
except NameError:
nuclear_path = path.join("data", "nuclear.png")
nuclear = mahotas.imread(nuclear_path)
nuclear = nuclear[:,:,0]
nuclear = mahotas.gaussian_filter(nuclear, 1.)
threshed = (nuclear > nuclear.mean())
After Change
import numpy as np
from matplotlib import pyplot as plt
nuclear = mh.demos.load("nuclear")
nuclear = nuclear[:,:,0]
nuclear = mh.gaussian_filter(nuclear, 1.)
threshed = (nuclear > nuclear.mean())
distances = mh.stretch(mh.distance(threshed))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: luispedro/mahotas
Commit Name: fc80bc8d663f3999394cdcc608a237405cc77442
Time: 2019-07-19
Author: luis@luispedro.org
File Name: mahotas/demos/nuclear_distance_watershed.py
Class Name:
Method Name:
Project Name: loli/medpy
Commit Name: 973876881f7885f4bfebe72f4cd1ccc46046b0cc
Time: 2013-04-19
Author: maier@humbug.imi.uni-luebeck.de
File Name: bin/medpy_extract_sub_volume_auto.py
Class Name:
Method Name: main
Project Name: PIQuIL/QuCumber
Commit Name: 14cd2551a18a2c098a7342d47d5f0b81f8eb8eb5
Time: 2018-08-19
Author: emerali@users.noreply.github.com
File Name: qucumber/nn_states/wavefunction.py
Class Name: Wavefunction
Method Name: load
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: fbe35962f59485f6757060330cd45529c919eb5b
Time: 2017-11-23
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/target_simulators/INI_temporal_pattern_target_sim.py
Class Name: SNN
Method Name: load