Please tell me the best way to load .Raw ct image into MATLAB?

14 ビュー (過去 30 日間)
Jahanzeb Tariq
Jahanzeb Tariq 2023 年 3 月 8 日
コメント済み: Cris LaPierre 2023 年 3 月 13 日
What is the recommended approach for loading a CT scan image of a rock with dimensions of 1000x1000x1000 Unit8 in .raw format into MATLAB for image processing, particularly for those who are new to this field? Could someone please provide a comprehensive guide, starting from the basics, that can be easily followed by beginners? Your expert guidance on this matter would be greatly appreciated. Thank you.
  2 件のコメント
Jan
Jan 2023 年 3 月 8 日
There is no unique definition of a .raw format. Remember that ".raw" is just a file extension, which can be set freely by any software. So find out at first, which format these files really have.
Jahanzeb Tariq
Jahanzeb Tariq 2023 年 3 月 8 日
編集済み: Jahanzeb Tariq 2023 年 3 月 8 日
Thank you for your reply. I highly appreciate that. I kind of converted it into tiff format using image J and loaded using imread, but please tell me What could be the possible reasons for getting an error message indicating that the order of an image loaded into MATLAB is 1000x1000 instead of the expected 1000x1000x1000 dimensions, despite the image having three dimensions? Are there any recommended approaches or functions to use when loading 3D images into MATLAB to avoid such errors?

サインインしてコメントする。

採用された回答

Cris LaPierre
Cris LaPierre 2023 年 3 月 8 日
移動済み: Cris LaPierre 2023 年 3 月 8 日
Please share the code you are using and the full error message (all the red text).
If you have a 3D tiff image, I think you should be using tiffreadVolume instead of imread. It sounds like imread is only loading a single image and not the volume.
  4 件のコメント
Jahanzeb Tariq
Jahanzeb Tariq 2023 年 3 月 11 日
I thank you all for your reply. I would like to also ask is there a function for "non local means" filter like gaussian filer? if so please do tell me the methodology to implement it on a 3d tiff file. thank you

サインインしてコメントする。

その他の回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023 年 3 月 8 日
Use image(), imshow(), imagesc():
% To view Tiff image:
A = tiffreadVolume('TIFF_Image.tiff');
% image()
image(A(:,:,1)) % View Layer 1
% imshow()
imshow(A(:,:,2)) % View Layer 2
% imagesc()
imagesc(A(:,:,3)) % View Layer 3

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by