mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-26 13:37:17 +08:00
add demo all (cont.)
This commit is contained in:
@@ -44,21 +44,54 @@ if __name__ == '__main__':
|
||||
# plt.colorbar()
|
||||
# plt.title(method)
|
||||
|
||||
for n in dir(crank8_percentiles):
|
||||
method = eval('crank8_percentiles.%s'%n)
|
||||
# for n in dir(crank8_percentiles):
|
||||
# method = eval('crank8_percentiles.%s'%n)
|
||||
# t = type(method)
|
||||
# if t == type(crank8.maximum):
|
||||
# print n,t
|
||||
# f = method(a8,selem = selem,p0=.1,p1=.9)
|
||||
#
|
||||
# plt.figure()
|
||||
# plt.subplot(1,2,1)
|
||||
# plt.imshow(a8)
|
||||
# plt.colorbar()
|
||||
# plt.subplot(1,2,2)
|
||||
# plt.imshow(f)
|
||||
# plt.colorbar()
|
||||
# plt.title(method)
|
||||
|
||||
# for n in dir(crank16_percentiles):
|
||||
# method = eval('crank16_percentiles.%s'%n)
|
||||
# t = type(method)
|
||||
# if t == type(crank8.maximum):
|
||||
# print n,t
|
||||
# f = method(a16,selem = selem,bitdepth=12,p0=.1,p1=.9)
|
||||
#
|
||||
# plt.figure()
|
||||
# plt.subplot(1,2,1)
|
||||
# plt.imshow(a16)
|
||||
# plt.colorbar()
|
||||
# plt.subplot(1,2,2)
|
||||
# plt.imshow(f)
|
||||
# plt.colorbar()
|
||||
# plt.title(method)
|
||||
|
||||
selem = disk(50)
|
||||
for n in dir(crank16_bilateral):
|
||||
method = eval('crank16_bilateral.%s'%n)
|
||||
t = type(method)
|
||||
if t == type(crank8.maximum):
|
||||
print n,t
|
||||
f = method(a8,selem = selem,p0=.1,p1=.9)
|
||||
f = method(a16,selem = selem,bitdepth=12,s0=300,s1=300)
|
||||
|
||||
plt.figure()
|
||||
plt.subplot(1,2,1)
|
||||
plt.imshow(a8)
|
||||
plt.imshow(a16)
|
||||
plt.colorbar()
|
||||
plt.subplot(1,2,2)
|
||||
plt.imshow(f)
|
||||
plt.colorbar()
|
||||
plt.title(method)
|
||||
|
||||
#
|
||||
#
|
||||
plt.show()
|
||||
|
||||
Reference in New Issue
Block a user