MATLAB: How to Create x,y,z input of delaunayTr​iangulatio​n(x,y,z); from JPEG,DICOM,images

delaunaytriangulation(xdicomdigital image processingdigonalImage Processing ToolboxmeshSimulink 3D Animationyz

How to Create x,y,z input of delaunayTriangulation(x,y,z); from JPEG,DICOM,images?

Best Answer

Use dicominfo to determine the x and y separation between pixels. Once you have that you can use meshgrid or ndgrid to find the x and y coordinates.
After that, if you have a single slice, use the intensity as the z coordinates.
If you have multiple slices then figuring out the z coordinates can depend on the modality and avaliable headers. I would have to review the various possibilities (I have posted them in the past.)
Related Question