本文整理汇总了Python中Model.Model.Patients[1:]方法的典型用法代码示例。如果您正苦于以下问题:Python Model.Patients[1:]方法的具体用法?Python Model.Patients[1:]怎么用?Python Model.Patients[1:]使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Model.Model
的用法示例。
在下文中一共展示了Model.Patients[1:]方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: min
# 需要导入模块: from Model import Model [as 别名]
# 或者: from Model.Model import Patients[1:] [as 别名]
min_y = min(mean[:,1])
mean[:,0] = [x - min_x for x in mean[:,0]]
mean[:,1] = [y - min_y for y in mean[:,1]]
mean = mean.flatten()
# Show all the teeth landmarks
for i in range(14):
print 'Teeth: ',i
#print m1.Patients[i].Teeth
print 'max', max(m1.Patients[i].Teeth[:,0]),max(m1.Patients[i].Teeth[:,1])
print 'min', min(m1.Patients[i].Teeth[:,0]),min(m1.Patients[i].Teeth[:,1])
print max(m1.Patients[i].Teeth[:,0]) - min(m1.Patients[i].Teeth[:,0])
print max(m1.Patients[i].Teeth[:,1]) - min(m1.Patients[i].Teeth[:,1])
m1.Patients[1:] = [s.align_to_shape(m1.Patients[0], m1.weight_matrix_) for s in m1.Patients[1:]]
img = plt.imread('C:/Users/tangc/Documents/ComVi/_Data/Radiographs/01.tif')
fig = plt.figure()
plt.imshow(img)
for i in m1.Patients:
plot(i.Teeth[:,0],i.Teeth[:,1],'.',markersize=1.5)
plt.show()
sum(m1.weight_matrix_ * m1.Patients[0].Teeth[:,0])
img = plt.imread('C:/Users/tangc/Documents/ComVi/_Data/Radiographs/01.tif')
fig = plt.figure()
plt.imshow(img)
plt.plot(m1.Patients[9].Teeth[:,0],m1.Patients[0].Teeth[:,1],'g*',markersize=1.5)