本文整理汇总了Python中DataManager.DataManager.mesh_point_mapping方法的典型用法代码示例。如果您正苦于以下问题:Python DataManager.mesh_point_mapping方法的具体用法?Python DataManager.mesh_point_mapping怎么用?Python DataManager.mesh_point_mapping使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataManager.DataManager
的用法示例。
在下文中一共展示了DataManager.mesh_point_mapping方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: MainWindow
# 需要导入模块: from DataManager import DataManager [as 别名]
# 或者: from DataManager.DataManager import mesh_point_mapping [as 别名]
#.........这里部分代码省略.........
self.ui_main.pushButton_save.setEnabled(False)
if index == 0 :
self.ui_main.pushButton_back.setEnabled(False)
if self.timer_main.isActive() == False:
self.timer_main.start(100)
@Slot()
def finish(self):
step = self.data.step
index = self.data.number_points[step]
if step == 0 :
#self.ui_main.progressBar.setVisible(True)
#self.timer_progress.start()
self.interface_after_finish_obtain()
self.data.S3Ralgo_l1020()
############这里不能简单乘5就算了,要计算一下
self.ui_main.MayaviQwidget.visualization.sub_1020 = (self.data.sub_1020)
self.ui_main.MayaviQwidget.visualization.sub_GheadR = (self.data.sub_GheadR[::3])
self.ui_main.MayaviQwidget.visualization.show_ghead_and_1020()
#self.timer_progress.stop()
#self.ui_main.progressBar.hide()
self.interface_before_load()
elif step == 1:
self.data.navigation_result[index,:] = self.data.navigation_process
self.data.navigation_result_mesh[index,:] = self.data.mesh_point_mapping(self.data.sub_landmark,
self.data.navigation_result[index,:])
self.data.number_points[1] += 1
self.ui_main.MayaviQwidget.visualization.target_turn += 1
index = self.data.number_points[1]
if index < 4:
self.ui_main.MayaviQwidget.visualization.show_target()
elif index == 4 :
#把板的结果显示出来
self.timer_main.stop()
self.ui_main.MayaviQwidget.visualization.navigation_result_mesh = self.data.navigation_result_mesh
self.ui_main.MayaviQwidget.visualization.show_navigation_result()
self.interface_after_navigation()
self.ui_main.pushButton_back.setEnabled(True)
@Slot()
def save_data(self):
self.interface_before_save()
path_name = QFileDialog.getExistingDirectory()
# check reference
subjectID = self.data.subjectName
subject_1020 = self.data.sub_1020
subject_plate = self.data.navigation_result
if path_name ==u"":
return
try:
sio.savemat(path_name+u"\\"+ "rewear"+ subjectID,{'l1020':subject_1020,