資源簡(jiǎn)介
CT圖像重建系統(tǒng)、數(shù)字圖像水印系統(tǒng)、遙感圖像配準(zhǔn)系統(tǒng)、圖像檢索系統(tǒng)、細(xì)胞檢測(cè)與計(jì)數(shù)系統(tǒng)、指紋提取與識(shí)別系統(tǒng)、人臉檢測(cè)與識(shí)別系統(tǒng)、運(yùn)動(dòng)車輛檢測(cè)跟蹤系統(tǒng)、車型識(shí)別系統(tǒng)、車牌識(shí)別系統(tǒng)
代碼片段和文件信息
#include?“vtkRenderer.h“
#include?“vtkRenderWindow.h“
#include?“vtkRenderWindowInteractor.h“
#include?“vtkVolume16Reader.h“
#include?“vtkPolyDataMapper.h“
#include?“vtkActor.h“
#include?“vtkProperty.h“
#include?“vtkOutlineFilter.h“
#include?“vtkCamera.h“
#include?“vtkPolyDataMapper.h“
#include?“vtkStripper.h“
#include?“vtkPolyDataNormals.h“
#include?“vtkMarchingCubes.h“
//-------------------------------------------------------
//?主函數(shù)
//-------------------------------------------------------
int?main?(int?argc?char?**argv)
{
????//?參數(shù)個(gè)數(shù)檢查
????if(argc?2)
????{
????????cout?<“用法:?“?<????????return?1;
????}
????//?---------讀取數(shù)據(jù)---------
????//?創(chuàng)建2D數(shù)據(jù)讀者對(duì)象
????vtkVolume16Reader?*v16?=?vtkVolume16Reader::New();
????//?設(shè)置數(shù)據(jù)的各維大小
????v16->SetDataDimensions(6464);
????//?設(shè)置數(shù)據(jù)的字節(jié)排列方式
????v16->SetDataByteOrderToLittleEndian();
????//?設(shè)置文件前輟,它將結(jié)合下一參數(shù),以“FilePrefix.%d”方式讀取隨后文件
????v16->SetFilePrefix?(argv[1]);
????//?設(shè)置文件讀取范圍
????v16->SetImageRange(1?93);
????//?設(shè)置CT數(shù)據(jù)的切片間距和間隔
????v16->SetDataSpacing?(3.2?3.2?1.5);??
????
????//?---------重建皮膚---------
????//?創(chuàng)建一個(gè)Marching?Cubes算法的對(duì)象
????vtkMarchingCubes?*skinExtractor?=?vtkMarchingCubes::New();
????//?獲得所讀取的CT數(shù)據(jù)
????skinExtractor->SetInputConnection(v16->GetOutputPort());
????//?提取出CT值為500的皮膚數(shù)據(jù)
????skinExtractor->SetValue(0?500);
????//?重新計(jì)算法向量
????vtkPolyDataNormals?*skinNormals?=?vtkPolyDataNormals::New();
????skinNormals->SetInputConnection(skinExtractor->GetOutputPort());
????skinNormals->SetFeatureAngle(60.0);
????//?創(chuàng)建三角帶對(duì)象
????vtkStripper?*skinStripper?=?vtkStripper::New();
????//?將生成的三角片連接成三角帶
????skinStripper->SetInputConnection(skinNormals->GetOutputPort());
????//?創(chuàng)建一個(gè)數(shù)據(jù)映射對(duì)象
????vtkPolyDataMapper?*skinMapper?=?vtkPolyDataMapper::New();
????//?將三角帶映射為幾何數(shù)據(jù)
????skinMapper->SetInputConnection(skinStripper->GetOutputPort());?
????skinMapper->ScalarVisibilityOff();
????//?創(chuàng)建一個(gè)代表皮膚的演員對(duì)象
????vtkActor?*skin?=?vtkActor::New();
????//?獲得皮膚幾何數(shù)據(jù)的屬性
????skin->SetMapper(skinMapper);
????//?設(shè)置皮膚顏色的屬性
????skin->GetProperty()->SetDiffuseColor(1?.49?.25);
????//?設(shè)置反射率
????skin->GetProperty()->SetSpecular(.3);
????//?設(shè)置反射光強(qiáng)度?
????skin->GetProperty()->SetSpecularPower(20);
????//?設(shè)置不透明度
????skin->GetProperty()->SetOpacity(1.0);
????//?---------重建骨骼---------
????//?創(chuàng)建一個(gè)Marching?Cubes算法的對(duì)象
????vtkMarchingCubes?*boneExtractor?=?vtkMarchingCubes::New();
????//?獲得所讀取的CT數(shù)據(jù)
????boneExtractor->SetInputConnection(v16->GetOutputPort());
????//?提取出CT值為1150的骨骼數(shù)據(jù)
????boneExtractor->SetValue(0?1150);
????//?重新計(jì)算法向量
????vtkPolyDataNormals?*boneNormals?=?vtkPolyDataNormals::New();
????boneNormals->SetInputConnection(boneExtractor->GetOutputPort());
????boneNormals->SetFeatureAngle(60.0);
????//?創(chuàng)建三角帶對(duì)象
????vtkStripper?*boneStripper?=?vtkStripper::New();
????//?將生成的三角片連接成三角帶
????boneStripper->SetInputConnection(boneNormals->GetOutputPort());
????//?創(chuàng)建一個(gè)數(shù)據(jù)映射對(duì)象
????vtkPolyDataMapper?*b
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-12-18?11:01??opencv+c++\
?????目錄???????????0??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\
?????目錄???????????0??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\
?????目錄???????????0??2017-12-12?15:08??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\
?????文件????????8192??2017-12-12?15:08??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.1
?????文件????????8192??2017-12-12?15:08??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.10
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.11
?????文件????????8192??2017-12-12?15:08??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.12
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.13
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.14
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.15
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.16
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.17
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.18
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.19
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.2
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.20
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.21
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.22
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.23
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.24
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.25
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.26
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.27
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.28
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.29
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.3
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.30
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.31
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.32
?????文件????????8192??2017-12-12?15:07??opencv+c++\05_CT圖像重建系統(tǒng)\Data\headsq\quarter.33
............此處省略709個(gè)文件信息
評(píng)論
共有 條評(píng)論