
VTK
文章平均质量分 63
努力减肥的小胖子5
这个作者很懒,什么都没留下…
展开
-
vtkIterativeClosestPointTransform使用整理
vtk中icp使用整理原创 2024-10-31 11:06:14 · 718 阅读 · 0 评论 -
qml+vtk显示cone 或 dicom
qml+vtk原创 2024-03-19 14:46:22 · 594 阅读 · 4 评论 -
vtkImageData融合显示
图像融合显示原创 2024-02-28 18:17:26 · 419 阅读 · 0 评论 -
vtk中二次曲面的显示
一些二次曲面的显示原创 2023-11-30 11:33:04 · 263 阅读 · 0 评论 -
坐标系相关整理
1.相关坐标系的定义2.坐标系转换原创 2022-12-21 15:25:17 · 1076 阅读 · 0 评论 -
open3d材质设置参数分析
open3d整理原创 2022-04-20 17:40:52 · 1404 阅读 · 0 评论 -
3d slicer中拉直体的生成
1.在slicer中添加sandbox插件插件源码:https://github.com/PerkLab/SlicerSandbox2.加载一组数据如图3.点击Converters->Curved Planar Reformat,再如图所设置4.在轴位图绘制曲线5.点击apply效果如图6.将拉直体显示出来...原创 2022-04-20 15:07:25 · 954 阅读 · 1 评论 -
vtk中用到的一些Filter(2)
filter整理原创 2022-03-14 14:20:20 · 2397 阅读 · 0 评论 -
vtk中用到的一些Filter(1)
filter整理原创 2022-03-14 11:36:48 · 2237 阅读 · 0 评论 -
vtkProperty中部分参数说明
BaseIORSet/Get the Index Of Refraction of the base layer. It controls the amount of light reflected at normal incidence (the reflectance F0),depending on the IOR of the upper layer (eg. coat layer, or environment).For example, with a base IOR of 1.5 and.原创 2021-12-21 12:32:35 · 797 阅读 · 2 评论 -
绘制四面体(切割后封闭)
参考url:https://lorensen.github.io/VTKExamples/site/Cxx/GeometricObjects/Cell3DDemonstration效果图:实现:vtkSmartPointer<vtkUnstructuredGrid> MakeTetrahedron(){ // Make a tetrahedron. int n...原创 2019-12-10 15:20:00 · 679 阅读 · 0 评论 -
通过指定cellid获取周围cellid信息,改变指定cellid的颜色
参考url:https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CellEdgeNeighbors/1.根据指定的cellid获取周围cellid信息void getNeighborCellID(int cellid,vtkPolyData* polydata,QList<int>& neighbors){ ...原创 2019-10-31 15:51:18 · 1453 阅读 · 0 评论 -
一个使用vtkImplicitWindowFunction的示例
效果图:示例: vtkSmartPointer<vtkQuadric> quadric = vtkSmartPointer<vtkQuadric>::New(); quadric->SetCoefficients( 0.5,1,.2,0,.1,0,0,.2,0,0); vtkSmartPointer<vtkSampl...原创 2019-10-21 14:58:26 · 853 阅读 · 1 评论 -
使用vtk绘制体
vtkSmartPointer<vtkDICOMImageReader> reader = vtkSmartPointer<vtkDICOMImageReader>::New(); reader->SetDirectoryName("E:/workspace/DICOM/133ceng"); reader->Update()...原创 2019-10-14 10:09:10 · 404 阅读 · 0 评论 -
VTK使用NVIDIA RTX添加gpu加速射线跟踪
原文url:https://blog.kitware.com/paraview-and-vtk-add-gpu-accelerated-ray-tracing-with-nvidia-rtx/ParaView and VTK add GPU-accelerated ray tracing with NVIDIA RTXOne of the many cool new features to l...原创 2019-10-12 14:41:05 · 2701 阅读 · 0 评论 -
使用VTK引入基于物理的渲染
原文地址:https://blog.kitware.com/vtk-pbr/Introducing Physically Based Rendering with VTKIntroduction 介绍Until VTK 8.2, surface shading through the vtkPolyDataMapper is computed using the Phong reflec...原创 2019-10-12 14:26:29 · 2280 阅读 · 0 评论 -
VTK三维中判断线段与多边形面的交点
Compute the intersection of a line segment with a polygon. demo地址:https://lorensen.github.io/VTKExamples/site/Cxx/GeometricObjects/PolygonIntersection/ 关键代码: // Create a square in the XY plane...翻译 2018-03-09 10:08:32 · 1391 阅读 · 0 评论 -
vtkRenderWindow中添加按钮
图中黑白的的地方为按钮demo:https://lorensen.github.io/VTKExamples/site/Cxx/Widgets/TexturedButtonWidget/原创 2018-06-07 16:29:57 · 2206 阅读 · 0 评论 -
vtk中为平面贴纹理
关键代码: vtkSmartPointer<vtkTexture> atext = vtkSmartPointer<vtkTexture>::New(); atext->SetInputConnection(textureFile->GetOutputPort()); atext->InterpolateOn();// Create...原创 2018-06-07 18:13:23 · 605 阅读 · 0 评论 -
vtk中对PolyData进行平滑处理,通过顶点索引构造polydata
方法: if (flat) { actor-&gt;GetProperty()-&gt;SetInterpolationToFlat();//上 } else { actor-&gt;GetProperty()-&gt;SetInterpolationToGouraud();//下 }原创 2018-06-01 16:10:20 · 3150 阅读 · 0 评论 -
显示顶点的法向量
关键代码: //改变polydata的颜色 vtkSmartPointer<vtkElevationFilter> colorIt = vtkSmartPointer<vtkElevationFilter>::New(); colorIt->SetInputConnection(sphere->GetOutputPo...原创 2018-06-01 16:16:03 · 763 阅读 · 2 评论 -
关于环境光、漫反射、镜面反射
光源: 1):环境光:环境光是一种低强度的光,由光线经过周围环境表面多次反射后形成的,利用环境光可以描述一块区域的亮度,通常在场 景中,环境光的颜色是一个常量.2):太阳光:即定向光源,特点是从无穷远出发射光线,光线是平行的,光线强度不会随着距离衰减.3):点光源:在有限空间内某个点上发出的光线,光线强度会随着距离衰减.衰减系数一般是距离的二次多项式倒数.4):聚光灯:特点是...原创 2018-06-01 16:21:22 · 16396 阅读 · 1 评论 -
使用mingw编译VTK 和 在qt中使用vtk,mingw32-make输入到文件
win7下使用mingw编译VTK, qt下载地址1.安装Qt和CMake工具2.添加mingw所在的exe文件路径(D:\Qt\Qt5.6.0\Tools\mingw492_32\bin) 到系统环境变量PATH3.解压VTK-7.1.1.zip到F:\VTK-7.1\VTK-src下4.新建F:\VTK-7.1\VTK-bin//5、6步骤不加也可以 5.修改VTK-src...原创 2018-07-09 14:04:10 · 2196 阅读 · 3 评论 -
vtk中将数组赋值给imagedata
vtkDataArray* temparr = input-&gt;GetPointData()-&gt;GetScalars(); int datasize = 512*512*50; double* testshortarr = new double[datasize]; for(int i=0; i&lt;datasize; i++){ tes...原创 2018-06-27 20:06:16 · 2315 阅读 · 0 评论 -
关于面绘制的一些说明
面绘制有两种,1、基于断层轮廓线先在不同切片上提取出感兴趣区域的轮廓线,然后,根据相邻切片的轮廓线构造出三角面片集。这种方法弊端很明显:轮廓线之间的插值,轮廓线之间的对齐,同一个切片上的不同轮廓线。2、基于体素(移动立方体 Marching Cube)经典算法,其内涵在于“等值面提取”。将已经读入内存中的、一系列按顺序罗列起来的二维切片,看作一个三维数据场。从三维数据场中符合被设定阈...原创 2018-08-14 16:03:40 · 4475 阅读 · 0 评论 -
vtk中查看某种类型的最大和最小值
type max = vtkTypeTraits<type>::Max();type min = vtkTypeTraits<type>::Min();原创 2018-08-03 09:55:52 · 666 阅读 · 0 评论 -
vtk中绘制线和绘制点集
绘制线: void InitLineActor(vtkPoints* points,vtkActor* lactor,double color[3]){ vtkSmartPointer&lt;vtkPolyLine&gt; polyLine = vtkSmartPointer&lt;vtkPolyLine&gt;::New(); p...原创 2018-08-14 18:06:23 · 4305 阅读 · 2 评论 -
将vtkImageData保存为体文件,保存window
vtkSmartPointer<vtkMetaImageWriter> writer = vtkSmartPointer<vtkMetaImageWriter>::New(); writer->SetInputData(image); std::string filePath = "./test.mhd"; std::string ...原创 2019-03-08 14:51:13 · 1161 阅读 · 0 评论 -
VTK8.2.0 更新说明
原文url:https://blog.kitware.com/vtk-8-2-0/此版本是一个次要版本更新,旨在使VTK 9.0的新构建系统出现重大变化之前,可以为启用VTK的应用程序提供主/开发分支中的大量改进。该版本继续我们的代码库现代化的道路,通常更好地利用现代编译器功能并删除不太值得维护的遗留功能。8.2的变化包括以下几个方面。总体变化我们已经删除了对TCL和Qt4的支持,我们已...翻译 2019-03-27 15:50:40 · 3043 阅读 · 0 评论 -
vtk中四元数的使用
1.使用 //构造旋转四元数 vtkQuaterniond rotation; rotation.SetRotationAngleAndAxis(vtkMath::RadiansFromDegrees(90.0),0.0, 1.0, 0.0); //构造旋转点四元数 vtkQuaterniond p; p.Set(0.0,1.0,0.0,0.0);...原创 2019-09-23 17:22:18 · 1119 阅读 · 0 评论 -
vkt中使用OBJImporter导入模型并进行贴图
demo:https://lorensen.github.io/VTKExamples/site/Cxx/IO/OBJImporter/原创 2018-06-07 16:13:48 · 2328 阅读 · 4 评论 -
vtk8.1.0更新说明
url:https://blog.kitware.com/vtk-8-1-0VTK开发团队很高兴推出VTK 8.1.0。此版本通过VTK-m继续VTK向多线程和GPU启用的细粒度并行处理过滤器发展。在VTK 8.0.0中引入的VTK-m现在与VTK捆绑在一起(技术上我们使用git子模块),我们对性能进行了改进,并添加了新的算法(vtkmExtractVOI,vtkmPolyDataNorm...翻译 2018-06-12 14:16:05 · 3291 阅读 · 0 评论 -
vtk中快速傅里叶变换
51CTO详解:http://book.51cto.com/art/201504/474132.htm快速傅里叶变换demo地址: https://lorensen.github.io/VTKExamples/site/Cxx/Images/ImageFFT/ 逆变换demo地址: https://lorensen.github.io/VTKExamples/site/Cxx/Image...翻译 2018-03-01 16:40:43 · 235 阅读 · 0 评论 -
均值滤波+高斯平滑+中值滤波+各向异性滤波
51CTO详解: 均值滤波:http://book.51cto.com/art/201504/474128.htm 高斯平滑:http://book.51cto.com/art/201504/474129.htm 中值滤波:http://book.51cto.com/art/201504/474130.htm 各向异性滤波:http://book.51cto.com/art/201504/...翻译 2018-03-01 16:08:08 · 1111 阅读 · 0 评论 -
vtk中拉普拉斯算子
51CTO详解:http://book.51cto.com/art/201504/474127.htmdemo地址:https://lorensen.github.io/VTKExamples/site/Cxx/Images/ImageLaplacian/关键代码: vtkSmartPointer<vtkImageLaplacian> laplacianFilter ...翻译 2018-03-01 15:31:03 · 390 阅读 · 1 评论 -
vtk中Canny 算子--边缘检测
51CTO详解:http://book.51cto.com/art/201504/474125.htmdemo地址: https://lorensen.github.io/VTKExamples/site/Cxx/Images/CannyEdgeDetector/效果图:翻译 2018-03-01 15:22:48 · 598 阅读 · 0 评论 -
vtk梯度算子--边缘检测
51CTO详解:http://book.51cto.com/art/201504/474123.htm1.vtkImageGradientMagnitude提取边缘 https://lorensen.github.io/VTKExamples/site/Cxx/Images/ImageGradientMagnitude/ 关键代码: vtkSmartPointer<vtkI...翻译 2018-03-01 14:32:20 · 464 阅读 · 0 评论 -
vtk中图像二值化
1.51CTO详解:http://book.51cto.com/art/201504/474122.htm2.demo地址: https://lorensen.github.io/VTKExamples/site/Cxx/Images/ImageThreshold/关键代码: vtkSmartPointer<vtkImageThreshold> imageThres...翻译 2018-03-01 11:19:28 · 633 阅读 · 0 评论 -
vtk中进行图像重采样
1.51CTO讲解: http://book.51cto.com/art/201504/474119.htm 2.升采样demo: https://lorensen.github.io/VTKExamples/site/Cxx/Images/ImageMagnify/ 关键代码: // Increase the dimensions of the image vtkSmart...翻译 2018-03-01 10:48:49 · 1106 阅读 · 0 评论 -
VTK中获取随机数
1.This is the preferred way to generate random numbers. demo地址:https://lorensen.github.io/VTKExamples/site/Cxx/SimpleOperations/RandomSequence/ 关键代码: //Create a random sequence generator. vtkSm...翻译 2018-03-09 09:54:51 · 343 阅读 · 0 评论