Please tell me the best way to load .Raw ct image into MATLAB?
15 次查看(过去 30 天)
显示 更早的评论
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
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.
采纳的回答
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 个评论
Cris LaPierre
2023-3-13
The only function in MATLAB I'm aware of for this is imnlmfilt., but is for a single image, not a 3D volume.
You might find solutions others have shared in the File Exchange.
- https://www.mathworks.com/matlabcentral/fileexchange/27395-fast-non-local-means-1d-2d-color-and-3d
- https://www.mathworks.com/matlabcentral/fileexchange/93720-fast-3d-non-local-means-filtering-using-convolutions-cpu-gpu
- https://www.mathworks.com/matlabcentral/fileexchange/43901-fast-and-robust-nonlocal-means-denoising
更多回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!