필터 지우기
필터 지우기

How to construct image from a .dat file?

조회 수: 22 (최근 30일)
aneps
aneps 2014년 12월 16일
답변: Sudharsana Iyengar 2014년 12월 18일
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
Thorsten
Thorsten 2014년 12월 16일
편집: Thorsten 2014년 12월 16일
Could you provide the .dat file so that we can have a look at it? Can your "Special Software" store images in other formats? Does the documentation of "Special Software" says anything about the file format of the .dat file?

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

답변 (1개)

Sudharsana Iyengar
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)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by