how can i read or open a .img file using Matlab?
18 次查看(过去 30 天)
显示 更早的评论
i have an fMRI images with .img and .hdr format but i can't open or see this image. could you please help me?
thanks
0 个评论
回答(2 个)
Matt Kindig
2013-4-9
I've never used it, but a quick search of the Help gave:
doc hdrread
3 个评论
Image Analyst
2013-4-9
Matt, that doesn't say anything about reading files with extensions like .img, but it does for .hdr files.
Mohamed, with your hdr image, did you try the demo:
hdr = hdrread('office.hdr');
rgb = tonemap(hdr);
imshow(rgb);
it certainly does display an image from an hdr file.
Walter Roberson
2013-4-9
8 个评论
Karin Lundengård
2016-5-30
编辑:Walter Roberson
2016-5-30
Hi,
I'd also really want to get help with this problem.
My images were produced by SPM, and the error message I get is this:
>> betaVal = analyze75read('beta_0001.img');
>> imshow(betaVal)
Error using images.internal.imageDisplayValidateParams>validateCData (line 115)
Multi-plane image inputs must be RGB images of size MxNx3.
Error in images.internal.imageDisplayValidateParams (line 27)
common_args.CData = validateCData(common_args.CData,image_type);
Error in images.internal.imageDisplayParseInputs (line 78)
common_args = images.internal.imageDisplayValidateParams(common_args);
Error in imshow (line 223)
[common_args,specific_args] = ...
Not too sure about size and class though, where do I find that information?
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!