필터 지우기
필터 지우기

How to open the gray scale image of Digital surface model (DSM)?

조회 수: 1 (최근 30일)
N A
N A 2013년 11월 19일
댓글: N A 2013년 11월 19일
I have a gray scale image of Digital Surface Model (DSM). I tried to open it with imread() from image processing toolbox but it only shows me a white image. when I open the matrix of image I found the weird numbers as matrix arrays and I attach the example here. My question is why it happens and how can I solve it?
Thanks in advance.
90-
  댓글 수: 2
Laurent
Laurent 2013년 11월 19일
Could you show the code you used to open your image, because according to the help, imread should give you a uint16 image if you load a grayscale jpg. And the matrix you attach is a single precision matrix.
N A
N A 2013년 11월 19일
clc clear all I = imread('DEM.tif'); figure, imshow(I)
these are the codes our image is float 32 and even when we want to convert the data type it is not showing any change.

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

답변 (1개)

Laurent
Laurent 2013년 11월 19일
What if you use imagesc to show your image? There might be a problem with the scaling of your image.
imagesc(I)
  댓글 수: 1
N A
N A 2013년 11월 19일
the problem is not related to scale as I think, we have problem with values of the image in the matrix, when we want to show it it only gives us white image or black.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by