Reading 3D Xray CT image in Matlab and performing PCA

조회 수: 4 (최근 30일)
Ashbub
Ashbub 2017년 12월 24일
댓글: Ashbub 2018년 1월 5일
Hi, I have a Xray CT volume of few irregular shape. I want to read the file in Matlab and want to plot principal axis of each object using PCA. I've never worked in with 3D in matlab. Can anyone please suggest a procedure. Thanks.

채택된 답변

Image Analyst
Image Analyst 2017년 12월 24일
Segment your object. Then use find() to find the row, columns, and slice of the voxels. Then put them into columns and call pca(). Attached is a demo where I used PCA to find PCs of the 3-D color gamut. It will be easy for you to adapt it.
  댓글 수: 13
Image Analyst
Image Analyst 2018년 1월 3일
regionprops works on arrays, and arrays are composed of elements with integer indexes. The array has no concept of spatially calibrated global coordinates, like whether the voxel spacing is 0.45 mm or whatever, all it knows is rows and columns, etc. If you have a spatial calibration to map indexes into real world coordinates, then you keep track of that separately. regionprops doesn't care (it ignores any spatial calibration you're thinking of) and works in voxels or pixels.
Ashbub
Ashbub 2018년 1월 5일
Excellent! Many thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Ashbub
Ashbub 2017년 12월 26일
Let me clarify my problem.
From xray CT, I have exported image of for example few 3D irregular shape particles as matfile (3200NnofilterXZ, attached). I have done PCA analysis of these particles in 2D to get the direction of the principal component of particles for each slice (2D). Screenshot of first few lines of my code is attached. But this will not be serving my purpose. I will need principal component of each particle in 3D and not 2D. Now, as I don't know how to deal with 3D image to get the pricipal component. I badly need to solve this urgently.
Please suggest.
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 12월 26일
Mathworks Consulting might possibly be open.
Most of the regular volunteers are on Christmas holidays and not willing to take on any "urgent" task. (To be more thorough: very few of the volunteers are willing to volunteer on "urgent" projects that take more than about 5 minutes to think about and write up, at the best of times, and even less so during this major holiday season.)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by