필터 지우기
필터 지우기

reading pixels as floating point values

조회 수: 6 (최근 30일)
Deep P
Deep P 2017년 1월 9일
댓글: Walter Roberson 2020년 9월 26일
Hello,
Is it possible to read in an image where the pixels have normalized floating point values?
If yes what is the difference between reading image using imread function and reading it in a normalized floating point pixel value?
Please suggest me the MATLAB image processing functions that read in the pixel values as normalized floating point.
Thank you.
  댓글 수: 1
David Barry
David Barry 2017년 1월 9일
Why do you want to do this would be my first question?

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

답변 (2개)

Walter Roberson
Walter Roberson 2017년 1월 9일
The MATLAB Tiff class can handle reading and writing 32 bit floating point (single precision). See https://www.mathworks.com/matlabcentral/newsreader/view_thread/314008 for some example code on writing it. If I recall correctly, imread() should be able to read those kinds of images without having to use Tiff class, but you do need to use the Tiff class to write them from MATLAB.
The Tiff format does not offer a 64 bit double as a native image format.

Image Analyst
Image Analyst 2017년 1월 10일
If you have some custom/proprietary image format (not like the Tiff Walter described) you'll either have to get an already-made reader m-file for it (perhaps from the File Exchange or your instrument or camera anufacturer) or write it yourself using fread().

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by