Dear All,
I have a 3D CT image with a dimension 512x512x301 int16 and I need to convert it to 2D (X,Z) at Y =256
How can I do this?
Did reshape function can do this?
If yes, how can I do this?
Thanks

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 4월 5일
편집: Ameer Hamza 2020년 4월 5일

0 개 추천

If you need a slice of 3D matrix, than try this
out = CTimages(:,256,:)
It will give you a 2D slice at 256 index of 2nd dimension (columns).

댓글 수: 6

You can also use squeeze() to reduce the slice from 512x1x301 to 512x301:
out = squeeze(CTimages(:,256,:));
Mohamed Moawed
Mohamed Moawed 2020년 4월 5일
Thanks alot
if the image are colored and I want to keep the colors
How can I do this
Thanks
Ameer Hamza
Ameer Hamza 2020년 4월 5일
How the image channel are stored in 512x512x301 matrix?
Mohamed Moawed
Mohamed Moawed 2020년 4월 5일
편집: Mohamed Moawed 2020년 4월 5일
this is the output image
which command can I use to enhace the image
and make the details appears ?
in the same gray scale not colored
thanks
regards
Ameer Hamza
Ameer Hamza 2020년 4월 5일
What command did you use to display the color image. If possible, please share a sample dataset, so that i can easily suggest a solution.
Mohamed Moawed
Mohamed Moawed 2020년 4월 6일
this is a sample of the dataset

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

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2020년 4월 5일

댓글:

2020년 4월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by