How to construct image from a .dat file?
6 ビュー (過去 30 日間)
古いコメントを表示
I have performed some image analysis with some special software. It saved the final image (result) in a datafile (.dat extension). How can I view the image with Matlab?
I tried to load
A= load('ImageFile.dat');
figure
imshow(A)
It give error:
Error using imfinfo (line 115)
Unable to determine file format.
Error in getImageFromFile (line 17)
img_info = imfinfo(filename);
Error in imageDisplayParseInputs (line 74)
[common_args.CData,common_args.Map] = ...
Error in imshow (line 198)
[common_args,specific_args] = ...
1 件のコメント
回答 (1 件)
Sudharsana Iyengar
2014 年 12 月 18 日
what does your dat file contain.
did you try imagesc option.
import the dat file into matlab and store as a variable. default name would be untitled. then try
imagesc(untitled)
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!