china-jige / marchingcube Goto Github PK
View Code? Open in Web Editor NEW迷之Marching Cube算法,一开始以为只能用于基于CT的网格重构,结果发现拓展下还能作为很多数据形式的网格重构算法=。=
迷之Marching Cube算法,一开始以为只能用于基于CT的网格重构,结果发现拓展下还能作为很多数据形式的网格重构算法=。=
你好,我不太了解CT数据的.dat格式,我想自己导入三维的grid data来重建。可以麻烦描述一下.dat文件的格式吗?
请问您代码中做的网格简化在哪里啊?
为什么三角面片要取边的中点呀,有的时候三角面片是包含顶点的。mMeshOutput.push_back(pointOnEdge[triCase.index[i]] - VECTOR3(BigCubeWidth0.5f, BigCubeHeight0.5f, BigCubeDepth*0.5f));
mcParam.cubeCountX = cx; //150 mcParam.cubeCountZ = cz; //150 mcParam.cubeWidth = w; //0.5f mcParam.cubeHeight = h; mcParam.cubeDepth = d;
这段代码是三维重构的参数,但是后面的计算过程中,好像仅仅cx,和cz有用,表示的含义应该是分割成150份,对吧? 计算的过程中
`float BigCubeWidth = mcInfo.cubeCountX * mcInfo.cubeWidth;
VECTOR3 basePosition (cubeIndexX* mcInfo.cubeWidth
,cubeIndexY * mcInfo.cubeHeight,
cubeIndexZ * mcInfo.cubeDepth);
VECTOR3 v[8] =
{
basePosition + VECTOR3(0,0,0) ,
};
int pixelCoordX = int((v[i].x / BigCubeWidth) * currentSlice.pixelWidth);`
参数 mcParam.cubeWidth 好像可以约?
我将dcm文件读成byte数组, 然后将数组中的非零byte都转换为0xffff, 但是最终的效果是错的. 请问请示如何转化的?多谢
老哥,我是搞3D重建的tsdf,现在一直是用ubuntu的C++程序生成体素.bin,文件扔到matlab里用isosurface函数,重建。现在想把matlab这一步整合到c++里,看到了marching cube这个东西,请问从体素信息重建写个ubuntu的C++的marching cube函数难不难?老哥有知道有没有类似的现成代码,或者有啥论文教程推荐?
感激不尽!
想换个数据集试试
看了半天没看懂如何自己输入坐标,需要转换成体素吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.