资源简介
VTK-6.3.0.tar.gzVTK-6.3.0.tar.gz
代码片段和文件信息
“““
Common utilities for all of the vtkPiston python tests.
“““
import sys
import vtk
def parseArgs():
argv = sys.argv
result = {};
stripped_args = []
for i in range(0 len(argv)):
if argv[i] == ‘--save_data‘:
result[“SaveData“] = True
elif argv[i] == ‘--gpu_render‘:
result[“GPURender“] = True
elif argv[i] == ‘-I‘:
result[“Interactive“] = True
stripped_args.append(argv[i])
elif argv[i] == ‘--normalize‘:
result[“Normalize“] = True
else:
stripped_args.append(argv[i])
sys.argv = stripped_args
return result
def printDS(label id):
print label
print id.__this__
print id.GetClassName()
print id.GetBounds()
print id.GetNumberOfPoints()
print id.GetNumberOfCells()
numarrays = id.GetPointData().GetNumberOfArrays()
print “Number of Point arrays“ numarrays
for x in range(numarrays):
na = id.GetPointData().GetArray(x)
print na.GetName()
print na.GetDataType()
print na.GetNumberOfComponents()
print na.GetNumberOfTuples()
def printTDO(label id):
print label
print id.__this__
print id.GetClassName()
print id.GetReferredType()
print id.GetReferredData()
def writeFile(ifilter filename):
dsw = vtk.vtkDataSetWriter()
dsw.SetInputConnection(ifilter.GetOutputPort())
dsw.SetFileName(filename)
dsw.Write()
相关资源
- 基于Arcsoft2.0 linux版+opencv
- hog+svm性别识别源码
- Qt5.5.1读取大恒相机
- Opencv常用前景提取算法
- 基于OpenCV的车牌识别系统
- 贪心算法,opencv,主动轮廓模型,s
- Computer Vision with OpenCV 3 and Qt5 pdf + co
- opencv SVM训练检测车牌
- OpenCV_1.0.exe
- 车牌识别-opencv
- AdaBoost人脸检测程序
- 挥拳动作OpenCV识别
- SIFT算法实现及代码详解239444
- 基于opencv与opengl实现增强现实
- 利用opencv实现疲劳检测
- QT+Opencv2+VS2012 使用多线程显示网络摄
- opencv3.4.1 编译库,可在Qt直接使用
- opencv3.4+contrib vs2017 debug x64 编译好的库
- VS+OPENCV+ZBAR一维,二维码识别[包含中
- 基于OpenCV的车牌识别
- OpenCV_world330.lib
- win32平台的opencv3.4.2
- OpenCV2.1安装包
- 深入理解OpenCV:实用计算机视觉项目
- 学习OpenCV(中文版)pdf文档+源码
- 学习opencv 中文版及源码
- opencv-3.3.1 for vs2013
- OpenCV3.2编译文件
- QtOpencvImageGUI
- OpenCV实现多目三维重建
评论
共有 条评论